News for hackers. Stuff that matters.
Re:Ask HN: Is it bad to dislike using frameworks so much? by lysol on Thursday July 14, 2011 @09:39AM (#2762947)
I think you should write a micro-framework. I feel the same way about ORM. It's completely irrational on my part because I'm extremely comfortable writing absurd numbers of joins using crazy criteria for my day-to-day at work, and have some cognitive dissonance because here I am, about to let a library do all the heavy lifting for me.

The end result is in order for me to accept ORMs I had to know the pattern. To know the pattern, I had to write a simple ORM layer on my own. It wasn't pretty, it wasn't as good as SQLAlchemy, by far, but it gave me enough insight to appreciate them, and to know when to use them. By all means, keep using CGI, but leave it to the small projects.

And yes, you're too used to PHP. Branch out, it's more fun.

Re:Ask HN: Is it bad to dislike using frameworks so much? by robflynn on Friday July 15, 2011 @01:22AM (#2766367)
I will second the write your own micro-framework statement.

When I first began toying with frameworks, I felt much you, chromium. I understood the concept and the idea behind everything, but some of it felt like "magic." So, I sat down and wrote a basic clone of rails in PHP.

It lacked a lot of features but it had basic routing, models, views, controllers. I even wrote some code to generate migrations and applying/rolling back those migrations.

I never even finished that little faux framework because once I got into it and started mucking around, everything kind of clicked into place for me as far as demystifying the "magic" of everything.

Re:Ask HN: Is it bad to dislike using frameworks so much? by chromium on Thursday July 14, 2011 @10:20AM (#2763126)
"you're too used to PHP"

So I should write the micro-framework in Ruby? Any suggestions for starting out with that?

Re:Ask HN: Is it bad to dislike using frameworks so much? by lysol on Thursday July 14, 2011 @10:22AM (#2763136)
Not at all. It's just good sense to pick up other languages in general. Find one that has something interesting, play along with the official tutorial, writing the code as you go along.