Hopp til hovedinnhold

Holger Ludvigsen

4 innlegg

Raw GPU power with shaders in three.js

JavaScript
Artikkel (5 min)
Fra Holger Ludvigsen

It is time to unleash the christmas spirit hiding behind that noisy fan in your computer. In this article, we will use shaders in WebGL to make animations no one could imagine in JavaScript before.

3D with WebGL and three.js

JavaScript
Artikkel (4 min)
Fra Holger Ludvigsen

As a developer, you have surely wondered if the web can do full 3D beyond tweaking the z-index and fiddling with CSS 3D transforms. WebGL is the API for making such fully customizable visualizations in all dimensions. We can use this together with de facto standard framework three.js to unlock this mysterious domain.

Simplify your code with ad hoc tuples

Elm
Artikkel (2 min)
Fra Holger Ludvigsen

With Elm's strong types, we must be precise when writing our business code. Precision is a good thing, but it often has the drawback of being verbose. Ad hoc tuples can save the day with clear and precise syntax!

A symbolic gift

JavaScript
Artikkel (3 min)
Fra Holger Ludvigsen

Years ago, the JavaScript language was gifted with the Symbol primitive. Unlike many other language features in ES6, it was not simply a shorter syntax for doing something otherwise previously possible. It is not obvious what the point of these symbols are, and they are not commonly used. If you try to read up on them, you will find that many articles focus on details that are not important to the purpose of symbols. This article will explain what they are, what the point is, and give some real life use cases.