jeudi 1 septembre 2016

The Stupid Things We Do

I have recently taken a whole different approach in my coding style, I used to do stupid things like this...

Old approach (stupid):

Code:
  'This is not real code, just the quickest example I could come-up with in Notepad++
Dim sizeX = 280 As Int
Dim sizeY = 480 As Int
Dim gridSize = 10 As Int

For x = 0 To (sizeX - 1)
For y = 0 To (sizeY - 1)
Dim pX = (x * gridSize) + (gridSize / 2) As Float 'Why, why, why??? LoL!!!
Dim pY = (y * gridSize) +...
The Stupid Things We Do

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bIUe2K
via IFTTT

Aucun commentaire:

Enregistrer un commentaire