SkillsC, Java, Python; Hardware & Embedded stuff
Joined devRant on 1/23/2019
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
The code where I found this gem looked like this (I guess screenshots are required here as no other formatting is available), no idea though why they even used double indentation just for the inner loop.
Actually, after the initial confusion this does not even look just as bad as I remebered it, but the missing brace is still kind of weird...
@Fast-Nop Oh wow, I indeed failed to recognize the huge red "Rant / Story" button as a category by itself. So much for intuitive UX design...
The code just looks more weird when correctly indented, i.e. you have a block ending with a brace that is indented, but there's a weird visual gap where you would expect the closing brace.
Take care, try not to become Luisa Madrigal :) youtu.be/tQwVKr8rCYw
They're trying to buy up all the advertising space in your city, so any business that actually wants to run ads will have to turn to google...
Assuming all the other ratings will always be available, as soon as the first one is present... 😂
so that's why so much swag is stolen at fairs?
co-worker once saw someone stealing her coffee mug (she could actually see them taking it from the distance, while she returned to the booth from the bathroom)
it still even had coffee in it!
This should be fine when using breadboard cables with pins on both ends, however using jumper wires on D-Sub ports (e.g. RS232 when you don't have a null-modem cable) turns out to deform the connector (the D-Sub pins are thicker)...
I should have marked any cables abused that way before I found out they should never be used for 0.1" headers anymore, as the connection would be quite loose...
@nibor I (still) have to, but my resignation letter is basically out, only a few more months of dealing with this clusterfuck :)
String interpolation was apparently added in newer versions, but no chance when you're using 2010 Express Edition for production, since it's free...
Also I think strings are immutable, but so what? TrimEnd would probably just create a new string in memory and throw away the reference to the previous one...
there's even a blog about these, you might want to submit your discoveries there:
Actually since the first time I had seen this, I've been looking for an eclipse plugin that would allow for quick switching between reformatting code like this, and the regular formatter.
So when browsing through code, it would hurt the eyes way less than all those boilerplate braces, however if you need to make changes - well, but then again in >98% of cases the boilerplate stuff could be correctly generated from the indentation, couldn't it?
(And yes, I admit being Python enthusiast ;) )