General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
NotYourFox
Kantan Coding
comments
Comments by "NotYourFox" (@notyourfox) on "The 3 Laws of Writing Readable Code" video.
@damianjblack To be clear, I'm not at all against Pascal or this style of code. Stating that I was a bad coder was not related to the above, but was rather a bit of an off-topic remark. Just wanted to say that I really did kind of the opposite thing to what I'm doing now in languages such as C. I generally prefer having the code block start marker (in this case "{") adjacent to whatever it is related to; it kinda seems to me otherwise that the statement and the code block below it are less related. Also I don't like having redundant lines of code occupied just by one symbol, with an exception to empty lines and the statement closing marker "}", which generally should be on the outer identation level relative to the code block, thus visually marking it's completeness. That's why I see Kernighan & Ritchie style as the most and the only one fitting for me
3
const char* this_is_also_acceptable() { if (closing_bracket_matches_statement_start) { return "ok"; } return NULL; }
2
@damianjblack I have learned some Pascal (and now remember almost none of it, didn't ever really use), but my first language was Python Also I remember writing begin on a new line smh :) I was generally a terrible coder back then
2
@damianjblack Well, I'm making an OS the initial release of which I am going to soon announce to a dozen of people and am looking forward to develop further, so code readability is essential for me. Yet it always seems like I'm failing the job of making things maintainable, it's actually really hard in those kinds of projects.
2