Now that everything works so far we should focus on adding some functionality. First of all: how should the data be stored? Model The model should be rather simple. I need a list of lessons and each lesson has a bunch of questions / words. Usually I start by defining a sample document directly in… Continue reading Typolino – Define Model and Code
Category: Programming
Typolino – Add Firebase to our Angular application
Next step is to connect the Angular application with Firebase. This should be rather straight forward. add the npm package configure the environment test the connectivity Add Firebase modules ng add @angular/fire Actually I just realized that adding @angular/fire will do some stuff we already did before. Not an issue but I had to cleanup… Continue reading Typolino – Add Firebase to our Angular application
Typolino – Setting up the project
First things first. I try to document how I have setup my project. If you want to follow the steps for your own project, let’s first list what you need as a prerequisite: Node (I have 10.15.3 installed) A Firebase account (I think a Google account is sufficent and you will have it already –… Continue reading Typolino – Setting up the project
Typolino
Because of the Corona virus I’m at home – almost all the time. #stayhome. I have two kids which can’t go to Kindergarten these days and I was wondering if there is any good online training for kids to learn to type & read. To be fair, I haven’t looked around much. But the first… Continue reading Typolino
Develop a game with p5.js (part 3)
In this third and last part of the series on how to develop a game with p5.js we will implement the actual game logic: eat enemies, get bigger and faster and game over handling. You will find the full code at the end of the article and you can play the game here. New state… Continue reading Develop a game with p5.js (part 3)
Develop a game with p5.js (part 2)
Welcome back to the second part on how to develop a game with p5.js. Today we are going to add some interactions to our game. Wouldn’t be a real game if we couldn’t move around something, right? Now that we already have setup most variables that we need and the scene is set, the rest… Continue reading Develop a game with p5.js (part 2)
Develop a game with p5.js (part 1)
p5.js is a great JavaScript library to create little games that run directly in your browser. They even offer an online editor, so you can really just get started. Find out more about p5.js here: https://p5js.org/Or directly access the online editor: https://editor.p5js.org/ In this article I will show you a game we implemented as part… Continue reading Develop a game with p5.js (part 1)
Java Collections Static Factory Methods
With Java9 we finally get an easy way to construct collections. I think the map is one that I will be using quite often. Now I can write: Map<String,String> lookupMap = Map.ofEntries( entry(“a”, “A”), entry(“b”, “B”), entry(“c”, “C”)); Instead of: Map<String, String> lookupMap = new HashMap<>(); lookupMap.put(“a”,”A”); lookupMap.put(“b”,”B”); lookupMap.put(“c”,”C”);
JavaScript und Physik
Gerade kürzlich ist mir die Formelsammlung der Physik in die Hände gefallen und ich hatte irgendwie Lust, ein Pendel zu programmieren. Ich habe früher bereits einen Artikel geschrieben, wie man mit JavaScript physikalische “Experimente” durchführen kann und bin nach wie vor der Überzeugung, dass dies eine ideale Tätigkeit ist, um das Programmieren zu erlernen. Man braucht… Continue reading JavaScript und Physik
Java 8 default methods
Why OK, so interfaces can now provide a default implementation. This makes sense if you want to be able to add new methods to your interface without breaking existing implementations. Oracle uses default methods quiet extensively (see java.util.Collection). Simple example public class SimpleExample { interface Interface1 { default void test() { System.out.println(“– default test”); } default void test2() { System.out.println(“–… Continue reading Java 8 default methods