SkillsC, C++, PHP, Kotlin, Android
Joined devRant on 3/1/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Is it better to implement a cryptpgraphic algo in a function or in a class? Also how?
I have a cryptography class and I really enjoy implementing the different techniques that we study in class. At first I was just implementing the techniques in a simple function with 3 parameters; key, message and a bool for encryption or decryption. But as they are getting more complex, it is becoming harder to continue implementing them in a single function block. So I thought of using a class but ran into the problem of how do I even do that? Do I make different methods for key generation, encrypting and decrypting?
P.S. It's really just for learning how the crypto technique works and not for anything serious.12
- working on a personal project
- got angry at windows for sucking so bad at running fucking vs code of all things
- banged the palm rest on laptop in rage
- windows freezes
- harddisk died
- lost my collection of notes from college
- lost all my photos
- but most importantly, lost my progress on a project that I was working on and hadn't git push
Lession learned. Always have a backup. ALWAYS.6
Are there any other devs out there whose minds go blank when they try to teach coding?
Whenever my friends ask me coding related questions, I just cannot explain it to them. I cannot think of any examples even. And when it comes to explaining the method used by the program, I just end up confusing them even more.
I feel so bad when I cannot help them understand.3
Is it okay for someone to printout their own devRant stickers which includes the devRant logo (this :/)?
I am unable to get the stickers on my own. We don't have international shipping/mailing. But I know a local sticker printing shop which can print one for me. And I really one one for me.9
- Started learning python
- New semester's about to start in college
...and laptop got recked.
Shows the post screen and crashes and reboots repeatedly. Tried to fix it and now the display doesn't light up and the Hard-Disk makes screeching noise. I didn't even touch the display. HDD maybe.
Removed the HDD and tried to recover it from my friends PC, but it turns out it was already dead. All my data from 1 month ago is gone (thank god for external HDD) and I cannot learn python anymore cause I don't have any backup computer.
I don't even know if I can afford to get it repaired if they say they have to replace the entire motherboard in the laptop.
1. Learn python
2. Start a project and see it through
1. Learn how to initialize variables in python
2. Make plans for 20192
Friend: Hey! How do you uh... alt tab out of the game?
Me: *wtf* Uhhh... You press alt tab.
Friend: *after 10 seconds* Oh! That’s why it is called alt tab.
Me: *crying laugh emoji*5