Better HN
topnewbestaskshowjobs
Log inSign up

thender21

3 karma · joined Jul 12, 2019 (7y ago) · 6 submissions

Submissions

comment 7y ago · link · parent

A static analysis report of published codebases regarding metrics like line length per function would be interesting to see.

Guidelines should come with a rationale so that in the very least following them when it contravenes their intent can be justifiably avoided.

If I can't understand and appreciate the rationality behind a guideline and I'm not required by coding standards or tooling to follow it, I'm not going to.

Here's a guideline; don't surrender your common sense and let someone's generalized ideology dictate the design of your program.

While I see advantages to minimizing the length of functions, I can't imagine a well written program following this five line rule.

My concerns are that it increases the length of the source code which damages readability, that it scatters functionality and obscures control flow, and that it unnecessarily requires the formation of many interfaces.

The rule is far too general in it's application "all functions" and at the same time too specific "5" to be useful.

If you said instead "in general, try to make your functions do one thing well and divide and conquer the problems until each function is not very hard for you or someone else to understand",

Then OK.

comment 7y ago · link · parent

And https://en.wikipedia.org/wiki/ISO_26262

3.

What legal issues when collaborating with developers from other corporations?

1 points · by thender21 · 7y ago · discuss

comment 7y ago · link · parent

What is this the third law of robotics?

Some guy solders it, some guy programs it, some guy configures it, it violates the law and no one is guilty?

Does splitting hairs about the execution change the fact that some person or group of people deliberately intended to commit a crime?

If you want to say it could have been an accident because of xyz implementation details, OK, but I don't see anything like that.

comment 7y ago · link · parent

The German government is most likely deeply, deeply ashamed and embarrassed that its own engineers would have 'cheated'. Not only is Automotive Engineering the pride of the nation but a lot of German industry and investment was tied to Diesel as a future low emissions transport technology.

They're going to follow and prosecute this like blood hounds.