Details
-
AboutSoftware Engineer
-
SkillsC, C++, PHP, Kotlin, Android, Ruby, JS, SQL
-
LocationNepal
Joined devRant on 3/1/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Noob question
Is it better to implement a cryptpgraphic algo in a function or in a class? Also how?
More info:
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
- restart
- 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
- FANTASTIC
Lession learned. Always have a backup. ALWAYS.5 -
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.
FUCK!!!4 -
Idealistic goals:
1. Learn python
2. Start a project and see it through
Realistic goals:
1. Learn how to initialize variables in python
2. Make plans for 20192 -
What am I supposed to do here?undefined checkbox rate how long can the tags be? wtf pretty darn long if i say so myself only one way to find out6
-
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