News for hackers. Stuff that matters.
Re:"Calling oneself a C Programmer is like saying you're a H... by gfunk911 on Monday October 25, 2010 @08:30AM (#1829481)
Yes, because that's all Rails (and the other frameworks) do. They obsfucate HTML and put a thin wrapper around SQL

You always have the option of dropping down into straight HTML. This is one of the things I love about Rails. Also, he forgot all the other things these frameworks handle, which constitute 95% of what they do.

Yes, there are people out there who couldn't write straight HTML if they had to, and have never heard of an inner join. We call them bad programmers. Guess what: they're everywhere.

EDIT: Obviously this only applies to people who work in web development, or other domains where SQL and HTML are important parts of their domain. If you do low level systems development, write device drivers, do kernel development, etc, you're not a bad programmer cause you don't know HTML.

Re:"Calling oneself a C Programmer is like saying you're a H... by jerf on Monday October 25, 2010 @10:58AM (#1830057)
Actually, at work I am currently engaged in a bit of a war to convince people that outputting HTML is not easy and in fact is quite challenging to get correct manually. Because people who think outputting HTML is as simple as printing out the tags write cross-site scripting attacks by the dozens. Arbitrary command injections and SQL injections follow just behind.

Outputting something that looks like HTML enough to please a browser is easy. Outputting correct HTML that isn't a CERT entry waiting to happen is actually very hard.

Though this still boils down to an argument that you ought to know what you're doing at the base level of what's going on, when I see people just slamming out HTML in string concatenations and variable insertions I generally consider that evidence that they only think they know what's going on, not that they actually do. If you aren't using some sort of safe+sane HTML generation wrapper you're suicidally betting on having superhuman levels of discipline if you expect to not write security holes.

Re:"Calling oneself a C Programmer is like saying you're a H... by enduser on Monday October 25, 2010 @12:55PM (#1830572)
While one can't count on superhuman levels of discipline, correctness (i.e. discipline) is still a trait to look for. Rapid development goes faster if programmers are not rapidly iterating over their logical/structural mistakes.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @08:58AM (#1829584)
You'd call someone a bad programmer just because they can't write straight HTML? You'd call someone a bad programmer just because they've never dealt with databases?

Interesting.

Re:"Calling oneself a C Programmer is like saying you're a H... by tel on Monday October 25, 2010 @11:00AM (#1830075)
C'mon HN! This is DH3 at best. Don't let your egos get the better of your words.

The obvious domain generalization is a much harder (but hardly impossible) statement to argue:

Yes, there are people out there who couldn't <use basic building block of their field> if they had to, and have never heard of <some atomic concept they implicitly use every day>. We call them bad programmers. Guess what: they're everywhere.

So the question becomes "if you only know how to function within some high level of abstraction are you effective at what you do?" I'd suggest that this holds pretty well if the level of abstraction you're using is too leaky. I don't have the slightest idea how to time an HD seek operation, but I can write to a file with a great deal of robustness. I think the op has a point though that if you operate mostly with RoR you might be ignorant to a non-trivial amount of detail which will relegate your work to being lower quality.

My personal belief is that "web frameworks" aren't a sufficiently compartmentalized level of abstraction. RoR holds the opposite philosophy (evidenced by marketing and the opaqueness of Active Record, for instance) which causes a great deal of impedance when you have to dive into lower level concepts which were supposed to have vanished via RoR. So I agree with the op in that if you can only create things using RoR abstractions, you'll probably be in trouble before too long.

Re:"Calling oneself a C Programmer is like saying you're a H... by JoachimSchipper on Monday October 25, 2010 @09:18AM (#1829643)
It's certainly possible to be a good programmer but to not have picked up HTML, but come on - making a simple web page is easy. A competent programmer should be able to pick it up quickly. (Note the "simple", though.)
Re:"Calling oneself a C Programmer is like saying you're a H... by Tichy on Monday October 25, 2010 @09:33AM (#1829704)
Maybe they never felt the need to do it?
Re:"Calling oneself a C Programmer is like saying you're a H... by JoachimSchipper on Monday October 25, 2010 @10:04AM (#1829811)
Hence "pick up".
Re:"Calling oneself a C Programmer is like saying you're a H... by markkanof on Monday October 25, 2010 @09:09AM (#1829618)
In the realm of web development (which the OP is), most developers have probably done at least some HTML and SQL. Sure there are folks who work at larger organizations where the SQL may be done by a different group than the web stuff, so maybe bad programmer is making too many assumptions. Maybe programmer with very limited scope.
Re:"Calling oneself a C Programmer is like saying you're a H... by joezydeco on Monday October 25, 2010 @09:39AM (#1829723)
Lots of embedded programmers I know don't consider web development as "programming". Just sayin'.
Re:"Calling oneself a C Programmer is like saying you're a H... by jrockway on Monday October 25, 2010 @09:42AM (#1829730)
Lots of people think the sun revolves around the Earth. Just sayin'.
Re:"Calling oneself a C Programmer is like saying you're a H... by X-Istence on Monday October 25, 2010 @10:35AM (#1829937)
It doesn't? This is news to me, do you have anymore information for me? I am in intrigued as that would change the entire model of the universe I have right now.

</sarcasm>

I've seen some web development in the past that was absolutely horrid, and I hope that after that project not a single programmer has to EVER touch code like that again.

Re:"Calling oneself a C Programmer is like saying you're a H... by pavel_lishin on Monday October 25, 2010 @10:59AM (#1830066)
> I've seen some web development in the past that was absolutely horrid

What's your point?

Re:"Calling oneself a C Programmer is like saying you're a H... by X-Istence on Tuesday October 26, 2010 @12:45AM (#1833029)
That web developers don't necessarily fall in the realm of software development/engineering.

I should have finished that post, I just kinda left it hanging. Something else came into mind at the time and I mindlessly hit submit.

Re:"Calling oneself a C Programmer is like saying you're a H... by nadam on Monday October 25, 2010 @11:07AM (#1830111)
web is just one kind of user interface. I think those guys more generally refer to applications which are mostly user interfaces to a database and do not involve too much algorithmization challenges.

As far as I am concerned I like algorithmization better, but most jobs out there are mostly UI and database related, so I have to deal with that.

Re:"Calling oneself a C Programmer is like saying you're a H... by sjs on Monday October 25, 2010 @10:33AM (#1829926)
And lots of programmers I know would call them closed minded star-bellied sneeches. Just sayin.
Re:"Calling oneself a C Programmer is like saying you're a H... by mkr-hn on Monday October 25, 2010 @10:15AM (#1829856)
Web development covers a lot more than writing markup.
Re:"Calling oneself a C Programmer is like saying you're a H... by jpr on Monday October 25, 2010 @12:10PM (#1830348)
That's funny, I don't consider twiddling bits of some gizmo programming.
Re:"Calling oneself a C Programmer is like saying you're a H... by mahmud on Monday October 25, 2010 @07:06PM (#1832024)
I would have mercilessly flamed you for saying this a few years ago, but then I met someone who made millions from writing his own BIOS for embedded systems, since early 80s. I love him, he is a good friend, his work runs industrial equipment that power the world. But ..

Talking to him about the most primitive constructs in computing: say, variables, or calling conventions, or the simplest data structures has been a teeth-pulling experience. One of the tricks he invented involved saving the registers for interruptible code to fixed locations in memory: he reasoned that saving X registers at Y clock-cycles would meet his soft-realtime requirements. He also kept an index, that stored the last instruction that was executing when the code was interrupted, so he can restore the "handler" later.

He "invented" this ~25 years ago.

Let that sink in.

My friend invented context-saving, all by his own, really, and there is no way in bloody hell to tell him that it EXISTED since before he was born.

I am mightly impressed by his work, all of it self-taught and wildly profitable. But it's just sad that I, a two-bit paper-hacker with nothing to his credit can look at his Magnum Opus and have a name for every invention, not to mention research references, and suggest alternatives.

Embedded hackers are competent, but FUCK, sometimes they need to see past board specs and stupid timings. College Freshmen can out produce them, and those kids are running 100% simulated stuff in Java and Flash. Something has to be said for rigor, depth, and breadth of knowledge, but most importantly abstraction. Who cares if you can operate industrial electronic equipment, if some kid with PLT Scheme can create a cycle-accurate simulator of your equipment in 2-weeks, and out-codes you after that?

Re:"Calling oneself a C Programmer is like saying you're a H... by rue on Monday October 25, 2010 @09:01AM (#1829591)
With those actual examples, it would be highly unlikely for them to be good programmers.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @09:05AM (#1829608)
I know, personally, at least 3 exceptionally good programmers who can't write HTML and don't know what an inner-join is. They are gifted at system design and architecture, they write code that's clean, fast, understandable, and has very few bugs, and their code is delivered on time and to spec.

But they've never written a web page, never bothered to look behind web pages, and don't know the syntax. I'm sure they'd be great if they chose to learn the syntax, grammar and elements, but they've no need.

They certainly know about mathematical logic, and almost certainly know the concept of an inner-join, but they've never dealt with relational databases, and certainly not SQL.

I'm pretty sure you can't be a good web developer without being about to write at least a little straight HTML, and without knowing the differences in use and performance of the different types of join, but even then I'm not convinced.

Just speaking from my experience. It seems to me that sweeping generalisations such as "Can't write HTML => bad programmer" says more about the speaker than the subject.

Re:"Calling oneself a C Programmer is like saying you're a H... by krschultz on Monday October 25, 2010 @10:33AM (#1829925)
And they're web developers? I don't think you can read the OPs message in any way other than that it applies to web developers even before his edit.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @10:44AM (#1829988)
No, they're not, and I didn't intend to imply they were. My comment was originally intended to point out that there are other types of programming than web programming, and that sweeping statements about people being bad programmers are misplaced when they're not properly qualified and contextualized.

The "discussion" got out-of-hand, and it's too late to try to write something balanced and conciliatory.

Re:"Calling oneself a C Programmer is like saying you're a H... by rue on Monday October 25, 2010 @11:25AM (#1830169)
> Just speaking from my experience. It seems to me that sweeping generalisations such as "Can't write HTML => bad programmer" says more about the speaker than the subject.

I will yield to your experience, and certainly do not suggest that it is impossible to be good without a grasp of the two technologies.

My instinct, however, is that not knowing HTML (which I define as understanding the structure and basics, not complete mastery of XHTML 2 tags or something of the kind) shows an alarming lack of curiosity especially given how dominant web-based technologies have been in the last 6-7 years or so.

Understanding databases and SQL (again, no mastery needed), on the other hand, seems like an exceptionally useful thing to have in your toolbox. How do you evaluate data storage options without having some working knowledge of databases?

They are also both relatively cross-cutting for the field of software development, not specialised niches.

Now, the guys and/or gals you know probably are great programmers: but I think a very small time investment in the two subjects would be quite beneficial.

Edited for grammar and added 2nd last paragraph.

Re:"Calling oneself a C Programmer is like saying you're a H... by hugh3 on Monday October 25, 2010 @12:05PM (#1830335)
I know how to do the <i> and </i> tags, does that count as knowing basic HTML?

Seriously, I think people might be showing a certain myopia in this thread, believing that the subfield that they're working on is all there is, or at least all that matters. If you want someone to write an iterative eigenvalue solver for a large sparse matrix in Fortran, I'm your guy... but my HTML is at the level of circa 1997 "Look at my awesome <blink>web page</blink>".

Re:"Calling oneself a C Programmer is like saying you're a H... by nickelplate on Monday October 25, 2010 @05:22PM (#1831655)
"My instinct, however, is that not knowing HTML (which I define as understanding the structure and basics, not complete mastery of XHTML 2 tags or something of the kind) shows an alarming lack of curiosity especially given how dominant web-based technologies have been in the last 6-7 years or so."

The only thing it shows is a lack of interest in HTML. A lot of people take a problem-first approach to career development and will only learn a new technology if it helps them solve a particular class of problems. For all you know a programmer not interested in HTML could be dabbling in graphics or compiler writing in his spare time - domains where HTML or web technologies are not really needed.

Re:"Calling oneself a C Programmer is like saying you're a H... by aplusbi on Monday October 25, 2010 @10:59AM (#1830065)
I spent the first 4 years of my career programming video games for the GBA and NDS. I knew basic HTML at that point, but I had barely ever worked with databases. I knew how to select something from a database but that's it (didn't know about joins, for example).
Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @09:06AM (#1829612)
Well, not HTML, but I would maintain that any programmer who hasn't dealt with databases is either a newbie or a bad programmer. Any web programmer who can't write straight HTML is most definitely a bad one.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @09:10AM (#1829622)
OK, so I'm either a newbie or a bad programmer. I've been programming since 1978, so I guess I'm a bad programmer.

Hmm. I write safety-critical software for embedded processes and distributed systems. Perhaps I should be concerned at your judgement.

Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @09:27AM (#1829680)
I think you have misread me. And while my knee-jerk reaction was to meet snark with snark, I shall resist the temptation. If none of your software has ever read from or written to a source of persistent data, I think you should be concerned. :)
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @09:44AM (#1829734)
My comment wasn't intended to be snarky, but when someone questions my credentials, albeit inadvertantly and through ignorance, I find it a little hard to be entirely objective.

I do read and write persistent data stores, I've just never had to use SQL or a relational database. I've just gone and looked it up. I do know the concepts of inner, outer, left and right joins, and I use similar constructions every day.

But this is counter-productive. I've made my point that there are areas of programming that don't use SQL or relational-databases or web technologies. Making sweeping statements about the competence of programmers based on their knowledge of technologies they don't use is blinkered.

Yes, programmers who work in web development most likely should know about databases and HTML. If they don't, then they are most likely either inexperienced or limited in their capabilities. It may yet be that the code they write is clear, clean, well-designed and bug-free, but databases and HTML are strongly correlated with productivity in this field.

Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @10:08AM (#1829825)
My comment wasn't intended to be snarky, but when someone questions my credentials, albeit inadvertantly and through ignorance, I find it a little hard to be entirely objective.

Huh. Well, you've been programming for longer than I've been alive, so you're almost certainly a better programmer than I am.

Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @10:15AM (#1829855)
I suspect that largely we've been talking (arguing?) past each other. My point was/is that there are areas of programming that really, really don't need SQL or relational databases, and don't touch web interfaces. I've just been talking with a friend who does financial simulations as well, and he's heard of joins, but never used them. He's also never written HTML, but has got a clue about it.

There are also many programmers out there who claim 30 years of experiences, but who actually have 1 year of experience 30 times over.

At its heart I think we'd all agree that narrow definitions and narrow judgements don't do anyone much good. There are more programmers than just web programmers, or embedded programmers, or kernel programmers, or simulation programmers, etc.

We should all do each other the courtesy of recognising each others' skills and knowledge.

Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @10:42AM (#1829979)
We have definitely been talking past each other. Mostly because we understand the term "database" differently (see my other reply to you). I am actually mostly in agreement with you, since I don't do that much web development these days either. And narrow judgements may not do anyone good, but I think precise definitions would have helped us in this case. :)
Re:"Calling oneself a C Programmer is like saying you're a H... by hugh3 on Monday October 25, 2010 @12:10PM (#1830352)
I've never done "database" stuff either, but I've "read from persistent data sources" (Fortran formatted read ftw). But if I tried to claim this counted as "database experience" on a job application I don't think many people would agree.
Re:"Calling oneself a C Programmer is like saying you're a H... by kranner on Monday October 25, 2010 @09:38AM (#1829719)
Plain old files are perfectly valid sources and sinks for persistent data, if you don't need all the other features of a database.
Re:"Calling oneself a C Programmer is like saying you're a H... by philipkimmey on Monday October 25, 2010 @10:18AM (#1829867)
I interned this summer in a genetics lab, and was shocked the extent to which this is the case. Both the input and output files are absurdly huge, so I'm not sure anything else would've been viable, but still, at least as a student it always seemed like there should be "some other way."

After a week or two of getting to know the system, for clarification I asked: "You mean this entire sophisticated system is just some Perl, with a database that keeps track of the flat files?"

Re:"Calling oneself a C Programmer is like saying you're a H... by protomyth on Monday October 25, 2010 @10:54AM (#1830032)
A lot of companies still do all the processing on text files as a nightly run (particularly those companies getting once a day data files (e.g. credit card rewards processors)). Some put it in an actual database, but you can really churn through text files faster than a lot of relational databases can do their queries.

The most interesting example I saw of this was a company that had an automated process to add a header with time/date/source and check it into code control (subversion I think). The nightly batch job checked what it needed out and did all the processing including generating some control spreadsheets.

Re:"Calling oneself a C Programmer is like saying you're a H... by ig1 on Monday October 25, 2010 @09:13AM (#1829632)
Plenty of developers work on embedded systems, libraries, GUIs, adapters, etc. that never need to touch a database. Not to mention many developers may work on applications where data is provide by middleware layers or data services rather than databases directly.

I think you're letting your experience of development cloud your view over what software development involves.

Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @09:21AM (#1829659)
I think you're letting your experience of development cloud your view of what a database is. Almost every program imaginable requires one.
Re:"Calling oneself a C Programmer is like saying you're a H... by protomyth on Monday October 25, 2010 @09:36AM (#1829711)
No, most embedded programmers will never deal with any form of database unless you stretch the definition of database so far as to include lookup tables. I am pretty sure arrays are not databases.
Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @09:44AM (#1829736)
I don't need to stretch the definition for that to be included, since the definition of a database is an organised collection of data. Ephemeral or transient data is still data.
Re:"Calling oneself a C Programmer is like saying you're a H... by kranner on Monday October 25, 2010 @09:51AM (#1829757)
By that definition a JPEG file is a database.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @09:52AM (#1829758)
But, for example, a dictionary in python, while containing data, is not usually referred to as "A Database". It doesn't have inner-join, outer-join, left or right join, select, etc. It's data, it's not what most people would call a database.
Re:"Calling oneself a C Programmer is like saying you're a H... by nocman on Monday October 25, 2010 @12:29PM (#1830450)
Ugh. Having horrible flashbacks here. :-D

I once worked for a company that had a version control system where they checked in all the data by project. You could go in an see the history of a project by reviewing the documents (emails, spreadsheets, CSV files, etc) or binary data files that were associated with the project. At the time for checking something in, you were asked to classify the data being checked in. You had options like "Document", "Text file", "Spreadsheet", and one of the options was "Database". Much to the dismay of the programmers who had to deal with the data, users insisted on checking in spreadsheets and CSV files and classifying them as "Database". No form of rational discussion would persuade the users to classify the documents correctly (like I said, there were classifications that covered Spreadsheet/CSV directly). In their mind, a spreadsheet was a database, and it was just stupid that the programmers insisted that it was not. In the end, the programmers just gave up trying to persuade them, and we just grumbled to ourselves every time we came across it.

Re:"Calling oneself a C Programmer is like saying you're a H... by NickPollard on Monday October 25, 2010 @10:33AM (#1829929)
Whilst I would mostly agree with that, the general modern definition of database has grown out of the common form of the popular varieties.

I don't think that something has to have inner-join, select, etc. to be a database, it's just that the most common do. Similarly I don't think something has to have 4 wheels, an internal combustion engine and a sunroof to be car - it's just that most of them do.

Re:"Calling oneself a C Programmer is like saying you're a H... by donaq on Monday October 25, 2010 @10:28AM (#1829907)
It seems this has degraded into an argument about semantics. When I learned the term in school, it was not synonymous with RDBMSes. When I was trying to learn lisp from the book Practical Common Lisp, there was a chapter containing an example where one went about building a database that resided in memory for the duration of the program's run. At my current job, the app I am writing processes a collection of csv files which my colleagues and I refer to as a database. I don't think the term "database" should be conflated with "database management system", much less a "relational database management system". I mean, nowadays there are so many different types of databases out there other than those (loosely) based on relational algebra.
Re:"Calling oneself a C Programmer is like saying you're a H... by RiderOfGiraffes on Monday October 25, 2010 @10:37AM (#1829944)
The comment that started this discussion was here:

http://news.ycombinator.com/item?id=1829481

in which it was said:

    > Yes, there are people out there who ... have never
    > heard of an inner join. We call them bad programmers.
You said:

    > ... the definition of a database is an organised
    > collection of data. Ephemeral or transient data is
    > still data.
That's not the point. Your sense of "a database" being "an organised collection of data" is actually more commonly (in my experience) referred to as "a data structure." Usually it's not "a database" until it gets some sort of query language or manipulation primitives.

Yes, people refer to a collection of data as "a database," but I return to my original objection to the original comment requiring that not being a bad programmer requires that you know about inner-joins.

As I said earlier, we have, to some extent, been talking past each other.

Re:"Calling oneself a C Programmer is like saying you're a H... by metageek on Monday October 25, 2010 @10:27AM (#1829901)
No, that's a data structure.
Re:"Calling oneself a C Programmer is like saying you're a H... by mfukar on Monday October 25, 2010 @09:41AM (#1829725)
Files are not databases.
Re:"Calling oneself a C Programmer is like saying you're a H... by wnoise on Monday October 25, 2010 @11:18AM (#1830149)
Is the file-system?
Re:"Calling oneself a C Programmer is like saying you're a H... by mfukar on Monday October 25, 2010 @12:19PM (#1830399)
I wouldn't say so. In my eyes, databases (or a DBMS, if you will) are sufficiently more complex and incorporate sufficiently more and/or different functionality for me to separate them from a filesystem.
Re:"Calling oneself a C Programmer is like saying you're a H... by gte910h on Monday October 25, 2010 @11:07AM (#1830112)
There are loads of applications which have no need for databases. There are loads of application DOMAINS where you never THINK of using databases. Lots of embedded stuff, especially. Drivers. OS work. Any of those, you can easily carve out a career without a single database write.
Re:"Calling oneself a C Programmer is like saying you're a H... by jarin on Monday October 25, 2010 @10:17PM (#1832621)
Boy, C programmers really get riled up when you suggest that anything with a higher level of abstraction is good (heaven forbid you mention an interpreted language). I wonder if assembly programmers do the same thing when you bring up C.
Re:"Calling oneself a C Programmer is like saying you're a H... by runjake on Monday October 25, 2010 @12:23PM (#1830421)
You might more correctly say that Rails "abstracts" HTML, JavaScript (on multiple levels) and SQL (via an ORM).
Re:"Calling oneself a C Programmer is like saying you're a H... by runjake on Monday October 25, 2010 @03:52PM (#1831329)
What's with the downvotes? That's the purpose, it's to provide an abstraction layer, not obfuscate.
Re:"Calling oneself a C Programmer is like saying you're a H... by mfukar on Monday October 25, 2010 @09:08AM (#1829616)
I can't write HTML off the top of my head.

Go ahead, judge my work.