7
fjmurau
299d

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.

Comments
  • 3
    I believe gofmt solves this nonsense easily.

    Formatting preferences are like assholes. Everyone has one but it's best not to show it off.
  • 0
    I prefer curly brace on the same line. The allman style does not make sense to me.
  • 7
    @d00td00t It is not about preferences in Go. The rules are enforced, Allman-style just won't compile.
  • 1
    prettier configs to the rescue for me plus right click format document
  • 0
    @fjmurau wait, really? I didn’t know that about Go
  • 1
    @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.
  • 0
    @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.
Add Comment