This post talks about how to implement basic inheritance in Ruby using a simple example. I’ll throw in some comparisons with Java.
Ruby – How to create a Class and its Object
This post shows Ruby codes that create a simple class and objects from that class. Yes, Ruby is an old and weird programming language, but people and companies are still using it. Therefore, no one programming language has a monopoly
Ruby – How to Unit Test your Codes
This post demonstrates how to unit test your Ruby codes. Note that Ruby-on-Rails (RoR) is not used here.
Golang go and exe Files
This post shows how to run your Golang go script and convert it as an exe file in Windows. Install Golang for Windows I am running a 64-bit Windows 10 box. First, Download Golang Installer (exe file) Proceed to the
Spring Boot – Publish and Consume Custom Application Events
This post shows how to implement the Observer Design Pattern using the facilities available from Spring Application Events. More importantly, it shows how to publish and consume custom application events in Spring Boot. Observer Design Pattern – Publish And Consume
Ruby – Connect to MySQL without Rails
This post demonstrates how to connect to MySQL from Ruby, insert, select and delete table rows.
Ruby vs Java – Read and Write Text Files
This post demonstrates how to read and write text files in several scenarios. It makes some short references to equivalent Java concepts and codes.
Spring Boot – Loading Data Using a SQL Script
This post demonstrates how loading data from an SQL script for a particular database platform. This is ideal for development stage when you need some seed data to fill in existing database tables.
Spring Boot – Using annotations with Apache Camel
This post shows how to use Spring Boot and dependency injection with Apache Camel and have Spring add routes and start and stop CamelContext automatically. The Spring way for Apache Camel In the previous post, Spring Boot – Copy File
Using TimeUnit instead of Thread.sleep()
This post demonstrates how to use TimeUnit as a replacement to the usual and out-dated way to pausing thread via Thread.sleep().