Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bphogan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
481.
▲
by
bphogan
15y ago
Plus the plan has to be something nationally available if you're dealing with remote workers.
482.
▲
by
bphogan
15y ago
This is actually something PeepCode is doing with the "Play By Play" series. http://peepcode.com/products/play-by-play-zed-shaw
483.
▲
by
bphogan
15y ago
I've done some of that in my teaching - people get the string addition right away since that's how people write in JS and other languages they already know. I immediately show how string interpolation works (by showing how it automatically
484.
▲
by
bphogan
15y ago
On the hashes part, it's tricky when reading the method itself what the options are. For example, many of the Rails helper methods that take html_options ={} are only documented in one place. So it's cleaner from the side of invoking the me
485.
▲
by
bphogan
15y ago
It's all about style. Which is what makes it really interesting. In your implementation you used string interpolation, a different kind of shortcut. And in my example, I used + to make it more readable for the parent poster who said they we
486.
▲
by
bphogan
15y ago
Interestingly enough, some of the entries in this list are the conventions I tend to use for "short block level params." If you're not used to Ruby, here's an example of what he's referring to: To work with the keys and values of a hash (di
487.
▲
by
bphogan
15y ago
This is absolutely my thought, but I was not able to express it as well. :)
488.
▲
by
bphogan
15y ago
It takes more discipline to decide not to do something. In the case of Rails, it's a framework and the patterns of that framework are established. I know to look for models in the models directory, controllers in the controllers directory
489.
▲
by
bphogan
15y ago
It's nice that Steve and others want to make Ruby on Rails applications better and faster. But this post should have been the original blog post. You can't get frustrated by your audience "not getting it" if you use terrible examples or if
490.
▲
by
bphogan
15y ago
Exactly. Especially if it's a server-side language. I'm really hoping that we're coming to the end of the era where we use server-side languages to generate static HTML, and I hope we're closer to the end of the creation of new languages to
491.
▲
by
bphogan
15y ago
Agreed on one hand, but there is some great stuff on the JVM, and that is stuff you could expose people to eventually .
492.
▲
by
bphogan
15y ago
This doesn't surprise me in the least. The problem with Scala's adoption in my opinion is that everyone, Pollack included, writes about Scala being a "better Java." The Scala books out there, his book included, take that approach. assuming
493.
▲
by
bphogan
15y ago
Another author here - To answer your first question, no, this book is very front-end driven. We will have one server-side recipe that will use PHP. The rest of the recipes that use a backend use a "no setup required" server I wrote called Q
494.
▲
by
bphogan
15y ago
I bet it would. Learning Ruby on the side made me a much better PHP programmer in 2005 because Ruby taught me how to do OO programming. Learning a little Clojure has made me a much better Ruby programmer because I started understanding the
495.
▲
by
bphogan
15y ago
Your experiences with the martial arts don't coincide with mine at all. To this day I still practice my kata. Like with my code, I may never achieve perfection, but I will never be satisfied with my current level. I used to hate the kata,
496.
▲
by
bphogan
15y ago
I wholeheartedly applaud this. It makes the "student discount" less necessary too. I think this will help me get a few more people to show up, too.
497.
▲
by
bphogan
15y ago
This is probably going to cause a bit of a stir, but I read that article and saw the same arguments I used to see about "rich Flash applications" and how much better they were because they offered a more "delightful" user experience. Some u
498.
▲
by
bphogan
15y ago
I don't get the problems that people have with Github's pricing. I can have all the private repos I want by creating repositories on my computer. Git is decentralized. Putting it in a central location is centralized. :) But seriously, I can
499.
▲
by
bphogan
15y ago
I was just responding to the perceived lack of support for students.
500.
▲
by
bphogan
15y ago
http://github.com/edu has information about educational plans, including small free ones for students.
501.
▲
by
bphogan
15y ago
I like Sinatra (Ruby) for APIs. If the URL structure needs more complexity, Rails is better, but the downside is that you're getting a lot more than what you might need. If I were asked to do one in Python, I'd use Flask.
502.
▲
by
bphogan
15y ago
Why is that a win? I just don't see it. It sounds great for geeks like us, but this is the same fragmentation we find in the PC market, where brand x thing doesn't work with brand y thing. I bought a Samsung phone last year, and 4 months la
503.
▲
by
bphogan
15y ago
I'm interested in this as well. I'd love some technical details about how they're going to do the DRM stuff with just HTML5 audio. Does anyone have ideas?
504.
▲
by
bphogan
15y ago
Oh please ;) Don't hate on the ERb. It's fine for something like this. OK, I am only half-kidding. Have you seen RABL? I've been meaning to play with this. http://blog.dcxn.com/2011/06/22/rails-json-templates-through... Looks perfect.
505.
▲
by
bphogan
15y ago
Upvoted because I like your solution for pagination and for further information via an :href attribute. However, I don't see a real problem with the way Rails does things because it's "by default" and I think a dev ends up causing a lot of
506.
▲
by
bphogan
15y ago
It looks like a good start - I'll follow up on github. Thanks!
507.
▲
by
bphogan
15y ago
I'd just like to see a little better documentation on this in the Backbone docs. The documentation you currently have says I'll need to alter the backend, but it's not exactly clear what the changes to the backend would need to be. Do I nee
508.
▲
by
bphogan
15y ago
Then you're an expert. For about three months. Meanwhile while you're up to speed, things outside your organization are changing. If you're not paying attention, you end up with the proverbial "10 years of experience" comprised of 10 years
509.
▲
by
bphogan
15y ago
My gosh that's one of the best stories I've heard in a long time. The thing that worries me is that things like this are going to me rarer and rarer - there seems to be less interest in electronics, and less electronics that can be hack-fix
510.
▲
by
bphogan
15y ago
I posted something similar to this at the original blog... This is exactly how I feel as a developer. And I like that this is stated it so clearly - that Rails isn't for beginners anymore. The point about ActiveSupport is so well put becaus
More ›