Yeah don't think so. I don't waste my time learning a new framework. I don't waste my time with MVC (which is worthless). I add the library's I need to get shit done and write it. If by writing more code means I have absolutly more control over my code, then I'll take that any day of the year.
Frameworks are made for asshats that can't code, it's pretty simple.
aмillionaírе;850875 said:I rewrite the same code from scratch over and over again. This is a bad habit, and I definitely wouldn't argue that. The nature of programming was never meant to be "frameworked".
So what exactly IS a framework to you, then? That's like if I brewed my own beer and told people "No, my own beer is NOT a beer, it's my own home brewed drink."
I agree.
I don't use any frameworks but build my own functions and search back on them if I need to recreate a similar function or solution to a problem. I agree with uplinked that you should keep code indented and structured as it makes it WAY easier to locate anything (especially when you aren't coding in a framework which is already semi-structured).. hell I even comment simple codes I throw up because I may use it later but I guess I might just be ADD like that
I'd love to sit down with some OO programmers and talk about scrapers, and then destroy them code wise. I'd get a hard on.
Like I've said above, frameworks dictate the structure you code in. This meaning exactly how you code. I shouldn't have to explain how MVC makes you micro-manage your code, and this is why I say it's worthless to a traditional programmer.
Those for example, learn MVC for Ruby on Rails, will not be able to adapt to write code in Assembly c/c++.
I'd love to sit down with some OO programmers and talk about scrapers, and then destroy them code wise. I'd get a hard on.
this^I think this is the point where your arguments go from "opinionated but still somewhat interesting if only for the comedic value" to "bearded man on the street yelling and waving a bible".
It's important to realize that using X Framework is 99.9% of the time pointless/bad practice/stupid.I think this is the point where your arguments go from "opinionated but still somewhat interesting if only for the comedic value" to "bearded man on the street yelling and waving a bible".
No one is arguing for the use of frameworks and MVC (two separate concepts, BTW) for every job. Anyone who did that would be a bad programmer, and an idiot.
The hard part about programming is solving the problem. The language doesn't matter.
Design patterns came out as a way to abstract some common problem solving techniques. MVC was one of them. MVC is quite clever in that it separates various responsibilities and promotes code reuse. It's great for web applications, not so great if you're writing on a pic16f628. But part of being a good programmer is knowing what is appropriate where, and being able to adapt.
Web frameworks are nothing more than a set of libraries. You don't go calling the GNOME team a bunch of pussies because "real programmers write using X11 primitives". I don't know about you, but at 33 I've spent enough time at a keyboard that I don't have to solve the same problem over and over each time when someone else has done the work for me. I get paid to solve business problems and generate revenue, not write hash algorithms and url routing code. And, quite frankly, I don't want to be stuck maintaining code I wrote a long time ago, nor do I want to piss off whoever maintains this code when I leave. Frameworks make the code predictable and easy to share.
Even within an MVC framework you don't have to follow the design pattern. CI doesn't use models by default. You can happily put your business logic in the controller or the view if you want in Rails. No one will stop you.
Rails is opinionated -- yes. If you do things the "rails way" it's incredibly easy and fast to get something up and running. It's fine to go outside of that though. The rails team are not seers, they can't forsee every possibility. All they do is make easy stuff easy.
Who gives a flying fuck at a rolling doughnut? You don't get points for writing an ultra fast scraper, and no one but you is going to jerk off over how good your code is. The goal is to solve a problem. If you write a scraper that's twice as fast as mine that's only worth the 8.5 cents an hour I need to run a second instance on EC2.
Sean
Challenge accepted. No need to see proof of hardon tho Got a particular scraper in mind? What are the metrics for success?
Blah blah blah, jerk me off text.
Who gives a flying fuck at a rolling doughnut? You don't get points for writing an ultra fast scraper, and no one but you is going to jerk off over how good your code is. The goal is to solve a problem. If you write a scraper that's twice as fast as mine that's only worth the 8.5 cents an hour I need to run a second instance on EC2.
Sean
Speed in my opinion is everything. You either write the best scraper you can in your chosen language or you don't.
...
People try and argue that what I write may only be fractions of a second faster than what they write, but when it gets down to your server getting pounded every fraction counts IMHO.
1,2,3 GO!rage9, I don't see why we need to write in the same language. I don't know ruby, and php = lol. You use what you want, I use what I want, the best code wins. I'm thinking something along the lines of yellowpages, which has lots of data to scrape. Maybe reads a text file, that has a category per line to scrape, goes through all pages of that category, dump results to a CSV. I'd say important things are the ability to recover from a page not loading, proxy support. I can scale to a couple hundred threads, so good luck beating me on speed with php
Latency will most likely be the speed limitation if you're single threaded.
fuck all this noise..
i write PHP and I make monies
/thread