Re: [dwm] Coding styles

2008-08-03 Thread Kai Großjohann
Antony Jepson wrote: On 2008-08-01, Kai Großjohann wrote: Cool! I am a friend of Vimperator, so perhaps one of those could cooperate with it to provide the vi/vim experience when editing textareas, too? You can use C-i to open your favourite editor inside of a textarea. OMG ;-)

Re: [dwm] Coding styles

2008-08-03 Thread Antony Jepson
Dear Kai, On 2008-08-03, Kai Großjohann wrote: OMG ;-) I don't know whether I should rejoice or cry. Should I cry because of all the lost time? Or rejoice because I know it? Maybe I'll choose rejoicing because I am an optimist at heart and also it feels better. Thank you very kindly,

Re: [dwm] Coding styles

2008-08-01 Thread Kai Großjohann
Tuncer Ayaz wrote: if you're a hardcore vi user I'm a hardcore Emacs user on a sabbatical trying to learn vim :-) you might want to take a look at http://eclim.sf.net :-) Looks interesting. I've been using Vim for many years and after using some major modes in Emacs I'm using Emacs for

Re: [dwm] Coding styles

2008-08-01 Thread Antony Jepson
Dear Kai, On 2008-08-01, Kai Großjohann wrote: Cool! I am a friend of Vimperator, so perhaps one of those could cooperate with it to provide the vi/vim experience when editing textareas, too? You can use C-i to open your favourite editor inside of a textarea. Sincerely, -- Antony Jepson /

[dwm] Coding styles

2008-07-31 Thread pancake
I wrote a random list of tips for coding (mostly in C) http://news.nopcode.org/miau/wk/BadCoding If you have some ideas/missing tips i'm open for discussion :) --pancake

Re: [dwm] Coding styles

2008-07-31 Thread Mate Nagy
On Thu, Jul 31, 2008 at 01:37:22PM +0200, pancake wrote: I wrote a random list of tips for coding (mostly in C) http://news.nopcode.org/miau/wk/BadCoding If you have some ideas/missing tips i'm open for discussion :) I mostly agree with everything, except with your bizarre anger against

Re: [dwm] Coding styles

2008-07-31 Thread Anselm R Garbe
Hi pancake, nice reading, I had a quick look. I agree on most things, I let you known where I disagree and maybe where I'd like to extend it later. Kind regards, Anselm 2008/7/31 pancake [EMAIL PROTECTED]: I wrote a random list of tips for coding (mostly in C)

Re: [dwm] Coding styles

2008-07-31 Thread nilp
On Thu, Jul 31, 2008 at 01:37:22PM +0200, pancake wrote: I wrote a random list of tips for coding (mostly in C) http://news.nopcode.org/miau/wk/BadCoding If you have some ideas/missing tips i'm open for discussion :) --pancake I'd remove the Comments are for humans paragraph -- code

Re: [dwm] Coding styles

2008-07-31 Thread Antoni Grzymala
Mate Nagy dixit (2008-07-31, 13:49): (ideally, everybody should use something modern instead of C (like Haskell (which I don't actually really know, so don't attack me :)), but that's not going to happen. Oh, and Lisp, of course. This is 2008, people, there are plenty of languages that can

Re: [dwm] Coding styles

2008-07-31 Thread Claudio
Hi Pancake and all the dwm users! I read your ``suggestions'' about good coding style and i agree mostly with what you wrote. Keep the good work up. Though, i think this sentence should be a bit different: [..]Humans are here to make computer's life easier.[..] I wondering, doesn't computers

Re: [dwm] Coding styles

2008-07-31 Thread pancake
I'll try to add some more precisse descriptions on the points :) Before anything else...Thanks for the feedback. On Thu, 2008-07-31 at 14:14 +0100, Anselm R Garbe wrote: Ok, here we go: Don't use IDEs I agree to some extend, though it's not because I think that IDEs are a bad idea, it's

Re: [dwm] Coding styles

2008-07-31 Thread markus schnalke
[2008-07-31 16:41] pancake [EMAIL PROTECTED] I'll try to add some more precisse descriptions on the points :) and please use more easy words and less irony That makes the document clearer and so more useful. On Thu, 2008-07-31 at 14:14 +0100, Anselm R Garbe wrote: Mixed tab/spaces++

Re: [dwm] Coding styles

2008-07-31 Thread Kai Großjohann
I don't understand why IDEs are considered so bad. IDEs make it easy to shoot yourself in the foot (by clicking with the mouse, no less). But all C programmers know that it works to just avoid shooting yourself in the foot. Also, there may be bad IDEs. I use Eclipse for Java programming,

Re: [dwm] Coding styles

2008-07-31 Thread pancake
On Thu, 2008-07-31 at 17:00 +0200, markus schnalke wrote: [2008-07-31 16:41] pancake [EMAIL PROTECTED] I'll try to add some more precisse descriptions on the points :) and please use more easy words and less irony That makes the document clearer and so more useful. On Thu,

Re: [dwm] Coding styles

2008-07-31 Thread rundstutzen
Please change Don't use IDEs to Don't depend on IDEs. An IDE does make sense, depending on it is a bad idea though. Actually I think this is your idea about an IDE, if I get this chapter right.

Re: [dwm] Coding styles

2008-07-31 Thread pancake
On Thu, 2008-07-31 at 17:28 +0200, Kai Großjohann wrote: I don't understand why IDEs are considered so bad. IDEs make it easy to shoot yourself in the foot (by clicking with the mouse, no less). But all C programmers know that it works to just avoid shooting yourself in the foot. Also,

Re: [dwm] Coding styles

2008-07-31 Thread Szabolcs Nagy
i too tired to comment on every rule On 7/31/08, Anselm R Garbe [EMAIL PROTECTED] wrote: #define UINT unsigned int and that looks better to me. The problem with doing typedef unsigned int uint; is, that uint might be typedef'd already on some system, but maybe not on yes, but one should

Re: [dwm] Coding styles

2008-07-31 Thread Szabolcs Nagy
On 7/31/08, pancake [EMAIL PROTECTED] wrote: Yeah, eclipse is a very standard tool. Using ANT is far more better than using make. IMHO make is also a weird tool that should be replaced from ant manual: 'Makefiles are inherently evil as well. Anybody who has worked on them for any time has run

Re: [dwm] Coding styles

2008-07-31 Thread Antoni Grzymala
Szabolcs Nagy dixit (2008-07-31, 18:42): 'Makefiles are inherently evil as well. Anybody who has worked on them for any time has run into the dreaded tab problem. Is my command not executing because I have a space in front of my tab?!! said the original author of Ant way too many times.' i

Re: [dwm] Coding styles

2008-07-31 Thread nilp
On Thu, Jul 31, 2008 at 05:48:08PM +0200, pancake wrote: We can maybe maintain this enumeration in the suckless wiki. I dont say that removing comments is good. And remove them to reduce LOCs is stupid. comments have nothing to do with code. The problem is that there're lot of unnecessary

Re: [dwm] Coding styles

2008-07-31 Thread nilp
On Thu, Jul 31, 2008 at 06:42:58PM +0200, Szabolcs Nagy wrote: On 7/31/08, pancake [EMAIL PROTECTED] wrote: Yeah, eclipse is a very standard tool. Using ANT is far more better than using make. IMHO make is also a weird tool that should be replaced from ant manual: 'Makefiles are

Re: [dwm] Coding styles

2008-07-31 Thread Tuncer Ayaz
On Thu, Jul 31, 2008 at 6:00 PM, pancake [EMAIL PROTECTED] wrote: On Thu, 2008-07-31 at 17:28 +0200, Kai Großjohann wrote: I don't understand why IDEs are considered so bad. IDEs make it easy to shoot yourself in the foot (by clicking with the mouse, no less). But all C programmers know