News for hackers. Stuff that matters.

lucidguppy2000

The governments are giving the companies enough rope to hang themselves.
Write characterization tests for modules, see what inputs produce which outputs. Then you have the start of unit tests.

Programming with unit tests really helps. And it points out where certain parts are too entangled and bound to implementation.

Re:Why Go is doomed to succeed on Saturday June 13, 2015 @06:25PM (#9712947)
How does go prevent complexity?
Re:How to Make Almost Anything on Saturday June 13, 2015 @07:39AM (#9710715)
I wish high-schools would add some of this stuff to after school programs.

Learning to make circuit boards would have helped me with all my spaghetti wiring I do/did.

Also - a big motivation for work is learning. Didn't someone say "never apply for a position your qualified for"?
Keep in mind - a function shouldn't contain more than one level of abstraction really. Having a 50+ line function, the code is telling you that you have a class in there struggling to get out.

Also - you may be superior to others and able to understand a 50 line function. But what about your colleagues?

The average cognitive limits of are well known. I doubt we will evolve to beyond these flaws in my lifetime.

Nothing's really jumped out to me yet, but tools need to raise flags about the complexity of code. A pre-commit hook that recognizes long functions, classes with more than ten member variables, classes that program to an implementation rather than interface? Could it check to see that classes that can be easily unit-tested are?

The world expects programmers to make clean code, but we've not really advanced our tools much outside of Java and C#. I'm always envious of what the refactoring tools can do in those languages.

Re:Node and ARM on Wednesday April 29, 2015 @06:43PM (#9462312)
Where are the numbers? In my experience node is very slow on ARM.

Spin up a http server on arm and check out the latency for it to return "".

The scientific term for work needs to get into the general culture. You can expend a whole lot of energy without doing any actual work. "Working harder" is actually "expend energy" while the actual work done is the same.
I wish there was a language that was actually multiple levels of compatible languages.

At one end would be dynamic and scripted and would progress to the other side of compiled and static. You would start out at one end for speed of development and progressively optimize and compile.

I suppose python and cython are that language. But it's not as popular as it should be.