I dunno about other shells, but in bash you can do 'v', 'i' and get a good text editor. 'm' seems to be a modifier to give you a load of extra features.
Oh great!:) That's what I'll be learning this afternoon! That's something I love about vim. Just when you get comfortable with it, you can find one more feature to save your time. I like it more and more every day.
(current project: 97k lines of code. Not huge, but fairly sizeable)
GL on current linux distros [-1 Offtopic]
on
OpenGL Distilled
·
· Score: 1
I'm in the market for a new computer, and I'm going to be writing games for it.
What's the deal with developing with OpenGL on linux at the moment? Last time I tried (2002 maybe?), there was something called Mesa, another thing called DRI or some such, another thing called GLX. It all got a bit confusing. I ended up using cygwin for a bit, then finding something else to do.
Is it the case now that I can just 'apt-get install opengl-devel' and have stuff just work?
And they make the fundamental misunderstanding in the very first sentence! Why is consistency desireable? Why should my text editor render code consistently with yours? We could be using a different font in a differerent point size at a different resolution. Is that important too? I have white text on a black background on one machine, black on white white for the other. If you specifically need some lines of text to be lined up with each other (consistency within the confines of the document), use space. If you just need it to be shunted over to express intent, use tab. That way we can both set tab to look exactly how we want it to.
eg: (---> means 'tab', '.' means 'space')
void foo () { --->if (something) --->{ --->--->/* I like to format my comments so that --->--->.* the stars make a vertical line, --->--->.* but I don't care how much you like to --->--->.* indent */ --->--->bool something = SomeLongFunction() && --->--->.................Another() --->} }
This code satisfies everybody with a good text editor. If you like 8 spaces, set your editor so. If I like 2, 7 or 3.14 I can set mine. Pressing space n times annoys everybody who likes 2n, n/2 or any other number of spaces.
That way they can get on with arguing over important issues like the placement of {
You might as well try and define what the 'end' key does. Or better still, define what the F7 key does.
Tab is already standardized. It means either "move onto the next record" in tabular data, or in programming languages "indent". If you have a preference for how much like code to be indented, then you get to set your editor in accordance. Indenting code with tabs is far more considerate than indenting with spaces. Indenting with tabs says "Indent a little. I trust you to set your editor accordingly". Indenting with 4 strikes of the space bar says "In my opinion, four spaces, not two, nor eight, nor six, is the only way to indent. If you want to read my code you shall accept my rules".
I vote for TAB = however many spaces you want it to be. If you meant "move to the right by the width of four characters", press the space bar four times.
I can't understand why people still find this a problem. It's so simple. Tabs indent, spaces line up. In other words
space means "move to the right by exactly one character width"
tab means "I want to indent, move across a bit". "A bit", and "across" mean whatever you like. It could be right8 chars, right 4 chars, left 2 chars, down 947565 chars, whatever you like. That's the beauty of it; everybody gets to view it in their favourite format.
It's so simple, it's quite embarassing for the whole of the computer-literate society that people still get their kickers in a twist about it.
Anybody who tries to lay down the law by saying that a tab must be 4, 8 or 2 characters' width has missed the point of the tab key completely.
As for your wish, I'm willing to bet money that either vim or emacs will do it for you.
If I have the CPU busy on my machine for more than about 20 seconds, I get a REALLY loud fan spin up from somewhere in my power supply. No folding for me.
some months there just aren't many new games worth buying
Of course.
There are also fluctuations due to the cycle of generations of game consoles.
I'm surprised the difference isn't more than 10% TBH. There's nothing intresting going on in the industry at the moment (by which I mean stuff that you can actually buy right now). Secondly, the PS3 and Wii are starting to break into the mainstream;s attention, so we can expect to see more 'disappointing' (and entirely predictable) months as people ramp down buying for their existing console.
Most indie games are created at least partly as a job application excercise. There are two outcomes from this situation. Either the game is good, and the developer gets a job (and so leaves the indie scene), or it is not, and then we have one more example of a poor indie game.
I'd speculate that the indie scene is far, far larger than it ever has been at any point up to now. In the 'good old days' a one-man bedroom project could rock the industry, but the industry was very very small at that time.
Today's indie scene is probably far larger than the whole computer games scene of 20 years ago. (I have no figures to back that up, BTW)
This isn't Digg. This site was designed to be a nerd dupe site. It deals with tech, science, games, and more. And it has done fairly well when it comes to sticking to the topics it was designed to "dupe" to its readers.
This isn't Digg. This site was designed to be a nerd dupe site. It deals with tech, science, games, and more. And it has done fairly well when it comes to sticking to the topics it was designed to "dupe" to its readers.
I've taken to using cash for everything again (or cheques for things you post). It's a nice feeling; everything is simple again. There's no signing, no PIN-ing, no getting your card confused with your fellow diners' at the restaurant.
I dunno about other shells, but in bash you can do 'v', 'i' and get a good text editor. 'm' seems to be a modifier to give you a load of extra features.
cscope, what's that?
:) That's what I'll be learning this afternoon! That's something I love about vim. Just when you get comfortable with it, you can find one more feature to save your time. I like it more and more every day.
(1 google later...)
Oh great!
(current project: 97k lines of code. Not huge, but fairly sizeable)
I'm in the market for a new computer, and I'm going to be writing games for it.
What's the deal with developing with OpenGL on linux at the moment? Last time I tried (2002 maybe?), there was something called Mesa, another thing called DRI or some such, another thing called GLX. It all got a bit confusing. I ended up using cygwin for a bit, then finding something else to do.
Is it the case now that I can just 'apt-get install opengl-devel' and have stuff just work?
Yup, 2007 is definitely gonna be the year of the linux desktop.
10%?
Is that a missing zero, or have I misunderstood something?
(I'm really not sniping, it sounds interesting)
Zzap 64 of course!
Beautiful! :)
eg: (---> means 'tab', '.' means 'space')
void foo ()
{
--->if (something)
--->{
--->--->/* I like to format my comments so that
--->--->.* the stars make a vertical line,
--->--->.* but I don't care how much you like to
--->--->.* indent */
--->--->bool something = SomeLongFunction() &&
--->--->.................Another()
--->}
}
This code satisfies everybody with a good text editor. If you like 8 spaces, set your editor so. If I like 2, 7 or 3.14 I can set mine. Pressing space n times annoys everybody who likes 2n, n/2 or any other number of spaces.
That way they can get on with arguing over important issues like the placement of {
;)
Tab is already standardized. It means either "move onto the next record" in tabular data, or in programming languages "indent". If you have a preference for how much like code to be indented, then you get to set your editor in accordance. Indenting code with tabs is far more considerate than indenting with spaces. Indenting with tabs says "Indent a little. I trust you to set your editor accordingly". Indenting with 4 strikes of the space bar says "In my opinion, four spaces, not two, nor eight, nor six, is the only way to indent. If you want to read my code you shall accept my rules".
I vote for TAB = however many spaces you want it to be. If you meant "move to the right by the width of four characters", press the space bar four times.
It's so simple, it's quite embarassing for the whole of the computer-literate society that people still get their kickers in a twist about it.
Anybody who tries to lay down the law by saying that a tab must be 4, 8 or 2 characters' width has missed the point of the tab key completely.
As for your wish, I'm willing to bet money that either vim or emacs will do it for you.
If I have the CPU busy on my machine for more than about 20 seconds, I get a REALLY loud fan spin up from somewhere in my power supply. No folding for me.
*runs*
And now Microsoft is making it user-friendly enough for those of us who don't care what a fox fire is.
The fact that that is so unusual and interesting more or less proves the point being made.
split, cat and sed.
My sysas a really really really loud voice. Works wonders
some months there just aren't many new games worth buying
Of course.
There are also fluctuations due to the cycle of generations of game consoles.
I'm surprised the difference isn't more than 10% TBH. There's nothing intresting going on in the industry at the moment (by which I mean stuff that you can actually buy right now). Secondly, the PS3 and Wii are starting to break into the mainstream;s attention, so we can expect to see more 'disappointing' (and entirely predictable) months as people ramp down buying for their existing console.
I'd speculate that the indie scene is far, far larger than it ever has been at any point up to now. In the 'good old days' a one-man bedroom project could rock the industry, but the industry was very very small at that time.
Today's indie scene is probably far larger than the whole computer games scene of 20 years ago. (I have no figures to back that up, BTW)
This isn't Digg. This site was designed to be a nerd dupe site. It deals with tech, science, games, and more. And it has done fairly well when it comes to sticking to the topics it was designed to "dupe" to its readers.
This isn't Digg. This site was designed to be a nerd dupe site. It deals with tech, science, games, and more. And it has done fairly well when it comes to sticking to the topics it was designed to "dupe" to its readers.
Errm, few journeys by foot.
The way of life for a great deal of us in the UK is the 'American' way of life. Few journeys by food, terrible diet, etc.
Me too. I hope the new feature doesn't get in the way too much. I'm interested to see how it works.
I've taken to using cash for everything again (or cheques for things you post). It's a nice feeling; everything is simple again. There's no signing, no PIN-ing, no getting your card confused with your fellow diners' at the restaurant.