No Comment
Re: No Comment
Except for the part where spaces are better than tabs.zac352 wrote:Tabs are better than spaces. End of story.
Re: No Comment
Mud wrote:Except for the part where spaces are better than tabs.zac352 wrote:Tabs are better than spaces. End of story.
Hello, I am not dead.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: No Comment
Tabs are better. I also use 2 character tab spaces to fit more across the page. I also soft-wrap the code so I don't have to scroll horizontally. I hate horizontal scrolling. I like seeing the entire line at once. I also color-code my code. And use white on black because it's easier on my eyes when coding. Same with the Terminal.
Re: No Comment
I hard line break at the 80th character. I keep my tabs on 4.Jasoco wrote:Tabs are better. I also use 2 character tab spaces to fit more across the page. I also soft-wrap the code so I don't have to scroll horizontally. I hate horizontal scrolling. I like seeing the entire line at once. I also color-code my code. And use white on black because it's easier on my eyes when coding. Same with the Terminal.
How do you colour code code?
And I don't do the dark colour scheme thing, hurts meh eyes.
Hello, I am not dead.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: No Comment
I wrap at page width. I don't get the whole obsession with 80 characters. It's a relic from the DOS days when you needed to hard wrap a text file for it to appear right on screen.
Re: No Comment
If you don't care what your code looks like on someone else's machine. I'm too much of a control freak for that.Jasoco wrote:Tabs are better.
Same here, though in recent years I've started lower contrast on my colors a bit and I think it's easier on my eyes.Jasoco wrote:And use white on black because it's easier on my eyes when coding. Same with the Terminal.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: No Comment
If you need more than 80 characters on a line while programming, it is usually a sign that "ur doin somefing rong", like writing functions more than a single screen in height (more than 40 lines, although on our Programming course, we are strongly encouraged not to make functions longer than 7 lines). I admit being guilty of both, but I'm trying to better myself.Jasoco wrote:I wrap at page width. I don't get the whole obsession with 80 characters. It's a relic from the DOS days when you needed to hard wrap a text file for it to appear right on screen.
Also, why did you use a screen shot which didn't show softwrapping? I'm curious about that.
Help us help you: attach a .love.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: No Comment
I couldn't find a good enough place in my code that looked presentable so I just posted my custom love.run(). I'm anal about presentation. On the outside.
I don't see how I'd ever be able to follow your "7 lines per function" rule. My main project's core is over 5600 lines by itself not counting the maps and scripts and separate third-party libraries. I prefer to just code my way if you don't mind so much.
Mud, I like your colors. I think I might try them out for a little while...
I don't see how I'd ever be able to follow your "7 lines per function" rule. My main project's core is over 5600 lines by itself not counting the maps and scripts and separate third-party libraries. I prefer to just code my way if you don't mind so much.
Mud, I like your colors. I think I might try them out for a little while...
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: No Comment
No more tabs vs spaces, because I know I am right. (though if I say what I prefer this will all start again)
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests