Ranter
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
Comments
-
I had an assignment to do. Should've taken like 4 lines. I couldn't get it to work and it was pissing me off. 7 different "elifs" later....
I fixed it the next day when I realized I was completely over thinking it lol -
Rohr7307ybeen and be there :D
I also have to laught some times when I see stuff that I wrote a while ago ... either I was stupid or jus did not kow what I was doing :D -
@jAsE the solution consists of having an output variable that is true until one if doesnt trigger
var worked = true;
If (password) else worked = false
If (username) else worked = false
return worked; -
So... no-one is going to mention the "SQL injection doomed" queries? 😂
Anyway, in my first projects, i did worse... much worse 😅 -
8R9097yAtleast your commenting was on point.
When I started I never used comments only to have it bite me in the ass afterwards when I couldn't remember what the also badly named function was supposed to achieve. xD -
ltlian21887yIt's true, though. It's a constant learning process and you just use the tools you are aware of at the time.
I hope in three years I've improved enough to be able to look at the code I'm writing today and laugh at how bad it is. -
joykill3407yAt least you commented & indented it properly...
Have worked de on to much code where neither was common 😊 -
vhoyer13317y@gnulinuxer4fun you could use multiples "returns", that what it would break the tests if one condition fail, faster, cheaper
Related Rants
-
Crazed13Me: "I'll never be able to do this" Me: "I suck at coding" Me: "What am I even looking at" Me: "Im going to...
-
Trey50Daniel8"The school tech asked me for my MAC address on my phone, but I told them I didn't have one because my phone i...
-
olback13Just started to dive in to C. Lots of fun. This is my first creation. I'll have some friends to test it for me...
I wrote this code about 3 years ago.
I guess we all had to start somewhere ¯\_(ツ)_/¯
rant
noob
me from the past