28

The Moment when you signend a contract at a new cool company... Good money... Cool projects... nice ppl... And then you see it... 4 spaces instead of 1 tab, what to do? Go back to my old boss and beg for my old job? Just keep using 1 tab as i did in the last 20 years of my life? Commit suicide?

Comments
  • 8
    4 spaces FTW
  • 4
    Just use four spaces.. Fanaticism never has any good effects..
  • 1
    Make a formatter. When you get it, every line that starts with 4 ws turns into a tab. When you're done, every line that starts with a idention turns into 4 ws.
  • 8
    Come to the dark side... we have spaces!
  • 0
    Do you have a good LinkedIn profile and loads of connections? You could ask some recruiters to find a job for you. Which country are you in? Maybe online job portals will help?
  • 1
    Yep, i did it, i started to use 4 spaces =( im a traitor, heretic, burn me
  • 1
    As that one video someone posted a while back showed, if your partner uses spaces, it's worth ending it over.
  • 3
    Don't many IDEs give the option to type 4 spaces when you press tab? I know VS can do it.
  • 2
    Am i the only one that actually doesn't care? As long as there is a known convention.. But maybe i have suffered too much. I appreciate the obvious
  • 4
    If the tab/space question is your biggest issue, then I'd say you've found yourself a pretty great company.

    Imo, adopting a specified coding style convention is part of the job description as a dev.
  • 1
    I know this is an ancient religious war, so I'm not gonna declare one better than the other, but spaces are - by far - the more popular choice. So maybe just accept that there are more than one way to do it, adhere to company style guide, and realise that this is a very tiny problem. Not worth getting upset over. Just configure your tools and you won't feel any difference
  • 1
    this isnt even in my top 20 concerns when joining a new place. I would suck it up if i were you, there are worse things in dev world.
  • 2
    I hear you. It took me months to accept the fact that converting to tabs would just mess up the existing code base too much. Now... ugh... I'm using spaces. And hate it. Hate it hate it hate it. So much.... It's retarded! Seeing all of those misaligned blocks just kills me. And when some files have 2 space indent, and others have 4, in the same project, I just want to strangle someone.
  • 1
    @apisarenco jep, i hate it. Ppl underestimate when they never had the glory of tabs
  • 0
    Find " " and replace w/ 1-Tab 😊😊
  • 0
    @Christian1998 and how is your next commit gonna look like? How will people compare versions?
  • 0
    @apisarenco Just t2 override the latest version :P
  • 2
    @Kaji i dont know such video but i know such scene from the series Silicon valley
  • 0
    @Salmakis That was probably it. Thanks!
Add Comment