News for hackers. Stuff that matters.
Re:The Silent Majority of Experts by 16s on Saturday July 14, 2012 @08:25AM (#4243982)
I liked this sentence. It's so very true.

"Just because looking down your nose at C++ or Perl is the popular opinion doesn't mean that those languages aren't being used by very smart folks to build amazing, finely crafted software."

Re:The Silent Majority of Experts by EdiX on Saturday July 14, 2012 @11:10AM (#4244358)
Dagdum has been harping on this concept for over a year at this point: "don't waste time talking about your tools, you can do amazing things with everything, go do them".

It's a platitude, sometimes it's even the wrong mindset to have, tools do matter. And worse still it's starting to sound hollow given that all dagdum talks about is how you should do awesome stuff instead of talking on the Internet.

How about he talks about something cool he did recently instead? I guess that doesn't get him as many page views.

At least in this case it is actually correct, unlike previous entries, C++ and Perl are filling two very specific niches perfectly and their obvious shortcomings are the flip side of their strengths.

Re:The Silent Majority of Experts by kabdib on Saturday July 14, 2012 @11:25AM (#4244398)
An ounce of passion is worth a pound of tools. You /can/ do amazing things with limited resources and crappy tools.

You have to be careful about this. Using this as a justification not to have good tools ("What's wrong with you? Suffering worked great last time") is bogus logic; there's no reason not to have good tools. The other side of the coin, NOT doing something because you don't have good tools yet, is equally poisonous.

- The test team that spends all its time writing test frameworks and tools, and never writing any actual tests. (How many times have I seen this?)

- The engineer who spends half his time "optimizing" (finding the perfect language, defragging his hard disks six times a day, tweaking TCP settings so repository access is as fast as possible) and not writing code.

- Going around and around on a class design until it's /perfect/.

- Not moving on something because you lack complete understanding.

It's hard to overstate the benefit of just getting in the ring and doing /something/.

After 25 years of random fiddling with one side project [not going to tell you want it is] I finally just started writing some fucking code. And you know, it feels darned good. The stuff I'd been worrying about being inefficient and so forth turned out to be only a few hours of thinking and coding. It was fun.

A poor craftsman blames his tools.

Re:The Silent Majority of Experts by tomjen3 on Saturday July 14, 2012 @12:55PM (#4244673)
A poor craftsman blames his tools -- because one upon a time, a craftsman would make his own tools.

If you give a shovel and a screwdriver, don't complain if the house I build is not up to code.

If I show up with a shovel and a screw-driver, you have every right to send me away.

Re:The Silent Majority of Experts by stcredzero on Saturday July 14, 2012 @11:48AM (#4244457)
Re:The Silent Majority of Experts by vwoolf on Saturday July 14, 2012 @11:48AM (#4244459)
Using this as a justification not to have good tools ("What's wrong with you? Suffering worked great last time") is bogus logic; there's no reason not to have good tools. The other side of the coin, NOT doing something because you don't have good tools yet, is equally poisonous.

This middle ground approach is probably best.

PG writes about tools and their importance in "Beating the Averages": http://paulgraham.com/avg.html .

Re:The Silent Majority of Experts by batista on Saturday July 14, 2012 @12:06PM (#4244522)
>It's a platitude, sometimes it's even the wrong mindset to have, tools do matter.

They help, but they don't matter one iota in most cases. Whatever one is doing in Rails could be done in Django or PHP or whatever. A better tool can help, but not as much as using what you already know, using things that have programmers to hire in your area, using what has community support, etc.

Re:The Silent Majority of Experts by jiggy2011 on Saturday July 14, 2012 @02:00PM (#4244886)
Do people look down their noses at C++ programmers?

If you are using C++ you are probably doing so because you're programming something "closer to the metal" so are probably more likely to know your stuff technically.

Re:The Silent Majority of Experts by mattgreenrocks on Saturday July 14, 2012 @03:50PM (#4245154)
I see a lot of derision aimed at C++ devs -- from both higher and lower level language advocates.

On the one side you have the "C was created by God himself, and undefined behavior is expected", and then you have the "languages should be as restrictive as possible because this one time I worked with a developer who was very bad."

It's all very tiring. I do mostly Ruby now, and I love how expressive it is. It reminds me a bit of C++ in that regard. It's just funny how the mindset has shifted.

Re:The Silent Majority of Experts by _delirium on Saturday July 14, 2012 @06:33PM (#4245552)
There is a bit of that, but at least in my circles I more often run across people aiming derision at C++ the language, and the people who are most vituperative are people who have years of C++ dev experience. People who don't program C++ often have mildly negative opinions about it, but something about the language seems to inspire bitter hatred in some percentage of the people who actually have experience in it, in the way one can only hate something you've been intimately familiar with and once may have loved. Yossi Kreinin's scarily thorough "C++ FQA" (http://yosefk.com/c++fqa/), where he goes through the entire C++ FAQ and criticizes every single point based on years of C++ programming experience, is sort of a paradigmatic example. It reads a little bit like the Unix-Haters Handbook in its depths of familiarity/dislike.
Re:The Silent Majority of Experts by andrewflnr on Saturday July 14, 2012 @08:34PM (#4245723)
A good programmer chooses to use C++ because they're close to the metal. A lot of people just use it because it's their Blub.
Re:The Silent Majority of Experts by laichzeit0 on Sunday July 15, 2012 @05:19AM (#4246581)
I'm currently writing a C program that runs on a router. The router has 4mb of flash. It also runs linux has wifi and all the usual crap. We added VPN support. I don't have the "luxury" of including Perl or any other "run time system" like Python or Ruby because I have about 50kb of flash left for my own code and any customizations. In this case C (maybe even C++, but why if C will work?) is the best choice for the small userspace app I have to write. Over the years I've worked on enough embedded systems of all sorts and C has been the obvious choice. It worked out pretty well.

Whenever I meet someone who extols the virtues of language X I always, sort of cynically, ask them what low-level embedded work they've done and how X could be utilized for that use-case. It's one of those areas where most programmers don't seem to have much background, which if they thought about it would make the utility of C readily apparent.

Re:The Silent Majority of Experts by andrewflnr on Sunday July 15, 2012 @11:33AM (#4247127)
I guess I should have said, "a good programmer might choose to use C++...". My point was, just because C++ is low-level doesn't mean everyone who uses it knows what they're doing down there, or could have chosen a different language if it wash good idea.

Edit:rephrased last clause.

Re:The Silent Majority of Experts by rbanffy on Saturday July 14, 2012 @09:22AM (#4244092)
The same can be said about COBOL.

Or Visual Basic.

Re:The Silent Majority of Experts by SilasX on Saturday July 14, 2012 @10:28AM (#4244238)
Or PHP (shudders), which Facebook (for some reason) relies on.
Re:The Silent Majority of Experts by batista on Saturday July 14, 2012 @10:38AM (#4244267)
The "shudder" is against the spirit of the quote you were replying to:

"Just because looking down your nose at C++ or Perl is the popular opinion doesn't mean that those languages aren't being used by very smart folks to build amazing, finely crafted software".

Ie: don't shudder.

Re:The Silent Majority of Experts by SilasX on Saturday July 14, 2012 @11:50AM (#4244472)
I accept that smart people are using C++, Perl, and even PHP, to produce amazing, finely crafted software.

I do not accept that they are making it any easier on themselves by this choice of language.

Re:The Silent Majority of Experts by scott_s on Saturday July 14, 2012 @08:19PM (#4245698)
I work on a project that uses C++. Our runtime is implemented in C++, and our compiler produces C++. For us, performance is a top priority. I am quite frustrated by C++ sometimes, but I think it's the best tool for our job. I'm quite fond of pure C, but I also like having rich abstraction mechanisms like classes and templates, so I don't think it's appropriate for us. And no other language with broad support is as well-suited to writing high performance systems code while also allowing us to have rich abstraction mechanisms.

I am interested in D for this purpose - the most recent version looks quite well designed - but it's not as widely supported.

Re:The Silent Majority of Experts by pbourke on Saturday July 14, 2012 @12:08PM (#4244527)
Isn't it easier to work with the tool that you know thoroughly, which may not be "cool", rather than pick up a new tool in a different ecosystem?
Re:The Silent Majority of Experts by AnswerAndForget on Saturday July 14, 2012 @12:13PM (#4244547)
Who said anything about coolness? Seriously, why do people think that just because all languages are Turing complete, any further discussion is just a popularity contest?
Re:The Silent Majority of Experts by pbourke on Saturday July 14, 2012 @01:06PM (#4244701)
The point is that if you know one of the languages cited by the parent ("C++, Perl, and even PHP"), then you do make your life easier by working with that language rather than choosing one which you don't know.

All other things being equal, sure, choose the maximally powerful language in whichever dimension makes sense. But all other things are usually not equal.

If you are working on a project by yourself, here are some things which are more important than the characteristics of the language:

  - your knowledge of the problem domain
  - your knowledge of general software development
  - your knowledge of the limits, capabilities and ecosystem 
    of the language (aka project experience)
Also, if you're working with others, the following factors are more important than choice of language:

  - your customer's expectations (if you're shipping software to them)
  - the ability to recruit experienced individuals for your project
  - the availability of mentors / reviewers within your organization
  - the availability of secondary resources (books, FAQ, etc)
(edit: formatting)
Re:The Silent Majority of Experts by tikhonj on Saturday July 14, 2012 @03:07PM (#4245038)
Only in the short term.

Picking up a new tool shouldn't take long, but can give a significant benefit. As I like to say, learning something well enough to use is an O(1) action where the benefit is in O(n) to how much you use it.

In the long run, the quality of the tool dominates your current familiarity with it.

Re:The Silent Majority of Experts by Locke1689 on Saturday July 14, 2012 @11:03AM (#4244342)
Simply using a language to build interesting software doesn't make it good.
Re:The Silent Majority of Experts by pjmlp on Saturday July 14, 2012 @08:41AM (#4244017)
Very true.

While bringing lots of money home, I would add.

Re:The Silent Majority of Experts by konstruktor on Saturday July 14, 2012 @09:04AM (#4244059)
I remember, but sadly haven't bookmarked, a blog post by a guy who made a fair share of money building a decent music player for BlackBerry when all cool kids were building iPhone apps. Actual needs that will get people to pay money can be quite unhip.
Re:The Silent Majority of Experts by reinhardt on Saturday July 14, 2012 @11:16AM (#4244373)
This amazing, finely crafted software is built despite the handicap of lesser tools, not thanks to them. Which makes the feat of crafting that software even more amazing.
Re:The Silent Majority of Experts by chubot on Saturday July 14, 2012 @01:58PM (#4244882)
Sure but C++ and Perl don't fall in the category of lesser tools.

I've worked with both and cursed them both to death. But they achieved crazy popularity for a reason. They are extremely powerful and capable tools.

C++ especially can sing in the hands of masters. (And anyone who thinks they mastered C++ in less than 10 years doesn't realize how much more they have to learn. (I mainly curse it because once you have 20 people on a C++ project, there's no hope...)

Re:The Silent Majority of Experts by konstruktor on Saturday July 14, 2012 @08:57AM (#4244043)
And you get a lot of attention for bashing something, which aggravates the problem.
Re:The Silent Majority of Experts by pjscott on Saturday July 14, 2012 @02:52PM (#4245001)
What problem? You can bash a language without saying anything negative about its users. Not all programming languages are equally good, for any reasonable definition of good. This is a valid thing to discuss.