by edw519 · 17y ago · 0 comments
The purpose of "assisters" like frameworks and higher level languages is NOT to make good progammers more efficient.
It's to make mediocre programmers more likely to produce something of value and to make poor programmers capable of producing anything at all.
And if the bell curve tells us anything at all, it's that these "tools" target 90% of all programmers.
But think about it, my fellow top 10% (lol), do you really need all this stuff? If you're working alone or on a small team with a clear objective, haven't you always had everything you needed with low level tools? If you need any higher level tools or reuseable components, haven't you already been building these all along?
Sure it's fun to play with new things and learn from others, but when it comes time to really produce, don't we all know how to (and need to) roll with what we know?
The need for frameworks and high level languages only becomes apparent when we grow so large that we can't find enough senior hackers. Only when you dip down into the mediocre masses do you need this help.
True, but they can invent the wheel because there isn't one, and they can do so in a way that others will find it useful as well. It is a different point than edw519 is making, but what he said made me think about where I disagreed and why. The purpose of code libraries, is to make everyone more efficient, by solving a problem so others don't have to. If that means a programmer can produce twice as much functionality within a given time frame, or is able to produce any functionality at all where he couldn't otherwise, there is still a net benefit for everyone. This should not be scoffed at; it is the reason why we are able to produce software as featureful and useful as we do. Imagine each of the XFCE, KDE, and GNOME teams having to rewrite X.org all over again, and how much less each of those desktops would have to offer right now if they did. I'm willing to trade useful functionality sooner for less machismo.
But libraries don't always achieve this, and the degree to which it doesn't determines which people will be motivated to create a replacement. If a framework solves a common problem, but does so in a painful, unwieldy, or hard to understand way, some hacker out there will probably think it a better, more efficient choice to just write and use a new solution. It might be a fork of or series of patches to the original framework, or it may be an entirely new codebase -- which of these routes to follow is a judgement call. Nevertheless, it requires what I think is an important distinction, which is the ability to not just understand what problem the framework solves, but how it solves that problem. And not understanding it just in following what each line of code does, but why what steps it takes work. At that point, you end up leveraging a framework far more that relying on it. If something tomorrow were to happen that required you leave it behind, it would be a pain in the ass, but not a brick wall.
There is also the question, more important that the above in my mind, of understanding if you actually have the problem the framework solves, or if you are attempting to shoe-horn. But I worry that might be a bit off-topic of this particular thread, and would probably warrant another 3-4 paragraphs of musing.
And what is wrong with that? Some of us aren't the programming gods you are. If it helps people why get so high and mighty about it? I know with your superior intellect us philistines might seem dumb to you, but maybe you should stop writing about how smart you are when you can't even spell "programmers" right.
This was partially in jest (notice the lol), and I realize this is sometimes hard to convey in writing. Sorry.
But there's also a lot of truth in it, too.
No one is born a mediocre programmer. It's a choice.
Notice I didn't say a "junior" programmer. There's a difference. A junior programmer has less experience, but has a good attitude, is willing to learn, and practice his or her craft to get better. A mediocre programmer is just lazy and thinks he or she knows better.
This was directed at the thousands of lazy thoughtless programmers I've had to clean up after over the years. You know the ones. They refuse to follow accepted standards. They name their variables whatever they feel like at the moment. Good luck figuring out what "a" "aa" or "aaa" mean. Or locating them in a text editor. They use single entry, multiple exit. Good luck changing one line of code in the middle of that. They rewrite the same functions over and over, so I have to change all 14 versions. And spend the next 2 weeks regression testing.
I only wish these people were required to use a framework that forced them to conform to anything that would have made my life a little easier.
If "high and mighty" means "wants to get work done" or "cares about others", then thank you. Some of us choose to write clear, effective, easy to maintain code without a framework. If you ever have to maintain my code, perhaps you'll understand.
Yes. I am not a great programmer. I only started caring about it a couple of years ago and since I don't have a real education in it I am very behind in many areas. I am trying to get better, but it's not easy.
"No one is born a mediocre programmer. It's a choice."
I don't know if I agree with this. Some people are born with incredible talent in various areas. Some people are just born musicians, others athletes, others programmers. There is no substitute for hard work, but some people will never be able to grasp what others can do. No matter how long you play guitar, you're not going to be Jimi Hendrix.
I understand your sentiment, I really do. But I would be careful of calling misinformed people lazy. I would bet good money that there are "standards" I am breaking with my code that I don't even know exist. If the books I read or the sites I visit haven't told me about them, I wouldn't call myself lazy.
In the end, HN is a community of amazingly talented people who are, to me, beyond brilliant. I think it's easy to lose sight of the "real world" some times when there are so many smart people in one room. Just have a little bit more slack for people who are trying and not as good as you. I think you will find it explains a lot.
"Some of us choose to write clear, effective, easy to maintain code without a framework. If you ever have to maintain my code, perhaps you'll understand."
Do you "choose" to do that, or are you benefiting from the years of education and experience you have? It's not like I can wake up tomorrow and choose to be an expert programmer. I can only try to keep learning(which is why I hang around here). I completely understand your frustrations with work, it can be a pain in the ass to deal with people who make your work harder through their incompetence, but I don't think it's as deliberate as you are suggesting it is.
A nice thing about the programming world is that it's a sort of natural democracy. No one really knows how good they are.
You've just put yourself ahead of 95% of the millenials here by saying that. The only way to become great at ANYTHING is to admit that you aren't, and work on improving yourself.
Being junior isn't a bad thing. Everyone starts at the beginning, even the prodigies. The bad ones are juniors that attempt to skip the learning process by claiming to be great, not the ones who do like you are and put in the effort to learn.
The difference between you and the typical millenial, at least the ones that I've had the misfortune of working with over the years, is that they think they're good, and don't listen to the folks around them who've actually DONE the work before.
"I don't know if I agree with this. Some people are born with incredible talent in various areas."
The only talent humans are born with is the ability to construct their own future.
Those who lack talent and experience often believe that success is predicated on luck. They see spectacular photographs taken in times of perfect light, and say, "Wow, you were so lucky to get such gorgeous light right when you were there with your camera!"
The smart ones eventually come to realize that you make your own luck.
I think if you hang out with "programmers" long enough, you'll learn that the worst ones spend the majority of their time complaining about the shortcomings of others' "programming" techniques or methodologies. In reality, there is no de facto standard modus operandi for the nirvana of any code, and if you want to learn, it's best to just keep an open mind.
Who isn't? Don't sell yourself short.
No matter how long you play guitar, you're not going to be Jimi Hendrix.
You don't have to code like Jimi Hendrix to be a great programmer. (Oddly, I suspect that if I had to maintain his code, I'd probably be going nuts.) You just have to get your job done, work well with others, and leave something maintainable behind. I have a feeling you're already there. I also have a feeling that everyone reading this has done something cool that neither one of us has ever even thought of. In our field, not knowing something isn't a problem, it's an opportunity.
I understand your sentiment, I really do. But I would be careful of calling misinformed people lazy. I would bet good money that there are "standards" I am breaking with my code that I don't even know exist. If the books I read or the sites I visit haven't told me about them, I wouldn't call myself lazy.
I agree completely. I'd give you an extra up vote for that response if I could.
...are you benefiting from the years of education and experience you have?
Of course. We all are. Not benefiting from any education or experience you have oughta be a crime.
It's not like I can wake up tomorrow and choose to be an expert programmer.
Right. Give it a week or two. If you code as well as you comment here, you're probably way better than you give yourself credit for.
In the back of my mind, I thought there was a chance my remarks would be controversial when I first entered them. Sometimes it's fun to push the envelope here. (Remember, I'm in the middle of Day 4 of regression testing someone else's crap.) You proved me right.
As far as OP is concerned, I still think of frameworks and 4th generation languages as "crutches" for a lot of us. So they serve their purpose. But at a cost many others have talked about here.
Thanks for the great discussion, chez17. I'll make a point to look for you in future posts.
So I guess I'm just an ambitious junior programmer? Which is to say, I want to get better, but I also want to make my project production-ready as quickly as possible, so I use a frame and fill it out.
So I think it's a mistake to say that frameworks are only useful for making bad workers produce work. Better to say that there's a time and place for everything, and that while frameworks are overused, they're useful for certain people doing certain tasks.
ex. for web apps it prevents people from putting everything on one page (DB calls, logic, HTML, ...)
It is the slow scream of death march.
I suspect that your large project was built by "Java Engineers" who tried to stuff way too much into the ORM layer. That's an abuse of the tool, not an indictment of the tool itself.
If the details of passing data over HTTP and interacting with a database aren't a critical part of my project, I'm not going to do it by hand. I'll find some existing library or framework to do it for me. It's not that I can't produce something without help. It's that I have a problem I want to solve, and it isn't how to communicate over HTTP or store and fetch my data efficiently.
If it makes sense to hack up a project in assembler, do it. It may give you a massive advantage.
My comment illustrates the fact that criticizing those two things in particular is beyond silly. Essentially, I'm saying: Where is the limit? Unless you code everything, from scratch, every time, in assembler... You're using a high level language or a framework.
And you should be... The main point of them is to save time. They don't solve all problems obviously, but they solve the kinds of problems that you don't want to solve over and over and over.
Why build your own framework when there's one already there? Already well-used, well-tested, well-extended?
Sure it may be easy enough to do, but is it really worth it?
I, for one, would much prefer to be spending my coding time writing application logic than Yet Another Validation Library.
Suppose someone is familiar with Java Servlets and JSP, basic JDBC and SQL, and the tomcat container (with connection pooling). If I have a simple database driven application, I can choose to hand code some of my application logic, or use a framework.
So I'm choosing between, say:
No framework: container managed security, hand coding my ORM layer, writing my own server side form validation, writing my own MVC (or just not bothering, if it is just a few pages).
Framework: Spring Security, Struts for form building and validation, Spring for the MVC tier, JPA and Hibernate for ORM.
These are slightly extreme - you don't have to use all those tools, of course.
But let's say we do get something out of the framework. The code really is easier to maintain and understand, provided someone has read a 300 page book on spring, another 300 page book on hibernate, and a 150 subsection of a book on Struts, along with doing all the exercises.
Even if the framework based code is better, that's not enough to justify the complexity. I need to justify taking an application out of the realm of someone who understands the basic servlet spec and putting it into the realm of only those who have read and digested an additional 600+ pages of Framework complexity.
Thing is, I like frameworks. You can read and digest 100 pages about Rails and really get going. So the bar for justifying the "added complexity" of a framework in the Ruby world is much lower than it is in the Java world. I don't use Python, but I'd imagine it's a similar situation - it's much easier to justify Django than the Java framework stack.
Good frameworks are the same way. I've already extended the hell out of Kohana to make it more useful to me. This is work I would have had to have done if I weren't using it, sure, but all the basic stuff is there all the same.
Why learn woodworking when you can buy furniture at Walmart? Some people like craftsmanship and others like frozen dinners.
For many developers who toil in the same language all the time, or who have spent many hours in whatever language they're currently in, that's the case.
For me, I avoid Rails because it makes me feel like a failure. ActiveRecord, for one reason or another, hates me. I like Rails, and I like the Framework concept (however limiting it might be) -- because I feel that it gets you started more quickly. At the end of any significant project, I feel like you will have likely massaged enough elements of the framework to make it work for you that it's hardly recognizable, but it still got you something to show people that much faster.
That said, ActiveRecord is the showstopper for me in Rails. It seems like I've either never properly wrapped my head around it, or there are fairly low limits to what you can do, or I'm doing everything wrong. What that's always meant for me is that instead of using ActiveRecord to its fullest, I'm building SQL queries manually. And if I'm deviating from the framework's toolset, why am I using this framework in the first place.
This is NOT a knock on Rails, I'm probably just doing it wrong. Rails and I can still be friends... just not in that way.
I've always liked the 'middle ground' that Zend offers, in that it abstracts away the connection and handle, and gives me a convenient place to start building the model code. It's not 100%, but it doesn't make me feel guilty in the morning either.
I find it's just way, way easier to get up to speed with a framework as a base, and if your framework is any good, then it should be easy to shove aside later when you need to special-case things for performance or whatever.
You make this sound as if you are the great programmer who does not use frameworks but instead reinvents the wheel every time.
Are you really sure you do not use frameworks or libraries in your own work?