News for hackers. Stuff that matters.

qwool

Ask HN: Are compiler errors for unused code necessary?

Languages like Zig and Go refuse to compile when you don't use an argument in a function, don't use a local variable or have an unused import. This breaks the hypermodern C flowAn common suggestion is a '-no-warn-unused' flag, and the objection is 'if a feature exists, it will be used in production'I haven't heard of someone suggesting to ignore dead code on 'go run .' and erroring on 'go...

( Read More... | 3 comments | 2 points | on HN )
notch was a programmer first, so i believe he made something programmers love - an intuitive and minimal interface. when microsoft took over minecraft, they hired designers and marketers to do interface for the bedrock edition which is cluttered with flashy annoying popups, drawn-out and "smooth" transitions and constant attempts to sell you something that's free. every person i've talked to who doesn't like bedrock cites this exact reason for why they don't like it - it feels janky and "too corporate". same goes for the electron-based launcher i'm really glad that the community had time to establish their expectations for java which forced the 1.14's texture update to only improve on what was already there (like smoothing out painful color combinations and adding a white border to hovered elements)