Hacker Newsnew | past | comments | ask | show | jobs | submit | pswenson's commentslogin

Now do Amsterdam


80 char line length in 2019?


I know, on the surface it seems silly, but there are a couple of reasons I've found 80 chars makes things easier in real world workflows in 2019:

* Split panes in editors. With 80 chars, you can usually have two panes on screen along with a file tree, on most laptop screens. This is pretty nice to have.

* Code reviews in a web interface like Github/Gitlab - 80 chars means usually there's no need to pan, even when your browser window isn't full screen


Enforcing 80 chars on everyone for those reasons doesn't feel justifying.

It will definitely make people use weird variable names instead of meaningful ones.

  is_included = true
could turn into,

  inc = true #included or increment?
That's a far worse side effect than other points raised in this thread.


Even worse, abbreviations are terrible as there is one way to write a word correctly, and lots of ways to abbreviate it, so now you have to keep track of that too.

Was it inc? incl? incld? includ? in? incldd?

Now you have to break flow to go check. There's many ways it could be written and a chance for bugs to be introduced if you accidentally pick the wrong style. And when you read it, does the inc mean incorporated? included? includes? including? incapable? incestual?


That's a fair point, though I'll say in my experience, it's not been the case. If it were, I wouldn't do it as I agree with you that it outweighs the benefits I mentioned.


There are many good reasons for that IMO:

* Too long lines are hard to read. For text 11 words per line are recommended, otherwise your eyes will loose track. 11 Words is roughly 60 characters, but code is indented so you need a bit more.

* Some people look at your code in an 80-column terminal, if you use more, this would be rude.

* Some people use a GUI diff tool that displays the code side by side, so that's already 160 characters.


- Breaking lines at only 80 chars would make it read horrible by splitting lines in the middle of syntactic contexts.

- Unless that's your team's preference, you're not helping anyone.

- Same as above.


Python's PEP8 recommends 79 characters.


slightly worse :)


This one is genuinely awful. It makes me take style guides less seriously on the whole.


The jetbrains editors are amazing, if you learn the keystrokes. I see few bother to explore/learn them though... I haven't found an editor that matches the features.

My main prob with jetbrains is project setup sucks, and the support for quick editing an arbitrary file is awkward. so for quick editing of a file I end up in atom or vim. I'm currently trying to get vs code's editor to be as similar as possible to intellij as possible. it looks like code's editor is pretty solid and full featured.


almost all retail credit card transactions go over the internet and commerce seems to continue fine.

but if you want to be safe, have a cellular backup network.

seems way simpler than pushing out a k8s infrastructure to every store.


Payment processing doesn't go through the k8s infrastructure, they said. And lots of it still uses Tel/dedicated network lines already, especially in places like malls (where lots of restaurants probably are).


Aha! But - We’re only considering payment processsing. What about the actual operations of the store? I’m guessing the fry machine is controlled by the same infrastructure.

And surveillance cameras, and smart locks on any safes, etc.


Jenkins is fundamentally broken. Upgrade any plugin and you risk everything breaking. And you won't necessarily know until you run every corner case of your build system.


After I changed to the LTS release channel, I have yet to suffer from that. I think it has been a couple of years without a hassle.

I do wish Jenkins to be a little less high-maintenance, like say having a postgres backend and a docker image for the master. I hate having a different backup routine for each thing.



it's cool, but can't scroll them w/o mouse/trackpad. cursor keys don't work :(


a good concurrency story looks 2 years out :( 5 will lay some foundations, hopefully Swift 6 will complete the story.

a "systems" language w/o a concurrency story isn't very compelling.


Grand Central Dispatch doesn’t count?


i'm surprised no one has started a snake vs camel case debate here! https://jsonfeed.org/version/1


I think much more widely for sleep than depression.... it was originally an anti-depressent but had a nasty side-effect of making one very sleepy.


Trazodone helps me for sleep, it's incredible. I'm out like a light and it's not addictive. If you have nighttime anxiety and stress-related sleep issues, it can be a godsend.


I have heard that it is addictive so I'm curious as to what your experience is when not taking it. No withdrawal symptoms at all?


Nope, zero addiction. I take it about 5x a week, generally have weekends off.


also used for anger issues


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

Search: