Linked by MOS6510 on Wed 17th Apr 2013 21:20 UTC
General Development "You often hear about how important it is to write 'readable code'. Developers have pretty strong opinions about what makes code more readable. The more senior the developer, the stronger the opinion. But, have you ever stopped to think about what really makes code readable?"
Thread beginning with comment 558995
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Not sure I agree
by moondevil on Thu 18th Apr 2013 06:19 UTC in reply to "Not sure I agree"
moondevil
Member since:
2005-07-08

I tend to prefer languages like C++, C#, Ada and so on, because I am the opinion the language should be expressive to explore multiple abstractions and powerful enough to allow user types to behave like built-in ones.

Maybe that works for me, given the years I have been coding (since '86) and my background in compiler design.

Reply Parent Score: 3

RE[2]: Not sure I agree
by TempleOS on Thu 18th Apr 2013 06:37 in reply to "RE: Not sure I agree"
TempleOS Member since:
2013-04-03

I tend to prefer languages like C++, C#, Ada and so on, because I am the opinion the language should be expressive to explore multiple abstractions and powerful enough to allow user types to behave like built-in ones.


When I was young, I got excited about making new operators. Now, I see that as foolish, except where operators in math are already defined. Matrix and complex math is good with operators, but kids will foolishly use them where there is no precident (no pun intended.)

I think you would be better off just making built-in matrix and complex types... but there are many ways to define matrices--sparse etc.

cout <<1<<3<<"What?"<<endl;

I'm not fond of that. What if I want shift operators on numbers? It's too damn verbose. I have something less flexible, but more practical.

printf("Name:%s Age:%d\n",name,age);

You can use this: There is only one stream.

"Name:%s Age:%d\n",name,age;

Edited 2013-04-18 06:38 UTC

Reply Parent Score: 1

RE[3]: Not sure I agree
by moondevil on Thu 18th Apr 2013 07:39 in reply to "RE[2]: Not sure I agree"
moondevil Member since:
2005-07-08

Operators is an over-hyped example of using abstract names for function/method calls.

All modern languages except for C, Java and Go allow abstract names as function names/operators.

Reply Parent Score: 2