Design Patterns

Explain how to use the design patterns. (Creational Patterns) Refer1 Refer2 Refer3 Refer4 1. Creational Design Patterns. 1.1 Simple Factory Factory is an object for creating other objects Use cases: when the class does not know beforehand the exact types and dependencies of the objects it needs to create. When a method returns one of several possible classes that share a common super class and wants to encapsulate the logic of which object to create....

February 11, 2025 · 5 min · Phong Nguyen

Makefile Guide

Introduction GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program’s source files. Make get its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from the other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program....

August 9, 2024 · 11 min · Phong Nguyen

Markdown Syntax Guide

Introduction Markdown is a lightweight markup language that use to add formatting elements to plaintext documents. Table of contents 1. Heading: To create heading, add one to six # symbols before your heading. The number of # will determine the size of heading. Syntax # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 Preview H1 H2 H3 H4 H5 H6 2. Emphasis: You can add emphasis by making text bold or italic....

August 9, 2024 · 2 min · Phong Nguyen

English Grammar

This is where I study English grammar on my own every day. It’s a place where I not only improve my language skills but also discover new grammar rules. Step by step, I am working to become more confident in writing and communicating in English. The journey isn’t easy, but I believe that with patience and effort, I will continue to make progress. 1. Tenses Tenses indicate the time of an action or state of being expressed by a verb....

October 13, 2024 · 18 min · Phong Nguyen

Java JNA

Explain how to use the Java Native Access library (JRA) to access native libraries. References: Using JNA to Access Native Dynamic Libraries 1. Introduction Sometimes we need to use native code to implement some functionality: Reusing legacy code written in C/C++ or any other language able to create native code. Accessing system-specific functionality not available in the standard Java runtime. Trace-offs: Can’t directly use static libraries Slower when compared to handcrafted JNI code....

November 21, 2024 · 2 min · Phong Nguyen

Java Basic IO

Explain how to use basic I/O. References: Basic I/O Reading and writing files in Java (Input/Output) - Tutorial 1. I/O Streams An I/O Stream represents and input source or an output destination. A stream is a sequence of data. input stream: is used to read data from source, once item at a time. outputs stream: is used to write data to a destination, once item |at a time. --stream--> 0101010101... ----------> java....

November 14, 2024 · 2 min · Phong Nguyen

Java Platform Standard Edition

Java is a programming language created by James Gosling from Sun Microsystems (Sun) in 1991. Java allows to write a program and run it on multiple operating systems. References: Java Platform Standard Edition 8 Documentation Introduction to Java programming - Tutorial 1. Introduction to Java Oracle has two products implement Java SE: JDK (Java SE Development Kit): is a superset of JRE. JRE (Java SE Runtime Environment): provides the libraries, the Java Virtual Machine (JVM) and other components....

November 12, 2024 · 4 min · Phong Nguyen

English Stories

Welcome to this exciting collection of stories inspired by the “4000 Essential English Words” series. 1. The Lion and the Rabbit afraid, agree, angry, arrive, attack, bottom, clever, cruel, finally, hide, hunt, lot, middle, moment, pleased, promise, reply, safe, trick, well A cruel lion lived in the forest. Every day, he killed and ate a lot of animals. The other animals were afraid the lion would kill them all. The animals told the lion, “Let’s make a deal....

November 28, 2024 · 84 min · Phong Nguyen

English Writing

Learn about English.

December 30, 2024 · 1 min · Phong Nguyen

Eclipse Project

Explain how to create the eclipse project. References: Wizards and Dialogs Eclipse fragment projects - Tutorial 1. New Project Creation Wizards Every plugin, fragment, feature and update site is represented by a single project in the workspace and allow PDE(Plugin Development Environment) to validate their manifest file(s). File > New > Project... > Plug-in Development Use a Plugin Project if we’re building new functionality. Use a Fragment Project if we need to modify an existing plugin without changing its core code....

3 min · Phong Nguyen