Details
-
AboutSelf employed developer, educator, and Japanese linguist. Been learning iOS development during the lockdown.
-
SkillsPHP, JS, Swift, some C, various old BASIC dialects...
-
LocationFredericksburg, VA
-
Github
Joined devRant on 2/19/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
-
<<prev. #wk235 advices>>
~ Study the Error log deeply, Google each line if needed. Don't give up.
~ Learn by doing. Don't just read/watch.
~ Practice breaking down the problem statement first in different components and hierarchies. Don't jump into coding right away.
~ Write some, review some. Don't put off review for later.
~ Even if you don't exactly follow the best security practices - always ensure that your program is safe for use. Especially for user-inputs, etc, pay attention.
~ Never distribute code with passwords/keys written in it.
~ Don't hard code stuff, use Config file, environment variables, etc.
~ Try to automate repetitive stuff like build and deploy etc
~ Save and backup you code.
~ No one knows everything, also, today's knowledge gets outdated tomorrow. Continuous learning is synonymous with this field.
<<next #wk235 advices>>1 -
So, a rather unfortunate bug on the Minecraft website.
Minecraft allows you to change your name every 30 days. I was reverse engineering their API so I could use it personally.
On the username change form there are two fields: your desired username, and your password.
To protect myself from actually changing my name, I purposefully put in password123 so that it would fail. Then, I clicked "Change name" to monitor the network traffic.
Well that's when two unfortunate things combined.
#1: I used my last name to test. It's a unique word that is relatively short and very easy for me to type out of habit.
#2: That password field doesn't actually get validated.
So imagine my shock when I clicked "change username" and it WORKED.
And now my username is doxxing me for at least 30 days + the permanent name history
FUCK me6 -
To anyone new to the corporate world I have this advice: there's a game no one tells you about in school or university. It's a game of politics. The good news is that you can choose not to play the game. The bad news is that others who do can change that decision for you, if you give them a reason to. So here's my tips to keep yourself from common bad situations:
* Some people will say they'd "prefer that people were honest". This is an outright lie.
* Be guarded - if a scenario could be taken out of context assume it will be.
* Mimic the office culture, don't try to rock the boat.
* Be polite, but always stay neutral between colleagues, picking a side means you're playing the game. Unless that side is your company vs another company in which case-- you are 100% on the company side and everyone else is stupid and incompetent.4 -
Unpopular Opinion: most devs doing it just for the money are pretty fucking shit at programming and problem solving.
I do it because I like to make screen go blinkyblink. Top reason to be one: you are not scared if printer goes blinkyblink because you know why it makes blinkyblink.9 -
Training Google's "efficient" net b7 be like epoch 1: ETA 6 hours
I come back in the afternoon and see this:2 -
Holy fuck, muscle memory just saved my ass.
At a train station wanting to do some work on my mini laptop which has disk encryption (LUKS I think). Realised that I forgot the password partly 😬
Few tries.... incorrect. FUCK.
*hey, let's try to let my hands do the work based on muscle memory!*
*starts typing the password (its insanely long) and presses enter*
*succesfully unlocked, booting...*
😅25 -
Burned out but still got work to do.
Haven't slept in 2 days now I just want to sleep but can't get sleep.
Damn it fuck,I feel like just beating the crap out of something anything for that matter.4 -
!dev && !rant
Anyone here from San Antonio Tx? I am in town for 2 days. It would be nice if we can meet up(if I get the time that is)
Little family vacation, lil leisure time.3 -
German auto correct in Apple Mail.
Instead of writing a customer this:
"Dear xxx, I finished your paginator."
I wrote and send this:
"Dear xxx, I finished your pakistani."
He wondered but took it with humor :)2 -
(Interview for sde-3 position)
(continuation of https://devrant.com/rants/2132431/... )
Interviewer - *opens laptop. Gives a question.* solve this.
Me - *a bit surprised that such questions were being asked on a sde-3 level*
this is the 4th or 5th question from geeksforgeeks, isn't it? I know the answer to this. Do u still want me to solve it?
Interviewer - *not believing me* Yes
Me - okay. Well this *writing down the original solution mentioned on the site* is the verbatim code mentioned on the website, with complexity O(n^2).
However I feel this is not the optimal solution. Let me write a better solution.
*I provide a better solution*
This has a complexity of O(n log n) . What do you think?
Interviewer - Nope. This could be a lot better.
Me - okay. Let me see. Did some minor changes, added some caching (obviously this will have no effect on the base algorithm) etc
How about now?
Interviewer - nope. Still not good.
Me - okay. Can you tell me how to improve it?
Interviewer - no we are not allowed to solve problems for you. It is not our interview, it is yours.
Me - that makes no sense. Interviews are a two way street. I'd very much like to know the optimal answer to this.
Interviewer - okay
*copies down the answer from geeksforgeeks*
This is good
Me - *at first I thought this was a prank or something. *
I just mentioned this answer here.
Then I spent the next 10 minutes providing a BETTER solution.
May I know how yours is better?
Interviewer - this solution has 2-3 loops. Yours has a function calling itself.
Me - that's called divide and conquer using recursion mf!
Anyways let's take an example and do a dry run.
Interviewer - okay
*we do dry run*
Interviewer - oh yes. Yours ran faster. But it will run fast only sometimes.
Me - yes. Each time the algorithm rolls a dice to decide if it should run fast or slow. You have one goddamn awesome weed dealer man.
I got to go. Thank you for meeting me.14 -
Developer creates pull request.
I hold suggesting changes.
Developer creates new branch and new pull request with exactly the same commit.
Another Senior developer approves pull request.
This will be discussed tomorrow morning!29 -
It is with a heavy heart that I said aufwiedersehen to my mom last night. She passed peacefully in her sleep, and is now resting in the fields and forests of heaven. She was born in 1932 in Hamburg, Germany, and at age 7 the world around her exploded into one of the most horrific wars that Europe or the world had seen up to that time. By the time it was over, she was thirteen, and had spent many of her formative years witnessing how low humanity can get in the treatement of fellow humans. She survived the post-war years, and came to the US in the late 1950's, and met my dad while in nursing school. She had four chidren, Tim, Chris, Tanya, and myself. She was a doting and caring mom, who dedicated herself to raising her children. She loved to cook, loved animals, especially dogs, and love human beings in general, and had a compassionate and kind heart. There is a small, empty space in the world that she filled, but heaven is a little brighter with her smile and her laughter. I miss you mom, but I know I will see you again some day. Aufwiedersehen, lieber Mutti! Wir sehen uns bald.15