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
-
lungdart3398337dI believe gofmt solves this nonsense easily.
Formatting preferences are like assholes. Everyone has one but it's best not to show it off. -
d00td00t270337dI prefer curly brace on the same line. The allman style does not make sense to me.
-
fjmurau487337d@d00td00t It is not about preferences in Go. The rules are enforced, Allman-style just won't compile.
-
hjk1015696336d@Lensflare yep "unexpected semicolon or newline before {".
Go is very strict on some things but nobody notices because we all use gofmt anyway.
Anyone complaining about style on an exam that has
A. No guide.
B. No existing code to deviate from.
Is just professor grandeur circle-jerking.
@fjmurau
Send the fucker over to me and I will shame them in front of the students every single time
I'll even see if I can get an actual teacher like Bill Kennedy to show up just so people can see the contrast.
I'll write up a rant later about when I did this for a friends kid. -
fjmurau487334d@hkl101 The short verbal exchange with the student was proof enough for me that he didn't do a single assignment. Classic Dunning-Kruger example.
Related Rants
After a programming exam, a student criticized me for using the "wrong" indentation style: I used 1TBS (opening curly brace on same line), but Allman style (opening curly brace on new line) would be "better" and "preferred by most other students".
The programming language was Go.
rant
dunning kruger