Ask HN: Writing code on portrait screen
Maybe anybody want to hear that: I'm writing in portrait mode since a couple of days, and it's unpredictably awesome! o.O
Maybe anybody want to hear that: I'm writing in portrait mode since a couple of days, and it's unpredictably awesome! o.O
Functions become clear from one to the next, especially if they're closely related. It also gives a "non-hard-coded" limit to function length. Instead of X-lines, I now see if the function is getting long enough to cover most of the screen. This also helps weed out my own failures in logic and draws attention to other aspects like clarity.
Ideally, I'd use two screens. One for code in portrait mode and one landscape for other work. Maybe a third monitor for YouTube ;-)
It is awesome. :-)
The upsides: I can read whole functions, and see more of where it fits in the whole module.
It snowballs - have your docs, your shell and your code in different monitors, but keep them all in consoles and 80 chars and everything stays in the right place in my brain and in the monitor.
Most websites are even better - the world is optimising for portrait length even when most of us are landscape or phone sized.
The downsides:
You need IDE support - most of the time your work is done at the last two lines of the screen - which is right down lower than on your laptop. I am moving my eyes around too much - so I would be much much happier with emacs (C-'el') and probably a tiling window manager. I can eventually get emacs past the security folks but xmonad - hah!
So I am playing with raising the bottom of the monitor physically up till the top gets silly - but otherwise I fully recommend it.
I've always switched back due to "unrelated" problems like the viewing angle of my monitors being optimized for landscape orientation and not liking the missing chunk of screen real-estate that comes with an L-shaped desktop area.
I speculate that if I had three large, identical monitors with good viewing angles in portrait mode, I'd be able to leave them like that.
But, if I'm going to daydream about hypothetical money, I might as well imagine myself buying a single 4k projector. :)
http://www.monoprice.com/Product?c_id=108&cp_id=10828&cs_id=...
Only real problem I've found is when idiot web designers who think everything is landscape and/or all monitors are >1024 px wide.