I know of one programming language where solving Cheryl’s birthday in programmatic form would be par for the course in a programming interview.John Feminellawrote a post showing how Prolog can determine Cheryl’s birthday in about 30 lines of code (including ample comments). Indeed, tougher var...
On “God of War” we were getting QA and artist bug reports that were mysteriously named along the lines of “black fog eats the whole screen.” 🙂 Fixed point implementations generally tend to be more robust in that regard – as long as the code correctly checks for any potential over...
On “God of War” we were getting QA and artist bug reports that were mysteriously named along the lines of “black fog eats the whole screen.” 🙂 Fixed point implementations generally tend to be more robust in that regard – as long as the code correctly checks for any potential over...
While you could write out the iterative solution that takes maybe ten lines of code, why do that when you could instead write it in one line? Using Binet’s formula, you can just approximate the term in a single line of code! Short code is always better than long code, so that means...
t have to be so. Instead of propagating a top-level modification by hand through millions of lines of code, you can write a short program that uses the C++ front-end to make exactly the modifications that are needed — more reliably than a human. This includes understanding and, if ...
services to fill up the order object with all the information it needed. These services were around 100 lines of code each and did one thing. They did have some problems with this, it was hard to figure out where the order is and hard to understand, especially for inexperienced programmers...
The first two highlights are lines 3 and 4 which show us importing the TestSuite as TS and the HUnit test classes as HU. You’ll have to remember that for the remainder of the tests. The next highlight is the definition of the hunitTests which are HUnit Test classes. You can provid...
That's highly optimistic. We have java classes with 3000+ lines of code, and the longest method is about 800 lines. And I'm secretly proud of it. :-) - G B (24) I've got C code with a single function over 8000 lines, with less than 1% of that comments. It's also the ...
There’s a bit of code in softmax.py to handle options and read in data. The most important lines are the ones that define the input data, the model, and the training step. I simply adapted these from the MNIST beginners tutorial, but softmax.py puts it all together and provides a ...
Cute. This reminds me of something a friend said in a group discussion that touched on security and embedded in body (or perhaps it was mind embedded in) systems, along the lines of “I wouldn’t run (on) an insecure system.” Or malware would give you a bad trip....