Live data from Hacker News

The Best Programming Language (or How to Stop Worrying and Love the Code)

blog.fourthbit.com

161–166 of 166 posts

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#161
post #159
post #158

Earlier quoted context omitted.

I'm going to hazard a guess that the problem is not the physical keyboard, but rather the OP's use of a non-US keyboard layout. My native portuguese keyboard layout uses AltGr-8 and AltGr-9 for square brackets, and 7/0 for curly braces, and it's incredibly uncomfortable. I eventually changed to using the US International layout (with dead keys) to make it less awkward to write code, to the detriment of writing in por…

> I'm going to hazard a guess that the problem is not the physical keyboard, but rather the OP's use of a non-US keyboard layout. You're exactly right.

You could try to map '{' and '}' to some more convenient keys and still keep using your non-standard layout if it works well for other things.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#162

Earlier quoted context omitted.

> everybody who's doing serious commercial programming ... Really, so anyone using a higher level language for line of business apps isn't doing serious commercial programming?

> Really, so anyone using a higher level language for line of business apps isn't doing serious commercial programming? Well, IMNSHO business apps (I take it you mean "enterprise apps") are not the epitome of programming, much less serious programming. Especially in-house apps. But it should be obvious from my description that with "commercial programming" I meant the end user market, and things people used to buy in…

> business apps (I take it you mean "enterprise apps") are not the epitome of programming, much less serious programming.

I'd reverse that and say the polished, packaged apps are the exceptions, these days. Code behind webservers and business backend processing is the code that runs the world now. To see C++ used in such code is pretty unusual. I do think C++ has its place: kernels, drivers, numerics. Not much else.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#164
post #109

Earlier quoted context omitted.

I think I have an older edition of that book, and it doesn't cover recursion. I would not recommend it for a novice programmer, other than picking up basic syntax, since it doesn't give anything substantial to sink your teeth into. The last C++ text that I came across was "C++ In Action: Industrial Strength Programming" by Bartosz Milewski. It was first published over a dozen years ago, so it will have dated a bit. I…

I don't think that recursion is really idiomatic in C++.

> I don't think that recursion is really idiomatic in C++.

Ok, I think you could throw that at C as well. As a general programming concept it's quite idiomatic. All I know is that fucking up recursion is just as easy as fucking up iteration.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#165
post #164

Earlier quoted context omitted.

I don't think that recursion is really idiomatic in C++.

> I don't think that recursion is really idiomatic in C++. Ok, I think you could throw that at C as well. As a general programming concept it's quite idiomatic. All I know is that fucking up recursion is just as easy as fucking up iteration.

Well it's not really idiomatic in C either. And it's not about fucking it up but about performance. Even if you do tail recursion, it will still be slower.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#166
post #159

Earlier quoted context omitted.

> I'm going to hazard a guess that the problem is not the physical keyboard, but rather the OP's use of a non-US keyboard layout. You're exactly right.

You could try to map '{' and '}' to some more convenient keys and still keep using your non-standard layout if it works well for other things.

It's not a "non-standard" layout, it's a non-US layout.
Post reply on HN