Category: programming
-
Pong classic game in JavaScript
The Pong is a legendary game. I found an excellent Pong version on Codepen. And then got into tweaking the code, bit by bit. The change log so far: Spacebar key pauses the game, freezing the ball. Space again to play! added a Slam! sound effect, whenever the ball hits the club, thanks jQuery for…
-
Algorithm for a Codemaze construction
Codemaze presents a puzzle (“problem”) to user. The puzzle can be solved by doing Steps. Visually it’s a 2-dimensional, traditional maze. Let’s take a real puzzle I had: given a string that represents a number, cut it so that the resulting number in the string shows only the integer (whole number) portion, disregarding decimal numbers…
-
Contextual Node / Javascript stuff
Node’s origins – by Ryan Dahl himself! Your first steps writing a Node program Node is the engine that executes Javascript code. In the video above you can watch the whole story of how NodeJS got started. It’s an epic video, and author Ryan Dahl along with the fresh Node engine started a sort of…
-
How was my week #1 (spring 2021) in sustained coding?
I wrote on Tuesday about shaping one’s habits in order to curb excessive “lifelong learning”, and concentrate on coding. Here’s my own results for the 1st week. This is first part of a train of Posts about keeping up habits for coding. Coding is fun, and even more so, if you actually learn to learn:…
-
Bonzai snipping habits: Doing Code continuously
Continuous coding requires actually a bit of bonzai snipping of one’s habits. know what is your particular version of XKCD nerd sniping – and avoid it avoid your personal lucrative “time pits” keep track of hours (bash: cvport is one option) also know when to stop working for a project – otherwise you might be…
-
Railsin rakenne
Rails on mukava, koska saat paljon Railsista valmista rakennetta sovellukselle tyyli ja laatu on kohdillaan Railsin valmiissa palasissa Ruby-yhteisö on tunnettu avuliaisuudestaan – ja erittäin selkeästä englannista Rails (ja Ruby-kieli) on taistelutestattu ja ollut olemassa oikeasti pitkään Rails uudistuu jatkuvasti, mutta tahti ei ole niin älytön että stressaisi No niin… Ruby alta pois ensin! Viihdyn uutta…
-
Ohjelmistot vs. bakteerikasvustot
Mielenkiintoinen ajatus nousi aamulla; intuitiivisesti, ohjelmistojen kehityksen nopeudesta. Ohjelmistot ovat koodia, siis tekstirivejä. Tietysti rivit pitää osata kirjoittaa, eli niillä kuvataan oikeastaan tekoja (algoritmit) ja asioiden välisiä suhteita (tietorakenteet). Käytännössä sillä, mikä alusta tai teknologia valitaan (C, Java, JavaScript, Ruby, Python, …), ei muuta tätä yksinkertaista faktaa. Kun palikoita on riittävästi laitettu pinoon, jonoon ja…
-
Basis for the prophets of Remote
The world seems to be talking about digitalization. It’s rather elusive subject at times. I like to think of digitalization in very simplistic way: how much does it save effort? The core of digital work (in software) is keeping your eyeballs on the screen, your mind concentrated, and the environment in a shape that supports…
-
Refactoring and the Code Gremlin
Refactoring aims to change software’s static structure – the source code. It’s not often so much about the performance (run-time), but rather how a developer perceives the source code. You might even say, the ‘elegance’ or ‘beauty’ of the code. Refactoring itself can be a beneficial mental process, during which developer takes a second glance at the…
-
Responsive? React Native and Tackling platpourri
It was a moment of joy! Sometimes ideas flow, very suddenly, abruptly, and they seem just such perfect fit. Then comes the amazement; why didn’t I think this before? I’ve done mobile software development on three rather distinct stages of the ecosystem: very early (2000-2001), Single Page Apps, and now Current Age of Cross-platform Apps…
You must be logged in to post a comment.