Simon's blog

Lees iets, laat je ideeën achter

Deze keer meent Apple het

Deze week is de iPhone 7 uitgekomen, en bij gevolg is iedereen als een gek beginnen vergelijkingen maken. Een van de opvallende dingen is dit jaar de Geekbench benchmarks.

Laten we eerlijk zijn, traditioneel koop je een iPhone niet om te stoefen met de specs. Je koopt een iPhone omdat je van de stijl of het logo houdt. Of omdat je van de integratie van software en hardware houdt die tot nu toe nog niemand zo goed heeft gedaan. Misschien hou je wel gewoon van het ecosysteem. Maar dit jaar is anders.

vrijdag 16 september 2016
Simon Meurs
Apple , iPhone , Impressions
0 reacties
Lees verder

Dropbox on Mac. Not kosher

Recently I came across something interesting. In the privacy settings of my Mac, I noticed that Dropbox was present in my accessibility. It was checked, so I had given it full system rights. I didn't remember this and I couldn't imaging why Dropbox would need these rights. So naturally, I unchecked it, and pressed the minus-sign to remove it from the list. I didn't think Dropbox needed the rights to control everything on my computer. I closed the system preferences app and didn't think of it again.

A few weeks later, I read an article where someone had noticed the same thing. He went even further. He could remove Dropbox, but it would always settle itself in the accessibility again. Sure enough, when I opened the system preferences, there it was. Dropbox had reinstated itself.

zaterdag 10 september 2016
Simon Meurs
Mac , OS X , Tech
0 reacties
Lees verder

Pokémon Go

What are Pokémon and why is everyone playing this game?

The world was introduced to Pokémon in 1996 when the first games came out. There were Pokémon Red and Pokémon Blue for the original Game Boy. The idea was that there are Pokémon all over the world and children of 10 get the chance to go out and explore. They have Pokéballs to capture the (some not so little) monsters and fit them in their pocket, hence PocketMonster or Pokémon. So a generation was introduced to these Pokémon. The popularity was so immense that spinoffs started to happen, like a manga tv-series, books, more games, more series, and so on.

donderdag 11 augustus 2016
Simon Meurs
Leven , Impressions , Game
0 reacties
Lees verder

Procedural - and Object Oriented Programming

Procedural Programming

Initially a lot of programming was procedural. It is easy and natural. The code starts 1 place, does things, then ends. The starting file can include as many other files as it wants, but the initial pointer will not leave the initial file. For websites with PHP, this would be the index.php file. If you import a file, the next ones will have access to everything that was defined in said first file. All functions and variables will be globally accessible from that point on.

Procedural comes naturally to beginning programmers because it doen't require a lot of understanding of principles, patterns, objects, … It just does what you tell it to do.

woensdag 11 mei 2016
Simon Meurs
Programming
0 reacties
Lees verder

MVC

Where Single Responsibility was a principle, MVC is a pattern. Principles are kind of a must, whereas patterns are more free. You can implement which one(s) you like, to fit you current needs. Not all patterns fit every program. But MVC is one that is widely implemented because of the massive boost in readability, reusability and maintainability it provides you with.

This pattern splits your code into 3 parts.

The Model

This is the part in which you will connect to you database. You will make all the information you want to show available so that later on, you can use it. This part typically (but not necessarily) is full of functions who return arrays, STDObjects, or objects of your own making.

The View

This is usually a sequence of HTML files, stitched together to make 1 page to show to the client. It will have to get the information you got together from the Model. Or at least it has to have access to the right functions made available in the Model. The last option is a possibility, but I wouldn't recommend it on accounting of the Single Responsibility Principle.

dinsdag 10 mei 2016
Simon Meurs
Programming
0 reacties
Lees verder