The amazing thing is that you have to pay for Castalia, while CN Pack was always free, open source and have way better quality. Even you can contribute to the project, as an open source project is intended to be.
I start to see a pattern, too much people is paying for crap nowdays and supporting the wrong developers... sigh!
Michael Thuma I remember to have tried Castalia. I was disapointed, then found CN Pack and fall in love with it, it has been satifying since first day, no complains. I think Castalia has to much hype for what it cost and what it does.
We all have our preferences. I like the keywords that influence the flow to be aligned. When I find an "end", it's guaranteed to have whitespace above it until the keyword that started it.
That way, I only have to scan white space and some first words on a line, without having to scan the rest of the code.
So yes, my code uses more lines, but when i read it, I can skip through irrelevant parts much faster, because i have less code to read.
I compensate for the extra lines by using a large monitor, a high resolution and a small font. :)
anyway, the code readability is above all a matter of habit. At the time I was coding with Turbo Pascal my source was very compact to fit on a 80x25 screen and I found it very readable at that time. Now I tend to space out my code and I find it also more readable. I also stopped using uppercase initial on keywords which I now find indigestible :)
"end else begin" is a vestige of that old time..it took me a lot of time to place begin under if ;)
https://plus.google.com/+LarsFosdal/posts/iTc8NQFihM2
ReplyDeletehttp://stackoverflow.com/questions/29517139/how-can-i-configure-the-new-delphi-xe8-editor-begin-end-visual-cues/29518034#29518034
ReplyDeletehttps://quality.embarcadero.com/issues/?jql=text%20~%20%22Castalia%22
ReplyDeleteAlternatively you an use CN Pack's corresponding feature: http://i.stack.imgur.com/DHq1f.png
ReplyDeleteThe amazing thing is that you have to pay for Castalia, while CN Pack was always free, open source and have way better quality. Even you can contribute to the project, as an open source project is intended to be.
ReplyDeleteI start to see a pattern, too much people is paying for crap nowdays and supporting the wrong developers... sigh!
Michael Thuma I remember to have tried Castalia. I was disapointed, then found CN Pack and fall in love with it, it has been satifying since first day, no complains. I think Castalia has to much hype for what it cost and what it does.
ReplyDeleteTo be fair,I don't like your if/then/else syntax either.
ReplyDeleteSteven Camilleri I can understand, it's not perfect, but I don't like any other way to write it.
ReplyDeleteI have to agree with Castalia on this one. It's difficult to read code that's formatted like this. :)
ReplyDeleteMy model is
ReplyDeleteif condition
then begin
end
else if another condition
then begin
end
else begin
end;
and variations on that - which ever reads the best.
Mine is set at 120 chars.
ReplyDeleteWe all have our preferences. I like the keywords that influence the flow to be aligned. When I find an "end", it's guaranteed to have whitespace above it until the keyword that started it.
ReplyDeleteThat way, I only have to scan white space and some first words on a line, without having to scan the rest of the code.
So yes, my code uses more lines, but when i read it, I can skip through irrelevant parts much faster, because i have less code to read.
I compensate for the extra lines by using a large monitor, a high resolution and a small font. :)
anyway, the code readability is above all a matter of habit. At the time I was coding with Turbo Pascal my source was very compact to fit on a 80x25 screen and I found it very readable at that time. Now I tend to space out my code and I find it also more readable. I also stopped using uppercase initial on keywords which I now find indigestible :)
ReplyDelete"end else begin" is a vestige of that old time..it took me a lot of time to place begin under if ;)
Fortunately Pascal is not very strict with spaces and indentation. My form of If...Then...Else is more like:
ReplyDeleteif then begin
end
else begin
end;
And my right margin is very wide too (132), because of wide screen has no sense to stick to 80 columns.