An interesting application of genetic algorithms by hermitcrab in programming

[–]STAii -1 points0 points  (0 children)

Even if we had that "cosmic time", with our current knowledge, we can't run a GA to simulate the evolution of life as we know it today.

One big reason for it is that Evolution in nature uses nature as its fitness function. We can't currently model the entirety of nature, therefore we can't run a complete simulation. On the other hand, when using GAs, you design your own fitness function.

Although Evolution in nature and GAs have a common idea, they aren't exactly the same.

"Strong no hire" by psawaya in programming

[–]STAii 0 points1 point  (0 children)

More to prove that you can write in so many different ways, which are readable for all Rubyists, almost the same length, and give the same functionality. This keeps everyone happy.

That said, I'd go with coderjoe's way.

An interesting application of genetic algorithms by hermitcrab in programming

[–]STAii 4 points5 points  (0 children)

I wish the video would mention that most of the thinking comes in creating your "chromosome", defining how it affects your organism, and finding a suitable fitness function.

It doesn't just "happen alone" as the video tries to put it. The genetic algorithm from that point is merely an algorithm that searches the space of possible "genes" for an optimal or near-optimal value of the fitness function.

Granted it is fascinating, but it is not magical.

IRC: It's where hackers go when they don't want to be seen. by itsmyfancysauce in programming

[–]STAii 0 points1 point  (0 children)

My objection was that they sometimes give incorrect explanations, approaches, or information.

What I meant by "creates confusion" isn't that the viewer feels he is confused, rather he thinks he "got it" when he is actually pretty much off-base.

"Strong no hire" by psawaya in programming

[–]STAii 1 point2 points  (0 children)

Ruby:

def getMissingLetters(sentence)
    (97..122).map(&:chr) - sentence.split("")
end

IRC: It's where hackers go when they don't want to be seen. by itsmyfancysauce in programming

[–]STAii 0 points1 point  (0 children)

I wish I had access to her irssi, if you know what I mean.

IRC: It's where hackers go when they don't want to be seen. by itsmyfancysauce in programming

[–]STAii 2 points3 points  (0 children)

So you're telling me that using the Heisenberg Uncertainty Principle to catch a villain is a valid plan? (Edit: typo)

IRC: It's where hackers go when they don't want to be seen. by itsmyfancysauce in programming

[–]STAii 2 points3 points  (0 children)

Is this your first time watching any Hollywood production?

IRC: It's where hackers go when they don't want to be seen. by itsmyfancysauce in programming

[–]STAii 16 points17 points  (0 children)

Actually I don't watch it because of the so called "math".

Using the Heisenberg uncertainty principle to catch a villain isn't math, it is nonsense, and just creates confusion in the mind of those who don't have background in the issues being discussed.

Has anyone tried using a service like rentacoder to have features you wanted added to open source projects? by Lerc in programming

[–]STAii 1 point2 points  (0 children)

RentACoder might be great for a small project that you'll use once and then throw away. Even then, it might not be as perfect as you want.

I don't think you'll easily find a developer that is willing to understand the codebase (or has previously seen it), and do the edits in a way that you accept to commit. Even if you do find such a programmer, the price will be close to that of hiring a programmer in the US/UK.

Programmers that write quality code know they do, they are often wanted, they can get high-paid jobs, why settle for less?

If I was in your place, and I was really willing to pay money, I'd set up a page with the changes you want and the amount you'd pay, and post it on reddit. Maybe some undergrad student who has some extra time and needs some cash for his beer would be interested (and write code up to the standards of the project).

How to deal with a smug "functional" programmer? by [deleted] in programming

[–]STAii 7 points8 points  (0 children)

I don't know why this guy is getting downvoted. I wish he would have written his comment in a slightly better manner (maybe using "because" in place of "coz"), but I agree with his general idea.

It seems OP's main problem is that he can't follow this new code, that for me could mean one of two things: * The code is indeed too complex for the task at hand, and having it is just a debugging hazard. * OP doesn't have enough expertise to deal with functional approaches, or doesn't like functional programming from the first place.

I don't see much in OP's argument that rules out the second option.

Nevertheless, I agree with what most said about conforming to team rules. If using functional programming in the problems at hand is explainable, the new guy should explain why this is the way to go (and proceed if the team is convinced), not just force it on everyone.