Skip to main content
GameDev.net gamedev.net
🔒 Locked

Coding in bed

Started by Pto Dec 17, 2010 at 5:23 AM 13 replies 4k views
Original Post
Pto
Pto
Its getting into summer here in Australia, had a few +30 degree days recently (roughly about +90 Fahrenheit), and on those days I find it very hard to get to sleep. With 6 months of this to go and temps probably getting to the +40 area (+105f) more than once, the sleepless nights will be annoying. Now I could spend my money on an air-conditioner, however last night at about 2am I had the brilliant idea of spending that money on some type of "in bed" programming setup to amuse myself during the wee hours of the morning when there is no chance of me sleeping anyway.

The main drawback to in-bed coding is the position. Typing on a normal keyboard/mouse setup just isn't practical unless you sit ... which then defeats the point. To me there appears two main styles the setup can take. The "wearable computing" style, or the arm mounted style. Let me elaborate:

Wearable style:
- Sceen as i-Glasses for PC. You look like a retard but your in bed with the lights off so that isn't a problem. What is a problem is the resolution - 800x600 is pretty painful when I'm used to 1920*1200.
- Keyboard as Frog Pad, One Handed Keyboard. Looks like it would work find lying by your side or perhaps on your stomach. The main drawback here is lack of complicated key input such as shift+ctrl+home for super text editing goodness. That worries me as I do quite like my keyboard-fu.
- Mouse as Some kind of Trackball. Requires no arm movement, or mouse pad area. First ever "mouse" I used was a trackball and they're more than adequate as long as I don't want to play Quake12 at a competition level.
- PC as Simple Shuttle or other compact PC. I do mostly small 2D games for fun, as long as it can render some quads to the screen I'm golden.

Arm Mounted style
- Any regular LCD screen, simply mounted on some sort of wall mounted arm. The benefits of this full large screen resolution, but the down side is excess light possible keeping my sig-other awake. The arm position for an in-bed viewing angle would be very steep so the arm would need to have quite firm points to stop it falling flat onto my face.
- With the screen on an arm it would probably be very possible to mount some kind of Split freestyle keyboard at a position where my hands could still reach it lying down.
- Mouse and PC would be the same in either case I think.

Since I'm pretty sure I couldn't bear the 800x600 screen res of the glasses it seems that the screen mounted option is really the only choice. Finding an arm that would hold a large screen firmly both horizontally during use, and vertically during the day might however be a challenge as my 5 minute google search didn't turn up anything too promising.

I've also considered other alternatives such as iPad/tablet PC coding and the input method just isn't good enough. I need a normal keyboard/mouse to code properly, taping an onscreen keyboard is fine for twitter posts but not for re-factoring a few thousand lines of code.

Any other great suggestions out there I'm too sleep deprived to have thought of?
Chris Reynolds
Chris Reynolds
In-bed programming surpasses my geek level.

However, for hot nights I suggest a cheap fan and wet towels. When my AC broke last summer, I found this worked well until I could get it fixed.

Also I would advise against doing anything in bed but sleeping and... other thing. You don't want your brain to correlate laying down in your bed with problem solving and coding unless you want to be an insomniac.
andy-pandy
andy-pandy
You seem to have thought this through quite a bit, I would suggest diverting your efforts into methods for getting a decent nights sleep. Coding in bed like this is an utterly horrible idea.
RivieraKid
RivieraKid
I just imaging people in the future with their brains hooked up to some parrallel computing solution instead of wasting brain power while we sleep.

You wont be able to concentrate in any way, a nice experiment but completely impractical.
Pto
Pto
Quote:
Original post by Chris Reynolds
Also I would advise against doing anything in bed but sleeping

Quote:
Original post by andy-pandy
Coding in bed like this is an utterly horrible idea.


haha thanks for your concern, however the chances of this happening are about 0.5% I'd say. Firstly sig/other would never actually allow a screen to be on while she's sleeping, so straight off the bat it's probably out the window. Not to mention cost + having to drill holes in the wall to mount the arm + air con would be so much more worth the money since it would help 24/7 not just when I was awake late. All in all it will never happen, however I did enjoy thinking about it last night :P
kseh
kseh
Makes me wonder how well a flexible keyboard would work for coding in bed.

Whatever style you decide to go with, you should also keep in mind that most of these devices are probably going to be radiating their own heat. When you're already forced to endure +40 heat with no A/C you may not want to add something to the room that's running at like +60.
lithos
lithos
Coding in bed would be counterproductive.

To get a good nights sleep you want your mind to only associate your bed with sleep. Not programming, reading, internet time, or whatever else(sex is fine though since some of the hormones it produces does help you sleep).

The easiest/hardest thing someone can do is just get in the routine of only sleeping in their bedroom, and doing everything else elsewhere. And if you don't fall to sleep after 20 to 30 mins get up and do something else.

________________

Have you tried laying down at a 20 to 40 degree angle and keeping a laptop on stretched out legs, that is pretty comfortable.
tstrimp
tstrimp
I also recommend against coding in bed. That being said, I do it practically every night. I just use my laptop and have no issues.
owl
owl
Taking desktop things to the bed and vice versa is good for a change!
[size="2"]I like the Walrus best.
MaulingMonkey
MaulingMonkey
Quote:
Original post by pto
Typing on a normal keyboard/mouse setup just isn't practical unless you sit

I have to disagree here. Laying on my back with the keyboard on my thighs, while requiring some getting used to, is entirely feasible. Optical mice have also worked for me, directly on the sheets, although I can see the rationale for a trackball. Even though I've run a USB hub right next to my bed, I've taken to using it only for a wireless dongle -- cords + covers can be a bit of a pita, whereas a wireless keyboard can easily be set on a nightstand if you do start getting tired enough. A few months in, most of my difficulty is due to the silliness of the keyboard itself (odd F-key layout)

As for screens, I went with a self-built wood arm which I mounted directly off the wall (or more specifically, the solid trim of the window, since lol drywall) and mounted an old LCD that I didn't have room for on my desk. This let me make something braced such that it doesn't even pivot in a way that would allow it to bean me in the night, like most arms would. This is set to face permanently downward, with a few (~5) degrees of rotation for fine tuning.

If you're going down this route, do note that you have a tradeoff to make: Close enough to bean yourself and potentially damage the screen, or far enough away that you may be unable to appreciate terribly high resolutions. You can experiment with the latter before actually making your setup by sitting farther away from your existing desk setup to see the impact. Leaning forward is a bad sign ;)

As for the computer itself: I chose to piggyback this all off my nearby desktop. Newegg sells extra long USB and DVI cables -- just make sure you get appropriate ones for the relevant USB hub -- as there are a number of USB connectors, and DVI has a number of variations as well. I went for 25-30 feet cables and hid the extra slack under the bed itself. I also use a DVI splitter as one of my four DVI outputs is defective.
mind in a box
mind in a box
Quote:
Original post by tstrimp
I also recommend against coding in bed. That being said, I do it practically every night. I just use my laptop and have no issues.


Same here.

The only issue I have is, that I tend to slide onto my back and have to take the laptop onto my belly then (I do this subconscious). And in this position you can't type very good [grin]
(Currently sitting/laying like that!)

I am more productive when I sit on a desk.
Sander
Sander
Laptop here too. I use Linux. Thanks to the Awesome Window Manager (a programmable, tiling WM), Vimpertor (makes Firefox look and work like Vim) and Vim itself, I don't need to use a mouse at all. Perfect for coding in bed, on the couch, in the train, etcetera.
davepermen
davepermen
i've a 12" laptop and have coded stuff in the night. i'm a late night guy, so why not put those moments to use. it's not regularly, but it happens. and normally, the results are quite great.
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.