Devlog #12 - IT WORKS!
FINALLY! After an hour of debugging, EVERYTHING WORKS!
-Encryption
-Decryption
-Uploading to & Fetching from the Database
-Sign Up
-Login
.
The only things that aren’t fully working yet are Swiption and Random Mode, and honestly that’s on me 😭. I got way too focused on making everything else work first AND GOD I had to improvise whole sections of the decryption logic, you won’t believe it.
.
If you compare the code I committed before this and the code I committed today, I had to improvise so much!
.
I removed and added so much. My old decryption was code wrong, I mean the logic was on point but the syntax and a few other things were off that’s why it wasn’t working.
.
Some of the errors were genuinely silly, again 😅
.
All my elifs somehow had the same condition, and people this is why you don’t copy paste conditions to save time (I still don’t know how I missed that) 🥲
.
My traversal i was a string, and I kept accidentally treating it like an int iterator, I mean ugh.
.
A lot of bugs were literally sitting right in front of my eyes.
.
Some bugs were much bigger tho. One of the weirdest happened after I finally got decryption working - The decrypted text had way too many spaces between words.
.
After staring at it for a while, I noticed that the number of spaces was exactly the same as the number of unique letters in the text. That’s when it hit me - the loop was continuing to run even after finding a match. Few “breaks” later hehe, everything worked 😭
.
After Swiption and Random Mode, those 2 really aren’t done right now, I’m sorry I type so slow 😭
.
Yeah so after that I’ll focus on making the code look real pretty, like
-Fixing my silly variable names
-Comment notes ig?
-Better spacing and formatting
-Cleaning up extra files
-Writing a proper README and project description
.
And yes…
On the 13th Devlog, the project will be done done 🤞🏻
.
Note : I improvised all my previous devlogs, with proper format so that it’s easier to read, you can tell me if it’s better 🙃
.
See you in the next one!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.