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
-
@spoiledgoods I mean, she must have a reason but yeah. She could have been cool about it.
-
@AleCx04 could've just said "I like going it that way" but instead she lied and was a dick
-
@FrodoSwaggins I mean show me the convention that gives that as a style example, I've yet to see it so far. PEP8 style is my way and 95% of the coders I've checked out do it that way.
-
LuxARTS16137ytype function (type arg1, type arg2){
}
(I hate people that put the open bracket in new line) -
@LuxARTS no spaces between parentheses and no new line before the bracket, you're really trying to trigger @FrodoSwaggins ain't you?
-
@FrodoSwaggins he is going by convention. PEP8 does define function syntax to follow the convention of:
def cometela(tragate, miriata):
As the convention to be followed.
I see nothing wrong with that. Neither do I see an issue with having a space around it like
def comete( mi_paja) although I do have prefference for the other one. -
To be fair, many years ago one of my professors was using the
void name(int s1, int s2){
....
}
style, so I got used to it and it seems the most natural to me.
BUT!
Now I just don't give a fuck, I let prettier take care of code formatting for me. It's heavily opinionated and not really configurable, but after a day or two I got used to it and now I don't waste time on stupid things.
Formatting code is a computer's job after all :) -
LuxARTS16137y@ObiSwagKenobi Formatting code let you understand the algorythm faster. Maybe you are wasting time the first time you write the code but it will save time later when you have to edit or fix something.
-
@LuxARTS y menos gente que entienda los regionalismos de cada pais :P pero es divertido trollearlos asi de vez en cuando.
-
@FrodoSwaggins lol so you just deny reality if you don't agree with it. don't get me started on the earth being round either! then it's just opinion vs opinion right?
-
@LuxARTS haha yup I know why formatting code is important.
What I don't know is why anyone would want to format code by hand in 2018.
Take a minute or two, setup prettier (or any other code formatter for that matter) and you're good to go. Auto format on every save and everyone's happy. -
LuxARTS16137y@ObiSwagKenobi I format by hand because mostly IDEs I use haven't got an auto-formatter. Also, formatting by hand is a good practice when you have to write code fast and you haven't your machine with your tools.
-
@LuxARTS you should probably change your IDE then :p
Having the IDE format your code isn't about speed. It's about having less stuff to worry about when dealing with a problem.
In other words, let the IDE handle code formatting so you can stay focused on the code itself. -
LuxARTS16137y@ObiSwagKenobi Can't change the IDE when develop for specific microcontrollers. I know your point, auto-formatter make the life easier when you start to learn but when you get experience you type the code already formatted, so no need to format later. By the way, we forgot to mention the auto-complete feature, that is a must have feature.
-
Sorry not sorry;
pub fn name<T>(
thing: i8
) -> T
where
T: Something else
{
panic!();
} -
arekxv10527yOnly place I saw function( arg ) is in Wordpress and thankfully wordpress development doesn't get to set any conventions (at least not in my book), since they "did so much" for the development already, so nope... I would stick with function(arg) thank you. :)
Related Rants
-
l0om44100% Real. And it's not even the worst on the site.
-
Codazed11Being 100% serious, I saw a guy in my Computer Programming I class using MS Word to write code that he would c...
-
dfox8I worked with a good dev at one of my previous jobs, but one of his faults was that he was a bit scattered and...
define every function like this:
def function ( arg ) :
instead of
def function(arg):
bit of a nitpick I know. but when I asked her about it she said "convention" and when I asked which convention she replied with "the only one in existence"
so I was triggered by that for sure
rant
t r i g g e r e d
wk99