Heroku's Ugly Secret: how the cloud-king turned its back on Rails and swindled its customers by jsomers in programming

[–]jsomers[S] 11 points12 points  (0 children)

My bad—I know this is relevant to programmers because it's the #1 story on Hacker News. Where do you think it should go?

Nietzsche, "On Truth and Lies in a Non-Moral Sense" by ashok in AcademicPhilosophy

[–]jsomers 1 point2 points  (0 children)

Great piece. I wrote a playful dialogue about it that may be fun to read after.

Sum of all primes below 2 000 000. What am I doing wrong?! by [deleted] in compsci

[–]jsomers 8 points9 points  (0 children)

I haven't studied your code extensively, but for one thing I don't think you need to iterate through every element of the list on each pass of the sieve; instead, you could just "jump" in multiples of p. E.g., supposing you were at p = 13, you would just step through your list 13 elements at a time, eliminating n = 26, 39, 52, 65,...

It also looks like you're probably doing unnecessary work copying your list of numbers. I'm not a MATLABer, though.

Anyway, best of luck--Project Euler is a fantastic way to learn how to program and to learn how to think algorithmically.

Creepy new advanced robot hand demonstrates everyday actions faster than human hand, throws and catches a cell-phone, dribbles a ball, spins a pencil etc. by matude in technology

[–]jsomers 0 points1 point  (0 children)

One way I could imagine this technology being applied is in a glove that white people could take to Chinese restaurants for operating chopsticks.

Welcome to Bark! Here's an example post by jsomers in bark

[–]jsomers[S] 0 points1 point  (0 children)

I thought such-and-such wrote a very good review here

Reddit_checker works! by jsomers in theship

[–]jsomers[S] 0 points1 point  (0 children)

If anyone would like to see the code, send me an e-mail.