1,376 reputation
616
bio website horuskol.net
location Adelaide, Australia
age 35
visits member for 3 years, 5 months
seen 22 hours ago

Lead Web/Application Developer - PHP (Drupal and Zend) and Python.

Amateur photographer and sometime explorer.


Jun
11
comment Fixing a spelling mistake in a method name
*misspelt... or maybe a different spelling?
Apr
23
comment Best way to indicate more results available
out of interest - how would the caller then specify they want "more"? how would the service differentiate between the initial and "more" calls?
Dec
9
comment Why are <section>, <header> and <footer> tags not used much when I see sites that are in HTML 5?
Examples? Many sites just use templates, and they may not have been updated with the new semantic structure
Oct
23
comment Subclassing to avoid line length
@SuperUser - nope, still can't really see the problem from your description - do you have an actual code example? In any event, it does sound like you're worrying too much about the wrong thing.
Oct
23
comment Subclassing to avoid line length
sorry if i'm being dense - but how does subclassing reduce the number of characters per line? I can see that it would reduce the number of lines per class, but that's something else
Aug
21
comment How do I go about debugging a PHP error?
you might want to set the error_reporting value in htaccess/apache to 2147483647 - it's a bitmask, and the exact flags change between different versions of PHP
Jul
24
comment Why is Moore's Law seen as an absolute truth?
The same reason that the Theory of Evolution (or Theory of Gravity) isn't "just a theory" - English vernacular has different meaning to words used in formal scientific English: en.wikipedia.org/wiki/Scientific_law
Jul
24
comment How can I work on multiple programming languages at same time
It's weird - I had this kind of problem with French/Spanish back in high school. Now, I'm programming various things in PHP, JavaScript, Perl, Python, and I just don't have the same issues - the only reason I can offer is I'm more thoughtful about what I'm doing, and I care more about it.
Jul
17
comment Is PHP actually a web framework?
@RobertHarvey Wikipedia article on software frameworks
Jul
16
comment Is PHP actually a web framework?
I didn't say it was a framework - just that it has elements more traditionally associated with frameworks. IoC is another, important, element of frameworks, but I wouldn't say it is the one defining feature.
Jul
11
comment What's the difference between “Add to home screen” safari HTML5 webapp vs HTML5 webapp wrapped in UIWebView?
appcache does work - but it has limits, and is not as simple as "adding to home screen"
Jun
30
comment how to get from 1 byte to 2 bytes
2 bytes is valid - you have to remember that you're talking about "width" here. 1 byte = 1 bank of 8 bits (2^8), 2 bytes = 2 banks (2^(8*2)), 3 bytes = 3 banks (2^(8*3)), etc.
Jun
13
comment Which design patterns would I use for this algorithm?
+1 If you don't need to be able to place input or extract output at any step but the first and last, or exchange one of those steps, why complicate things. SRP holds, as your goal is to generate a random formulated string.
Jun
12
comment articles in variable names and hard-coding strings
hard coded strings makes for very difficult internationalisation - but if this isn't even a long term goal (ie, you know that your market will always be limited to one language) then it isn't much of a problem.
Jun
12
comment articles in variable names and hard-coding strings
why not ask two separate questions instead of bundling two for one?
Jun
5
comment Does learning to play an instrument improve programming ability?
let's reverse this - how many professional musicians become hobby programmers?
May
25
comment Why are there so many numeric types (bit, int, float, double, long)?
It depends on the system - those controllers only had a few KB of memory, and most of that was given over to the program.
May
25
comment Why are there so many numeric types (bit, int, float, double, long)?
that's true in a lot of architectures - but bits were directly addressable in really old systems, and even some more recent embedded systems (some controllers I programmed only 10 years ago worked with bits - those only had about 64 addressable locations of specific widths). Nowadays, I guess compilers work it out and put them into byte-arrays.
Apr
24
comment Should I store UK postcode data in my database
UK postcodes typically identify a group of about 10 or so addresses (some special postcodes are used by only one) - in fact, you can address a letter with only the house number and postcode and it will be delivered
Feb
11
comment Write tests for unit tests in TDD?
Well, it kind of is a framework - you are putting in helper methods and extending the framework to your needs. If you don't confirm those helper methods independently, then you can't be confident in the tests that use them.