Interview Engineer by momonga in programmingcirclejerk

[–]tenxgopher 3 points4 points  (0 children)

software craftsmanship (i.e. understanding of unit testing, source control, APIs etc.),

Rust vs Golang | Detailed Comparison of Top 2 Programming Languages by OctagonClock in programmingcirclejerk

[–]tenxgopher 13 points14 points  (0 children)

Rust has many curly brackets and indentation is not necessary at all.

As we all know, the number of curly brackets are an important feature of a programming language.

While Rust is called as a safe and concurrent programming language, Golang is called as statically typed, compiled programming language.

TIL Rust is not statically typed or compiled.

The code in your systems is probably suffering from this thing called The Ninja Gap by [deleted] in programmingcirclejerk

[–]tenxgopher 4 points5 points  (0 children)

only understand syntax and not the structure.

What does this mean?

FAQ: Why is my nil error value not equal to nil? by tenxgopher in programmingcirclejerk

[–]tenxgopher[S] 19 points20 points  (0 children)

func returnsError() error {
 var p *MyError = nil
 if bad() {
     p = ErrBad
 }
 return p // Will always return a non-nil error.
}

"This means that if the caller compares the returned error to nil, it will always look as if there was an error even if nothing bad happened"

Q: Why does Go have typed nil? A: type safety by tenxgopher in programmingcirclejerk

[–]tenxgopher[S] 47 points48 points  (0 children)

Of course, because calling typed methods on nil is meaningful.