DEV Community

Peter Kim Frank
Peter Kim Frank

Posted on

What is your pettiest programming-related opinion?

What is the most meaningless, silly, un-important programming-related opinion that you'll just continue to defend?

We're all familiar with Tabs vs. Spaces...

But what are some other pointless fights that you're always willing to fight about?

Latest comments (67)

Collapse
 
daveparr profile image
Dave Parr • Edited

Fonts designed for programming should have ligature support, and all IDEs should support ligatures.

GitHub logo tonsky / FiraCode

Free monospaced font with programming ligatures

Fira Code: free monospaced font with programming ligatures

Problem

Programmers use a lot of symbols, often encoded with several characters. For the human brain, sequences like ->, <= or := are single logical tokens, even if they take two or three characters on the screen. Your eye spends a non-zero amount of energy to scan, parse and join multiple characters into a single logical one. Ideally, all programming languages should be designed with full-fledged Unicode symbols for operators, but that’s not the case yet.

Solution

Fira Code is a free monospaced font containing ligatures for common programming multi-character combinations. This is just a font rendering feature: underlying code remains ASCII-compatible. This helps to read and understand code faster. For some frequent sequences like .. or //, ligatures allow us to correct spacing.

Download & Install

Then:

Support

Fira Code is a…

I just found out RStudio doesn't support ligatures on Linux, and now I HAVE to decide if I'm going to compromise my IDE or my OS.

Collapse
 
v6 profile image
🦄N B🛡

Note that Mr. Withayasakpunt used the word "safer," not "more secure."

I have many times lived the difference.

Collapse
 
anthlis profile image
Anthony L

I read on Twitter earlier this week that it is Xcode. Not XCode, xCode, X-Code, 10-code, etc. and it is definitely not iWatch. IOS and macos are also out too.

Collapse
 
katylava profile image
katy lavallee

There are two things the python formatter black does that I hate, and that makes me not want to use it at all.

Collapse
 
fronkan profile image
Fredrik Sjöstrand

When naming variables, snake_case is better than camelCase

Collapse
 
jpaulin profile image
Jukka Paulin

Java's habit of having super long function and variable names. Yuck! :D

Collapse
 
johnkazer profile image
John Kazer

Functional JavaScript is better than typescript.

Collapse
 
mrispoli24 profile image
Mike Rispoli

You should be using class names on your DOM elements to help people navigate the code base whether you style them or not, preferably BEM syntax.

Emotion and other libraries that try to just sell me into writing inline styles again can die a slow death.

Collapse
 
quasipickle profile image
Dylan Anderson

4 spaces, not 2.

Collapse
 
sduduzog profile image
Sdu

Flutter web is a mistake, an expensive mistake. Google should have focused on Flutter for mobile development and AngularDart for web client stuff.

They are treating Flutter like it's this one tool fix all solution of which that will never work. IT WILL NEVER WORK!!! The difference between the dart ecosystem and the javascript ecosystem, in javascript for eatch plartform, there's a framework that works beautifully for it e.g. Vuejs/React for web, ReactNative for mobile (Where Flutter actually stands a chance) and Electron for Desktop,

BUT in dart land, noooo. They want Flutter for web, flutter for desktop, flutter for mobile, like REALLY??

Collapse
 
mat735 profile image
Mat

React syntax is gross. Having markup inside a JS function is backwards.

Collapse
 
katylava profile image
katy lavallee

i like it better than having weird attributes in markup that represent programming logic.

Collapse
 
alohci profile image
Nicholas Stimpson

Do not annotate your Java class with who the author was. Your version control app will record this far more reliably than you will.

 
craigmc08 profile image
Craig McIlwrath

Yeah, having some common AST that can be targeted to different outputs (native code, jvm, js, etc) would be cool to have.

Collapse
 
claudiodavi profile image
Claudio Davi

swtich statements have no real use case that could not be implemented using other simpler features of the language.

Collapse
 
samuraiseoul profile image
Sophie The Lionhart

I will die on this hill with you. Back to back, mini gun aiming down the hill, mowing down anything that comes our way except food delivery.

Collapse
 
claudiodavi profile image
Claudio Davi

have you ever had a legit use case for switch?

Thread Thread
 
samuraiseoul profile image
Sophie The Lionhart

I mean I think in finite lists they can have some application. Think like cardinal directions(Noth, East, South, West), basically TRUE Enums, absolutely finite ones. They can be useful sometimes in those cases. You could in theory use a strategy pattern or something even then, and be a more robust solution but it could be seen as over-engineering. If you MUST use one or have a case like above, I always like to throw an exception in the default case. If it shouldn't occur and does, I for sure want to know about it, and I don't want something weak like it being logged. I want it to be a mini-crisis.

Collapse
 
craigmc08 profile image
Craig McIlwrath

Following that logic, there is no use case for a for loop.

Collapse
 
claudiodavi profile image
Claudio Davi

But really, can you give me a legit use case?
I cannot think of one single thing that is not a bad pattern switch(true) or could not be solved with an if and early return.

Thread Thread
 
hyftar profile image
Simon Landry

Switch cases are syntactic sugar for writing repetitive if and else if statements, not a language feature. Just like the for loop, you could write a while loop that does exactly the same thing.

Collapse
 
jochemstoel profile image
Jochem Stoel

PHP is dead, Web Components are crap and I don't need to write comments in my code because it is super obvious and semantically optimized.