-
How I saved my Nexus 7 from planned obsolescence
Back in 2014, I bough a Nexus 7 tablet for around 150 euros. It was very affordable, considering what you get for the money. Unlike common tablets in that year, this device had a good reading resolution, multiple point and precise touch capabilites, and it was fast! I remember playing impressive games for the time, though, i mostly used it for r...
-
Great commits
I’ve always found pleasure in creating CI fluidity when working with teams in software development. Though, I don’t always feel that members understand how their integrating code impacts teams work, the progress of the project and the quality of the product, so we had to find ways of communicating around the problem on our team meetings. One ...
-
Javascript: Divlji zapad standarda
TL;DR Razlog nekonzistentnosti pravila u javascript ekostitemu dolazi posledicom nekonzistentnosti između drugih jezika i operativnih okruženja dok javascript nije nikom bio primaran jezik. javascript pravila pisanja su opinionated za organizacije, ali unopinionated za ceo ekosistem. Jedan Typescript primer Skorije sam imao promenu p...
-
JSON comments
JSON comments This is not allowed: { //some variable "foo": "bar":" } But this is allowed: { "//": "some variable", "foo": "bar" } What about multiple lines? This is not allowed: { "//": "some variable", "foo": "bar", "//": "some other variable", "name": "Peter" } But how about this: { "// 1": "some va...
-
P5 mouse controls
In this post, I am assuming the use of p5 in instance mode. Panning In p5, there are couple of ways to use mouse events for panning: mousePressed/mouseReleased pair and mouseDragged. I find that using mouseDragged is easier there are cases that the former is more useful as addition, especialy when we want to save the activation or completion o...
-
React and p5
p5 global (default) and instance mode p5 is a javascript sketching library based on processing, check it out here. It is unfortunate that when you include p5 in your project (via cdn resource), it will create bunch of globals. There is a reason globals shall not be used when creating a library, we do not want name clashing (p5 has a globals li...
-
Vođenje Dnevnika
Pisanje je najbolji način za sređivanje misli. Shodno tome, vođenje dnevnika predstavlja možda najbolji način da se organizuje i planira privatni život. Neki ljudi svesno ili nesvesno koriste pisanje kao pomoćno sredstvo za vredan dan. TODO liste, pisanje “da se ne bi zaboravilo”, upisivanje događaja u google kalendar itd. Vođenje dnevnika se ...
-
React Context API: a portal to component data and behaviour
Before React 16.8, there were things that really bothered me in the way React Components were sharing data. In most basic use, when a child needs data from an ancestor (somewhere up the parent hierarchy), all the components between those two need to bear the dead weight of transporting the params. That’s a lot of params management, particular...
-
Building a minesweeper clone
You can find the code here: https://github.com/gorankami/minesweeper About 4 or 5 years ago, I was applying for a front end job based in San Francisco. I received a task for technical assessment - build a minesweeper clone! I was happy for the task because it was the most fun I had doing something for someone else and not getting paid for it....