Live data from Hacker News

Show HN: Tab vs. Space, vote for your empty space

tab-vs-space.pages.dev

1–10 of 19 posts

Show HN: Tab vs. Space, vote for your empty space

#1
Hello guys. I built a simple voting app Tab vs Space.

I am using turso.tech (libsql) and Nuxt 3. I was planning to use websocket but it's just too complicated and just went with long-polling every 5 seconds to get the data and deploy it to cloudflare pages/worker.

There is no need to login and also no IP tracking. I use installation id and save it to cookies, so basically you can clear cookies to get a new installation id. I don't know a better way to get unique user without being "intrusive" but if you have a better idea please do give one.

You can check the source code here https://github.com/yunusefendi52/tab-vs-space

Thank you

Show HN: Tab vs. Space, vote for your empty space
tab-vs-space.pages.dev

Re: Show HN: Tab vs. Space, vote for your empty space

#8

I was actually converted to tabs after hearing Richard Hendricks' argument against spaces in Silicon Valley, the TV show. Really didn't think I was going to be challenging my own preferences when watching that show.

What's the title ?

https://youtu.be/SsoOG6ZeyUI?si=T-VZpE6AeBimyoOE

Re: Show HN: Tab vs. Space, vote for your empty space

#9
I converted to Tabs after mainly switching from Python to Go. But even in Python I never pressed 8 or even 4 spaces!! (I used to press 2 spaces for an indentation in very early years, but I shortly switched to "tab to insert 4 spaces"). I think Tab is much more logical even for saving, because when you click on an empty space or move cursor with keyboard, your cursor never goes "between the lines". Even today most editors are not smart enough to fix this "between the lines" cursor problem.

Re: Show HN: Tab vs. Space, vote for your empty space

#10
If one represents a variable (tab) and the other represents a value (space), then what is the discussion even about? The whole idea of programming is to rewire your brain to be comfortable working with variables. Literally the first ever lesson is to consider that there is such a thing as $x. If we fully embrace that, then it is only logical to use tabs instead of spaces to ident the lines, as TAB character can be configured to be interpreted as many a spaces one wishes for.
Post reply on HN