Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The mental overhead from switching between the two is too much...

Really? It's just two constants that are both easy to remember and trivial to convert between.

I don't have a horse in this race. I don't mind having two distinct constants to deal with.




Next time you write some code, try this:

#define ONE 1 #define TWO 2 #define THREE 3 ... etc.

Then use the words in place of integers wherever you need them. Hell, mix and match. And tell me if you are just as productive as you would be sticking with the regular integers you know and love.


Sure. And in return, you can't use constants, but must instead type out 3.141592653... to whatever decimal place you deem important. Nor typedefs. Nor named flags (`FileRead | FileWrite` is just long-hand for `3`). At the end of the day we'll see who's pulling their hair more.

Then we'll go back in a couple weeks, and look at the same code again. Mine's wordy. Yours is cryptic, and requires looking up the use of everything.


That seems like a bad comparison, writing out multiple digits in place of a single digit should ALWAYS be less efficient.


Agree....wouldn't having more language for these things make it MORE efficient? I'm down for a symbol for pi/2 (tau/4)!


I think that wouldn't be a meaningful bottleneck on my productivity. But I could be wrong.


x = ONETHREEZEROEIGHT;




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: