About'99 baby King of microoptimizations. Fullstack developer before knowing what fullstack developer meant. Coded REST APIs before knowing what REST APIs were.
Joined devRant on 1/2/2020
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Made by me, the inspiration came after I actually almost wrote a console.log while debugging, it had been a long time since I last touched Java.7
A crowded bus, going to school, on a WhatsApp group that's only me and I use it to keep stuff.
It was quite uncomfortable.1
In PHP, constants can only be of simple data types like strings or floats.
You can't make a database connection a constant because it's not a simple data type.
That makes the only way of accessing complex "constants" within functions using the keyword global... which is not encouraged and forces you to make the database connection global (that may not be convenient in some software patterns).
The last option is passing the database connection as a parameter (either to the function or to the constructor of the instance whose methods will use the connection)... which would be good if I didn't want to go full OO. Because it's a pain to do so.
So all in all, constants are not well supported by PHP.
Come on, constants...12
I learnt Java in 2 months from 0 (or 0.005), a year before going to college. (the full experience™️; not just String, while and sysoCtrl+space)
On "Data Structures and Algorithms" class, the teacher says something like "usually OOP takes like 2 years to learn completely".
Me in my mind: "Aaahh I'm so proud of myself. *selfhugs*"
Of course I knew the teacher was exaggerating but even if she doubled what she thinks, I still was in the cool range. B|3
Ok so I had to make a revision on a PDF with JS that was being tested to fix some bugs, I hadn't touched it or Acrobat Reader for more than a month I think but I could work on it well back then.
I had to see the problem first so when I go and open it with Adobe Reader, it crashes. Weird. I can't get it to work.
Well I'm reinstalling it then.
After downloading the (now correct, I tried to use an old one I had and lost some time) installer, I tried to install it and it asked me to close Outlook and Excel. Weirder.
I do, and after finishing it said "you have a newer version, open it?". Super weird. Of course when I accepted it didn't work.
I uninstall my current installation and while uninstalling it asks me to close Chrome. Ok now I'm not ok with this shit.
I needed to fix it in some minutes and it ended up taking hours.4
"Don't you like the new site? (:"
I mean yeah, it's an upgrade from what was done in 2011 with 2007 recycled code.
But now the first access takes almost 10 seconds.
Was fucking WordPress necessary?
We went from a hotel booking PHP template to a blogging template.
60+ freaking Mb of shit, not just content but *shit*. (from the admin panel, only 3 of the 10+ sections are needed)
At least they won't bother me now about the main page frontend.
Oh wait, they do. So I had to learn how to hack the theme header behaviour because of course, cute boy WordPress couldn't care less on how the header behaves. I see more hacks incoming of fucking course.
Man I fucking hate WordPress.4
Hey, senior developers, is there a reason for this?
I just can't believe it.
The line that makes me wanna kill is the
$("#" + id).val(val);
Taken from a very profesional site.9
c3r38r170_201 was my original nickname back in 2012. <3
The _201 was later removed because it was too long for some Minecraft servers.10
I fucked up my Windows installation by moving AppData to a secondary (1TB HDD) drive... dude... I wish they started a new and better Windows without all the backwards compatibility shit for new computers like mine, so we can do not complex, but not simple shit like freaking moving a "system" folder (that should only be for *apps data*).10
People are usually better known for something special in their social circles, like a habit, or something they like, or a phrase they often use, like their catchphrase...
As a developer, do you think you have like a code leitmotif? A singular habit or a certain algorithm you like to use?
For example, I'm very mad about string quotes, so I tend to use strictly ' unless it's better / necessary to use ", ` or something else.12
I love most of the usernames here, I really like how most choose funny names related to developing or what they do, don't you also like that fashion?14
A PHP variable "declared" in the jQuery.
I don't know why Sublime Text (3) does that.
(Sorry for the quality, the screencut was for friends but I thought it could belong here too.)
I don't use jQuery, previous "dev" did.
I don't actually care about this.6
I had to reinstall windows because (hear me out) an old webcam, so old I used to use it for Messenger when I was like 8, couldn't get its drivers right for Windows 10 64 bits.
Not 100% tested, but I'm 88.9% sure it was that what corrupted my OS.
After reinstalling, I had to look up the model (super generic but distinctive enough to make me search for a whole 2 hours), learnt a lot (wow) and now it's... let's call it working.
Now I have to reinstall the 6 programs and 10 games I had that could be worse but still, damn.11
Yesterday I added another item to the list of things I hate but am told to use at work,
Dude imagine being born in 12/3/4567.
Writing birth date fast af.
You could even slide your finger as a pianist.11
Me everytime I send a message with my new keyboard:
Me everytime I code with my new keyboard:
Syntax Error: Unexpected ")" on line 693.