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?
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?
For further actions, you may consider blocking this person and/or reporting abuse
dev.to staff -
Rizèl Scarlett -
dev.to staff -
dev.to staff -
Latest comments (67)
Fonts designed for programming should have ligature support, and all IDEs should support ligatures.
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.
Note that Mr. Withayasakpunt used the word "safer," not "more secure."
I have many times lived the difference.
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.
There are two things the python formatter
black
does that I hate, and that makes me not want to use it at all.When naming variables, snake_case is better than camelCase
Java's habit of having super long function and variable names. Yuck! :D
Functional JavaScript is better than typescript.
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.
4 spaces, not 2.
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??
React syntax is gross. Having markup inside a JS function is backwards.
i like it better than having weird attributes in markup that represent programming logic.
Do not annotate your Java class with who the author was. Your version control app will record this far more reliably than you will.
Yeah, having some common AST that can be targeted to different outputs (native code, jvm, js, etc) would be cool to have.
swtich
statements have no real use case that could not be implemented using other simpler features of the language.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.
have you ever had a legit use case for
switch
?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.
Following that logic, there is no use case for a for loop.
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.Switch cases are syntactic sugar for writing repetitive
if
andelse if
statements, not a language feature. Just like the for loop, you could write a while loop that does exactly the same thing.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.