Re: [dwm] unsigned int or size_t

2008-07-31 Thread Szabolcs Nagy
On 7/31/08, Filippo Erik Negroni [EMAIL PROTECTED] wrote: Hi All, I noticed the code in dwm uses unsigned int for positive counters of memory arrays instead of size_t. Is there a particular reason you don't use size_t in order to convey that you are using that quantity as a counter of memory

Re: [dwm] DWMII layout with a more better integration

2008-07-31 Thread QUINTIN Guillaume
Donald Chai wrote: @pancake : I dont see any point for having a function called dwmiinoinfiniteloop Well this function is necessary, I didn't know how to call it, though its name is relevant... If you don't like its name feel free to change it but I won't. The important thing is that it

[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

[dwm] suckless wiki gopher

2008-07-31 Thread Jeroen Schot
Hi, A while ago there was some talk about making the wiki available in gopherspace. I made a quick mockup:

Re: [dwm] suckless wiki gopher

2008-07-31 Thread Mate Nagy
hiya, A while ago there was some talk about making the wiki available in gopherspace. I made a quick mockup: gopher://schot.a-eskwadraat.nl/1/suckless The idea is pretty simple: No conversion to html and embed the index.md page in the gophermenu (yes, 'i' itemtype abuse).

Re: [dwm] Being not so elitist

2008-07-31 Thread Christian Garbs
On Tue, Jul 29, 2008 at 11:02:16AM +0100, Anselm R Garbe wrote: 2008/7/29 Anselm R Garbe [EMAIL PROTECTED]: For the meantime the statement has been restored in the original place ;) Yay! Regards, Christian, thus still elitist ;-) --

Re: [dwm] dwm-5.1 / dmenu-3.8 / sic-1.0 / slock-0.9 / sselp-0.2

2008-07-31 Thread Christian Garbs
On Tue, Jul 29, 2008 at 09:04:30PM +0200, Tuncer Ayaz wrote: Just because I'm curious: Am I the only one using readline (shell, etc.) with Emacs key bindings and am therefore always remapping/deleting some default dwm key bindings? Because of that problem I switched to Mod1-Shift for dwm.

Re: [dwm] suckless wiki gopher

2008-07-31 Thread Fabio Scotoni
Hello, On Thu, 31 Jul 2008, Jeroen Schot wrote: A while ago there was some talk about making the wiki available in gopherspace. I made a quick mockup: gopher://schot.a-eskwadraat.nl/1/suckless I think this sucks less than html ;) With best regards, Fabio Scotoni