The blog ofJonathan Pepin

Levels - Turning side project into startups [raw]

2018-02-09

travel is expensive, need money * depressed when going back home bc no more money * shovelling allows to cope with depression -> 12 startups in 12 months * nomad list was a shared spreadsheet by mistake, now big...

Docker Overview

2017-12-19

|term|comment| |---|---| |Docker image /assets/images/docker-image.png image|Lightweight, executable snapshop of an application to run. Holds code, env, libs, runtime, config files, etc.| |Docker Container /assets/images/docker-container.png container|Executed, running image. Runs completely isolated from host environment.| |Docker Kernel /assets/images/docker-kernel.png Kernel|One Docker Kernel per host. It's a...

Anti Pattern - ES6 default exports

2017-12-05

The new ES6 module system offers a built in export system coming with a better syntax than previously used CommonJS and AMD modules. You can now export modules with the following syntax: javascript class Foo {} export default Foo;...

Naming things

2017-11-21

It's been said that there are only two hard things in computer science; Cache invalidation, naming things and off-by-1 errors. Today I'd like to talk about naming things, because it's an issue that is often discussed and regularly comes back...

Notes from Rework [raw]

2017-11-18

Raw Kindle notes for Rework Jason Fried () We have something new to say about building, running, and growing (or not growing) a business. The moment the first hunter-gatherer set foot on an Australian beach was the moment that Homo sapiens...

Notes from The Man Who Tapped The Secrets Of The Universe [raw]

2017-09-17

Raw Kindle notes for The Man Who Tapped The Secrets Of The Universe by Glenn Clark (http://a.co/aV6j5Sp) I believe that mediocrity is self-inflicted and that genius is self bestowed. Every successful man I ever have known, and I have known a...

Physics for Asteroids

2017-08-07

{% include asteroids/asteroids.html %} You can find the source code of the demo here (https://github.com/jauny/asteroid). --- Asteroids is an old school game where you control a space vessel. In previous movements I've built, forces are constants. In Snake (/snake), you either go...

Removing elements from slice during loop

2017-08-04

During a loop, golang doesn't make a copy of the list you are iterating over, but instead just updates the list on the fly. It can be an issue when you are removing elements from the list. For example, let's...

Get mouse position on canvas

2017-08-02

A simple one that I want to save here because I keep googling it and copy/pasting. ```javascript const getMousePos = (evt, canvas) => { const rect = canvas.getBoundingClientRect(); return { y: evt.clientY - rect.top, x: evt.clientX - rect.left } }...

On Pointers in Go - Really

2017-07-26

I wrote about pointers in Go in this previous post (/2017/On-Go-Pointers/). And I still banged my head for an hour on something just now. So here's another post, so I really, like REALLY understand to always, ALWAYS use pointers. Unless I...