3
votes
1answer
92 views

The eternal dilemma: bar.foo() or foo(bar)?

I was using foo(bar) as it's adopted for functional programming. console.log( join( map(function(row){ return row.join(" "); }, tablify( ...
6
votes
4answers
228 views

Which is considered better: push(array,value) or push(value,array)?

This is valid for many other functions. get(array,key) or get(key,array) ? find(array,value) or find(value,array) ? Etc...
6
votes
2answers
139 views

Naive Bayes classifier

I just started learning Haskell, and I must say it is unlike anything else. As my first not-entirely-trivial piece of code I tried to write a simple Bayes Classifier. It is in two parts, a classifier ...
1
vote
1answer
218 views

How can I turn this java android code into more “professional” code? [closed]

I'm new to developing android apps as well as the java language in general and I was wandering if someone would be willing to provide some constructive criticism on this ...
6
votes
6answers
407 views

Is this good approach to use debug functions for implementing features?

Just thinking if using code like this <?php abstract class helper { private static $_cycles = array(); public static function isOdd($v) { return (0 == ($v % 2)) ? false: ...
9
votes
1answer
366 views

Converting simple markup to HTML

This is going to be rather long and generic, so apologies in advance. I've been reading a lot about Haskell lately, but I've never really programmed anything with it beyond simple experiments in ...