Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
judofyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
631.
▲
by
judofyr
15y ago
I agree; opened an issue: https://github.com/judofyr/perloku/issues/2 Carton; not sure. Maybe.
632.
▲
by
judofyr
15y ago
> _why's unholy showed it's trivial to compile Ruby into Python (in many cases). It shouldn't be too hard (famous last words) to make a Ruby VM with PyPy. Basic structures like if, else, while etc. is easy. The hard part is the object m
633.
▲
by
judofyr
15y ago
The last sentence ("When you eat your own dog food and some poison gets in, you die and can't fix it.") made me wonder…
634.
▲
by
judofyr
15y ago
See also: Heist, a feature-rich implementation of Scheme in Ruby: https://github.com/jcoglan/heist
635.
▲
by
judofyr
15y ago
It took the universe 13.7 billion years and an ever-expanding memory space; I'm not entirely sure if this is the right approach…
636.
▲
by
judofyr
15y ago
Looks interesting, but isn't Padrino already trying to be the "Sintra with more"? http://www.padrinorb.com/ What's wrong with Padrino? Why did you make this? Why is this better?
637.
▲
by
judofyr
15y ago
> If I'm teaching an introductory class on Chemistry, you'd better believe that when I reach the section on cyanide I'm going to tell students: "bad, bad, bad; never use this chemical"! I agree. So would I. However, what Zed is doing i
638.
▲
by
judofyr
15y ago
> You can't prove logically that the while loop inside will end given any random input . C is all about layers, and at the bottom you just assume that "all input given to this function is safe". If you're passing random input (without
639.
▲
by
judofyr
15y ago
And she uses a program called "sshnuke" which outputs "[a]ttempting to exploit SSHv1 CRC32." Although sshnuke doesn't exist, the CRC32 exploit is real.
640.
▲
by
judofyr
15y ago
> This isn't really a question of probabilities: … Didn't you just solve this question using basic probability theory?
641.
▲
by
judofyr
15y ago
> To make up some more, I pin applications to one of six desktops: (1) terminal and text-editing; (2) real-time communication; (3) browsing; (4) organization and planning; (5) reading; and (6) media and games. Each desktop captures one
642.
▲
by
judofyr
15y ago
See also: http://en.wikipedia.org/wiki/Church_encoding
643.
▲
by
judofyr
15y ago
> It is extremely useful however if you want multiple channels of communication. Say, you want to post news for Ruby developers and you do that daily ... so why on earth would you want to spam your friends that aren't even developers? O
644.
▲
by
judofyr
15y ago
Why is it strange? "Wally" (pronounced in "correct" Norwegian) sounds really weird.
645.
▲
by
judofyr
15y ago
Another one: class variables! # Define two class variables in two different classes: class MyClass @@base = 1 end class OtherClass @@base = 2 end # Define it in the superclass too: class O
646.
▲
by
judofyr
15y ago
Someone else is probably going to mention flip-flops, so let me show you "defined?": a = 1 defined?(a) # => "local-variable" defined?(p) # => "method" defined?(nothing) # => nil defined? is a syntax-construc
647.
▲
by
judofyr
15y ago
I've point briefly looked at the Dropbox API, but couldn't figure it out; how do you detect when a file has changed?
648.
▲
by
judofyr
15y ago
Sounds more like "Don't Outsource to Criminals" to me.
649.
▲
by
judofyr
15y ago
This isn't really about prototypal inheritance. If you wrote methods like this in Ruby, you would have the same issue: Klass.method := lambda { p self } Also, if JavaScript looked like this, you wouldn't need the fat arrow: /
650.
▲
by
judofyr
15y ago
And it seems that the 30% creates tools so the 70% can continue writing sub-optimal code that works well.
651.
▲
by
judofyr
15y ago
> You know what's 1990-vintage? The set of HTML controls you have at your disposal, right now, even with HTML5, to send to the client to progressively enhance. At some point you have to draw the line. Require JavaScript and offer an API
652.
▲
by
judofyr
15y ago
> There is no longer the designer/programmer separation, now with CSS designers can do everything if your HTML layout makes a bit of sense. I'm sorry, but this is simply not true. You can't just magically move elements around in CSS wit
653.
▲
by
judofyr
15y ago
It's interesting to see HTML+CSS3 slowly re-implementing SVG in an awkward way.
654.
▲
by
judofyr
15y ago
Are you kidding me? They found a XSS hole?! How can you create anything based on HTML and not think about XSS?
655.
▲
by
judofyr
15y ago
> I think it's simple enough to do this with ids and classes, though, and even when it does break, the time it takes to fix it is going to have a pretty trivial impact on your overall project because the problem is solvable. The real is
656.
▲
by
judofyr
15y ago
I've talked about "template animation" (or "mockup-driven development" as I've called it) before, but focused mostly on how to achieve static files that can easily be opened in the browser (without any server components) and still be modula
657.
▲
by
judofyr
15y ago
Indeed. Bindings are just triggers that makes sure the data model is in sync with the view. It's just for convenience. There is also a model binding plugin to Backbone: https://github.com/derickbailey/backbone.modelbinding
658.
▲
by
judofyr
15y ago
Yes, good UI design cannot fix a broken solution. But how can this article talk about a "broken solution" when it doesn't even mention the problem ?! If you don't see the problem, the solution isn't "broken"; it's just solving a problem yo
659.
▲
by
judofyr
15y ago
The difference between multimethods and pattern matching is that pattern matching is usually "closed" (you can't add new clauses somewhere else), while multimethods allow you to extend the method with additional functionality.
660.
▲
by
judofyr
15y ago
I doubt that's way this happened. More likely, the person who implemented the "inappropriate photo"-feature wasn't fully aware of that the "Report"-functionally was enabled for everyone and not just your friends. However, someone had to imp
More ›