Re: [dev] Learn C

2019-04-02 Thread sylvain . bertrand
On Tue, Apr 02, 2019 at 05:44:35AM +0200, Markus Wichmann wrote: > I was being quite serious. Not everything posted on April 1st is a joke. > I eventually got fed up with harmful.cat-v.org, because all it listed > was derision, but no actual justification. Just like you. In a suckless context, tho

Re: [dev] Learn C

2019-04-02 Thread Ian Remmler
This is arguing about what kind of pencil you ought to use to draw the bike shed design and never even getting around to disagreeing about what color to paint it. On Tue, Apr 02, 2019 at 01:15:42PM +, sylvain.bertr...@gmail.com wrote: > > What a strange reply. Clearly *some* abstractions are g

Re: [dev] Learn C

2019-04-02 Thread sylvain . bertrand
> What a strange reply. Clearly *some* abstractions are good, otherwise > we'd all be writing assembly. *How many* abstractions exactly is a > matter of contention and personal taste. But as soon as someone > slightly disagrees with you on a fairly minor point you resort to > insults and "bruh huh

Re: [dev] Learn C

2019-04-02 Thread Quentin Rameau
Not that this sort of thread can really go anywehere else, sadly, but please refrain to getting aggressive with each others. We all saw there was a lot of *opinions*, albeit written as dogmas, let the reader be smart and see which are to be adopted and which be rejected, and which to be ignored (n

Re: [dev] Learn C

2019-04-02 Thread sylvain . bertrand
On Mon, Apr 01, 2019 at 07:34:20PM +0200, Markus Wichmann wrote: > you aren't exactly a beacon of sunshine either. You like to make > normative claims all over the place, but when asked to defend them, you > only have names to call people. Maybe C++ is genuinely as horrible as > you say. I have see

Re: [dev] Learn C

2019-04-01 Thread Martin Tournoij
On Mon, 1 Apr 2019 16:56:21 + sylvain.bertr...@gmail.com wrote: > Dear David, > > You are of the type of human being I, genuinely, sort of dislike. Namely a > syntax > kludge and excessive abstraction lover. > > Your first sentence is already an insult to "suckless" people: "won't you > wri

Re: [dev] Learn C

2019-04-01 Thread Markus Wichmann
I was being quite serious. Not everything posted on April 1st is a joke. I eventually got fed up with harmful.cat-v.org, because all it listed was derision, but no actual justification. Just like you. Ciao, Markus

Re: [dev] Learn C

2019-04-01 Thread sylvain . bertrand
God! I barely did notice we were the first of April... and I was surprised to see ideas so much remote from suckless stated here. Got me guys. I fell for it. doh! -- Sylvain

Re: [dev] Learn C

2019-04-01 Thread sylvain . bertrand
Nice April Fool's joke. -- Sylvain

Re: [dev] Learn C

2019-04-01 Thread inasprecali
I know this is bait but I'll bite: People who think this shit in real life are insufferable faggots who have 0 concept of how much abstraction there already is between them programming in "real" languages bare metal. The amount of abstraction that's achieved by going from logic gates to C is fucki

Re: [dev] Learn C

2019-04-01 Thread Markus Wichmann
On Mon, Apr 01, 2019 at 04:56:21PM +, sylvain.bertr...@gmail.com wrote: > Dear David, > > You are of the type of human being I, genuinely, sort of dislike. Namely a > syntax > kludge and excessive abstraction lover. > > Your first sentence is already an insult to "suckless" people: "won't you

Re: [dev] Learn C

2019-04-01 Thread sylvain . bertrand
Dear David, You are of the type of human being I, genuinely, sort of dislike. Namely a syntax kludge and excessive abstraction lover. Your first sentence is already an insult to "suckless" people: "won't you write in assembly next time?" -- Sylvain

Re: [dev] Learn C

2019-04-01 Thread David Demelier
Le 24/03/2019 à 14:33, sylvain.bertr...@gmail.com a écrit : * do not use enum (hard rule) I'd be glad to get any reason why not. C is already minimalistic, won't you write in assembly next time? Moreover, enums are often well supported in debuggers and show the actual enum constant rather t

Re: [dev] Learn C

2019-03-27 Thread sylvain . bertrand
On Wed, Mar 27, 2019 at 01:19:23PM -0700, Evan Gates wrote: > On Wed, Mar 27, 2019 at 12:40 PM wrote: > > > > On Wed, Mar 27, 2019 at 07:43:04AM -0700, Evan Gates wrote: > > Style and the amount of actually used syntax is different. > > I'd disagree. Once you choose a language, any choices about

Re: [dev] Learn C

2019-03-27 Thread Evan Gates
On Wed, Mar 27, 2019 at 12:40 PM wrote: > > On Wed, Mar 27, 2019 at 07:43:04AM -0700, Evan Gates wrote: > Style and the amount of actually used syntax is different. I'd disagree. Once you choose a language, any choices about how you write that language are style. > > > add a suffix to your type

Re: [dev] Learn C

2019-03-27 Thread sylvain . bertrand
On Wed, Mar 27, 2019 at 07:43:04AM -0700, Evan Gates wrote: > On Tue, Mar 26, 2019 at 11:21 AM wrote: > > C has already a syntax way too rich and flexible. Most of the > > linux coding guidelines is nice. > > There is also a style page[0] at suckless. But again style is subjective > and the most

Re: [dev] Learn C

2019-03-27 Thread Evan Gates
On Tue, Mar 26, 2019 at 11:21 AM wrote: > C has already a syntax way too rich and flexible. Most of the > linux coding guidelines is nice. There is also a style page[0] at suckless. But again style is subjective and the most important thing is consistency within a project. > add a suffix to you

Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Tue, Mar 26, 2019 at 08:56:07PM +0100, Kurt Van Dijck wrote: > I agree with most of your arguments > > > * use sized types: u8 u16 i64 float32 etc... you can use the C > > preprocessor to fix that, but in some case, as a good tradeof (for > > instance in > > "object oriented C code"), add

Re: [dev] Learn C

2019-03-26 Thread Kurt Van Dijck
I agree with most of your arguments > * use sized types: u8 u16 i64 float32 etc... you can use the C > preprocessor to fix that, but in some case, as a good tradeof (for instance > in > "object oriented C code"), add a suffix to your type (u8_t, struct > my_class_t), then > for instance yo

Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Tue, Mar 26, 2019 at 08:37:18PM +0100, Quentin Rameau wrote: > > * do not use enum (hard rule) > > * do not use typedef (hard rule) > > * use sized types: u8 u16 i64 float32 etc... you can use the C > > preprocessor to fix that, but in some case, as a good tradeof (for > > instance in > > "

Re: [dev] Learn C

2019-03-26 Thread Quentin Rameau
> * do not use enum (hard rule) > * do not use typedef (hard rule) > * use sized types: u8 u16 i64 float32 etc... you can use the C > preprocessor to fix that, but in some case, as a good tradeof (for instance > in > "object oriented C code"), add a suffix to your type (u8_t, struct > my_clas

Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Sun, Mar 24, 2019 at 10:28:35AM +0100, Thuban wrote: > Hi, > I want to learn C. I mean, sane C. > What i read before was based on big IDE such as codeblocks. So, I don't > know how to write Makefiles from scratch. (just an example). > As an example, I found gobyexample [1] great. But it's go. >

Re: [dev] Learn C

2019-03-25 Thread sylvain . bertrand
On Mon, Mar 25, 2019 at 10:08:28AM +0200, ab wrote: > Expect a thousand conflicting opinions. If you're truly interested in > programming, your best bet is to look at as many ideas as possible then > working on your ability to sort the bullshit out. "opinions" is the right term: subjective person

Re: [dev] Learn C

2019-03-25 Thread ab
Expect a thousand conflicting opinions. If you're truly interested in programming, your best bet is to look at as many ideas as possible then working on your ability to sort the bullshit out. Good luck; you'll need it.

Re: [dev] Learn C

2019-03-24 Thread Robin Pedersen
Yo. Maybe you wanna read this? https://git.suckless.org/ https://9p.io/sources/plan9/sys/src/cmd/ Regards Robin. On Sun, 24 Mar 2019 at 11:29, Thuban wrote: > > Hi, > I want to learn C. I mean, sane C. > What i read before was based on big IDE such as codeblocks. So, I don't > know how to write

Re: [dev] Learn C

2019-03-24 Thread Joseph Graham
https://matt.sh/howto-c On Sun, Mar 24, 2019 at 10:28:35AM +0100, Thuban wrote: > Hi, > I want to learn C. I mean, sane C. > What i read before was based on big IDE such as codeblocks. So, I don't > know how to write Makefiles from scratch. (just an example). > As an example, I found gobyexample [

Re: [dev] Learn C

2019-03-24 Thread Mattias Andrée
Hi, I would recommend to simply to C projects. Suckless.org is great place to find sane C code with simple Makefiles. If you already are programmer, you should be able to learn C by just using it, no reading necessary. This way you should get a solid understanding of the basic quite fast and with

Re: [dev] Learn C

2019-03-24 Thread Stefan Hagen
Thuban wrote: I want to learn C. Kernighan and Ritchie, C Programming Language, 2nd Edition I mean, sane C. http://suckless.org/coding_style/ http://suckless.org/philosophy/ http://www.catb.org/esr/writings/taoup/html/ch01s06.html HTH, Stefan

Re: [dev] Learn C

2019-03-24 Thread Ivan Tham
Hi, K&R The C Programming Book Second Edition should be a nice book to learn C. On Sun, Mar 24, 2019 at 10:28:35AM +0100, Thuban wrote: Hi, I want to learn C. I mean, sane C. What i read before was based on big IDE such as codeblocks. So, I don't know how to write Makefiles from scratch. (just

[dev] Learn C

2019-03-24 Thread Thuban
Hi, I want to learn C. I mean, sane C. What i read before was based on big IDE such as codeblocks. So, I don't know how to write Makefiles from scratch. (just an example). As an example, I found gobyexample [1] great. But it's go. Any reading advice? Thanks. Regards [1] : https://gobyexample.com/