Alonso Del ArteA subtlety of Assert Equals in TestNGTo check that two arrays are equal in JUnit, you have to use assertArrayEquals(). TestNG doesn’t have assertArrayEquals(), so you just use…2d ago2d ago
Alonso Del ArteCompiling Java on the command lineAside from maybe Hello World, most of you have probably never compiled a Java program on the command line. And why would you? An integrated…3d ago3d ago
Alonso Del ArteGitHub can now render TeX in markdownFor a long time, my Algebraic Integer Calculator project on GitHub did not have any explanation of any of the pertinent mathematical…4d ago4d ago
Alonso Del ArteQuick tutorial: writing a comparator in JavaComputers are constantly sorting things for us. Shopping results by price from lowest to highest. Athletes by one stat or another. Movies…Jun 19Jun 19
Alonso Del ArteWhen private doesn’t quite mean what you think it means, Java editionPrivate access in Java is about regulating scope at compile time, not enforcing security measures at runtime. When something is declared…Jun 17Jun 17
Alonso Del ArteRube Goldberg machine for checking if an integer is a power of 2A software developer should never be proud of his program being longer than it needs to be. Unless of course the program is longer than it…May 17May 17
Alonso Del ArteCommand line basics, Apple editionThe change from Mac OS 9 to Mac OS X brought a lot of UNIX tools to Apple’s computers, like the scheduler called “cron” and the text editor…Apr 22Apr 22
Alonso Del ArteCommand line basics, Windows editionWith all the fancy folder and file icons in the Windows Explorer (the Windows equivalent of the Mac OS Finder) and various file open and…Apr 5Apr 5
Alonso Del ArteProtected access in Java should be used very sparinglyYesterday I was reviewing a Java program of mine that I’ve been working on a few years now. A friend of mine, who is quite proficient with…Apr 21Apr 21
Alonso Del ArteA quick overview of access modifiers in ScalaThe available access modifiers in Scala are closely related to the ones in Java, but there are some important differences.Mar 26Mar 26