Candost's Blog

Candost's Blog

Candost

I used to think that reading would make me wise. One day, ten pages before finishing a book, I realized that I had read that same book before. At that point, my perspective on reading and, therefore, my life had changed. Now, I don’t care how many books I read; I take many notes, connect dots, and share what I’ve found on my blog and newsletter. I’m interested in many things at the same time (I’m a multipotentialite). On this blog, you’ll find me talking to about multiple aspects of life like leadership, software engineering, philosophy, psychology, software architecture & design, urban & industrial design, exercising, finance, Formula1 Racing, eating healthy, and many more. I’m a software engineering manager; that’s my current job. At home, I’m a writer and an avid reader. I rarely watch TV, movies or TV series. I don’t have any social media account (except Mastodon where I have automated posting of my new articles). Hence, I often miss the popular culture references in conversations. That’s alright. I don’t have FOMO; I embrace JOMO. I rarely read fictional books.

Latest Posts

Project Mechanism There are two public methods, and four private methods. ziptenCikar and ziple methods are public. Other methods are private. To zip a directory or a file, there is ziple method in the project. This method takes two...
Note to myself: Load a Class that is not on the classpath import java.io.File; import java.net.URL; import java.net.URLClassLoader; public class Main { public static void main(String[] argv) throws Exception { File file = new...
Note to myself: System.arraycopy method: Copy the content of an array (source) to another array (destination), beginning at the specified position, to the specified position of the destination array. public static void arraycopy (Object...
Note to myself: With objects, you can cast an instance of a subclass to its parent class. Casting an object to a parent class is called upcasting. Child child = new Child (); Parent parent = child; To upcast a Child object, all you need...
Note to myself: Blank finals must be initialized in the constructor. Ex: class A { private int i; A(int ii) { i = ii; } } public class MainClass { private final int i = 0; // Initialized final private final int j; // Blank final private...
Note to myself: By Value or By Reference Primitive variables are passed by value. Reference variables are passed by reference. When you pass a primitive variable, the JVM will copy the value of the passed-in variable to a new local...
Note to myself: In java, conditional && will not evaluate the right-hand operand if the left-hand operand is false. If you want to check the right-hand operand use &. For example: public class MainClass { public static void main(String[]...
What is Design Pattern? There is a good description from Christopher Alexander. He says, "Each pattern describes a problem which occurs over and over again in environment, and then describes the core of the solution to that problem, in...
Objective: The aim in this practical tutorial is for the students to develop the ability to design and write simple Java programs which may not require a through Object Oriented Design and Analysis. Your task in this week’s lab exercise...
Search Random