b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Off Topic » Post 743601 | Search
This is a question Off Topic

Are you a QOTWer? Do you want to start a thread that isn't a direct answer to the current QOTW? Then this place, gentle poster, is your friend.

(, Sun 1 Apr 2001, 1:00)
Pages: Latest, 837, 836, 835, 834, 833, ... 1

« Go Back | See The Full Thread

Serious question.
How do you get on with spelling in your coding?
(, Wed 2 Jun 2010, 14:16, 1 reply, 16 years ago)
I find it better, personally, for example.
for($i = 0; $i < 10; $i++) { echo "The number is ".$i; }

I look at that and can see it'll go through a loop where $i = 0 while $i is less than 10 and incriment $i by 1 each time. When it does this, it'll print out the text "The number is " followed by the current number. Then $i is disgarded when the loop is finished.

To 'normal' people, I find, they can't get their head around that, or if they do, it's unnatural. To me, I read it as perfectly as someone would read english, it just makes sense. A lot of the time, you'll have to jump around, like inside that loop you might decide to something to a database, so my head would jump to what it's doing inside there and see that it's doing it 10 times.

Or another way of explaining it, most people see.

a, b, c, d, e.

But sometimes B would effect D, so I would read it a, b, d, c, e, which my dyslexic brain sees easierly.
(, Wed 2 Jun 2010, 14:38, Reply)

« Go Back | See The Full Thread

Pages: Latest, 837, 836, 835, 834, 833, ... 1