r/programming • • Mar 11 '13

Programming is terrible—Lessons learned from a life wasted. EMF2012

http://www.youtube.com/watch?v=csyL9EC0S0c
650 Upvotes

368 comments sorted by

195

u/tef Mar 11 '13

to answer some questions:

  • sorry about the disco lights, they were distracting for me when I gave the talk.

  • the slides are unreadable, but they're essentially background noise. the talk is mostly me talking rather than reading out text behind me.

  • yes I am british

28

u/not_a_novel_account Mar 11 '13

I think it's a very, very good talk. The bit about best practice boiling down to superstition was a good laugh. You should have thrown a chair at the light

18

u/[deleted] Mar 11 '13 edited Mar 11 '13

I enjoyed this talk a lot, thanks.

edit -

basically, education got to them before you could help them to learn

Poetry.

5

u/notorious1212 Mar 11 '13

Thanks for doing the talk. Sometimes we can all benefit from hearing things so bluntly. Do you blog these gems?

14

u/tef Mar 11 '13

Glad you liked it. After a few months of waiting for the video to appear, I gave up and started writing a blog under the same name. http://programmingisterrible.com

1

u/kazagistar Mar 11 '13

I am adding this blog to my RSS feeds to sit right next to Coding Horror. ;)

I think a good way to avoid the problem of "incorrect simple solutions to complex problems" is to listen to all the contradictory simple solutions.

4

u/ninjeff Mar 12 '13

right next to Coding Horror. ;)

now that was uncalled for!

2

u/tef Mar 12 '13

I think a better way is to write down your constraints, and work out your tradeoffs. There aren't really any simple solutions to complex problems.

The best thing to do with complexity is to contain it, rather than eliminate it. That is, complexity from dealing with the real world, rather than the complexity many introduce to solve problems they don't have yet.

→ More replies (1)

1

u/habitats Mar 11 '13 edited Mar 11 '13

Wish I'd seen your slides before I watched the talk! I posted them in the thread. Hope that's OK.

9

u/darkfate Mar 11 '13

Is the "skins around databases" comment intended to be taken as webapps are useless or am I missing a point?

66

u/tef Mar 11 '13

Given i'm using a webapp to talk to you, host my talk, and run my blog, I think it would be very futile of me to claim that they are useless.

It's a flippant comment about how most webapps at heart are very much user experience and business logic around a persistent store. It is dismissive, sure, but it's a lighthearted poke at those who think their next node/rails/whatever app is the be-all and end-all of programming.

It's not really a point but a cheap gag :-)

14

u/CookieOfFortune Mar 11 '13

How is a skin around a DB useless?

4

u/darkfate Mar 11 '13

Well from a dev perspective I access SQL Server directly and not through a web interface. I wasn't sure if there was any deeper meaning to what he said or it was just an offhand joke.

18

u/CookieOfFortune Mar 11 '13

But web interfaces are convenient and pretty. Users love that shit.

→ More replies (10)

3

u/4-bit Mar 11 '13

This is one of my biggest problems coding for myself. I start out OK, then go... wait a minute. I can just manipulate the data by hand, and fuck it. who needs an ap.

Users?

Screw those guys.

5

u/CookieOfFortune Mar 11 '13

But users have shiny money... shiny moneeyyyy!!!!

2

u/conflatedideas Mar 12 '13

This is a good talk. One point I have to disagree on some programmers being vastly most talented at making end results. I have seen some spectacular fails produced by mediocre/inexperienced programmers paid big salaries (bigger than mine). The reason the choose bad platforms, languages, and or design choices for architecture. For example, if you choose Ruby on Rails for your enterprise financial app you will have a bad time. I program ruby and clojure as my default for open source projects in my free time (so thats my I'm not hating on Ruby or Rails, just performance doesn't scale well). All in all experience does matter. When i say people are bad programmers what I mean is they are inexperienced or so opinionated and ignorant that they will not learn new things or see the possibility other tech will work better.

1

u/tef Mar 12 '13

I think I can count on one hand the programmers who I have seen who have produced marvellous results by themselves in isolation. I've seen bad programmers everywhere at all ends of the scale.

Most of the good programmers I know are ones who can work well with others and collaborate. Code that other people can pick up, debug and maintain. They aren't superheroes, just humans. They make mistakes, but they're better at letting others help them.

They aren't a million times more productive, they're just nicer people to work with. People who claim to be super productive, on the other hand, i've found a high correlation with not knowing their own limits. Programming is about working as a team, not individual merit.

I still stand by the notion that anyone looking for a "10x" programmer is someone looking for a programmer who will work long hours for almost no pay.

2

u/conflatedideas Mar 13 '13

I think you might be right. I retract my former position :) (how many times does that happen on Reddit?) "I still stand by the notion that anyone looking for a "10x" programmer is someone looking for a programmer who will work long hours for almost no pay." This really does resonate. There is a difference in knowledge level, but just like you said "good programmers" should be best described "ones who can work well with others and collaborate" and also be willing to learn. If you think you're the smartest then that's a recipe for problems. (btw I linked your video to quite a few people, they all loved it) Great talk.

2

u/Uncompetative Mar 12 '13

I really liked your talk, it is the best talk I have ever seen.

However, you misrepresent Paul Graham by saying that he had said that 9/11 could have been prevented if they had used LISP. Excerpt follows...

"How do programmers solve the problem? There are two defenses, one that works and one that doesn't.

The defense that doesn't work is to check the data on the way in, to make sure it isn't longer than the memory set aside for it. The problem here is that you might forget to check, or do it incorrectly. And in fact this happens all the time. Everyone has known about buffer overflow for at least 15 years, and still software gets written that is vulnerable to it.

The defense that does work is to keep code and data in separate places. Then there is no way to compromise code by playing tricks with data. Garbage-collected languages like Perl and Lisp do this, and as a result are immune from buffer overflow attacks.

To programmers, at least, this would suggest that the most reliable way to prevent hijackings is to separate the cockpit from the cabin. You still need to watch who gets on the plane, to prevent people from simply blowing it up. But as long as you keep passengers out of the cockpit you can prevent anyone taking control of the plane."

source - http://www.paulgraham.com/hijack.html

Now I think the worst that can be said about this is that it is insensitive to a nation in grief to use the opportunity presented by this tragedy to talk about code/data separation in LISP. It is an accurate analogy, except for the real impracticalities of sealing the pilots into a secure cockpit with independent external boarding access as this would also separate them from toilets, food and drink. This analyis would not seem so awkward if it had not been put up on the web on September 2001.

I only say this so that you may improve your talk in future...

6

u/tef Mar 12 '13 edited Mar 12 '13

I may be being glib, but at least i'm not co-opting a tragedy to shill my language choices :-)

ps: the whole code and data separate thing is a little bit hilarious after years of "code and data are the same in lisp".

1

u/Uncompetative Mar 13 '13

Maybe, in future say that he said:

"9/11 could have been prevented if they had used the same separation of pilots and passengers as seen between code and data in LISP"

I realize that you were talking fast and skimming over some details, but this is a better paraphrase of what he actually said and just as ghastly.

5

u/tef Mar 13 '13 edited Mar 13 '13

honestly i'm going to go with the making fun of paul graham for coopting a tragedy rather than elaborate the foolish point he made.

I don't think I lose any real accuracy when the point is that paul graham doesn't understand computer security or human decency.

1

u/deadvax Mar 11 '13

Really wonderful talk!

1

u/Littimus Mar 11 '13

Great talk, I really enjoyed it. I know you seem to be against "proper" education, but would you expand on why exactly you dropped out of school? It seems like there would still be some valuable information to learn.

2

u/tef Mar 12 '13

I dropped out for medical reasons. I'm not entirely against the education system as is, but I do not feel that it is close to a situation where it is hard to improve, or encourages people to learn.

1

u/[deleted] Mar 13 '13

oh hey gune. I dropped out myself for financial reasons and hope to get a career in software anyway through some OSS stuff I'm working on, examples like you are my inspiration for that though I know the odds are a bit stacked

1

u/[deleted] Mar 12 '13

My code needs to be easy to replace... never thought of it like that. Thanks for the paradigm shift :)

And skins around databases (and I'll fu@#$%ng have you...) I almost spilled my drink laughing so hard.

1

u/joeldg Mar 11 '13

And I agree about Joel Spolsky, even sharing a first name with that twat pisses me off.

3

u/not_a_novel_account Mar 12 '13

He nails all three, Spolsky, Graham, and Atwood. I cheered each time

1

u/joeldg Mar 12 '13

Yea, those three are all bad, but Spolsky holds a special place with me, I lived in New York for five years and people would be all "you aren't 'that' Joel are you?".

Graham, I will never forget reading his article about how lisp is so awesome that it could save the world and was the only reason he bla bla bla...

Atword is just trolling for page-hits as far as I can tell.

375

u/phaeilo Mar 11 '13

Webapps, or as I like to call them: Skins around databases.

Made my day.

122

u/Kminardo Mar 11 '13

Isn't that essentially what most programs boil down to? UIs for database interaction? You have your games and such but then you have those on the web too.

30

u/LongUsername Mar 11 '13

Not 90% of the embedded world, which is 90% of the processors in the world.

22

u/PoppedArt Mar 11 '13

Amen. I was reading this thread and thinking, "What world are these people living in?" Obviously they have a very skewed view of computers and programming. It's sort of like seeing a bag and claiming it can only be used to hold groceries.

20

u/[deleted] Mar 11 '13

It's because there's so damn many web programmers because the vast majority of paid positions are for web apps.

If you haven't spent your university time specializing in something better paid and slightly esoteric (like embedded) you're invariably going to land either in Java middleware for enterprise or web apps.

17

u/PoppedArt Mar 11 '13

You're right, there are a lot of grocery baggers out there. ;-)

13

u/LinXitoW Mar 11 '13

that hurt with floating point accuracy.

4

u/contrarian_barbarian Mar 11 '13

Seriously, I mostly work on hardware interfacing. I don't code anything that directly touches either UIs or databases until the data gets a couple steps farther down the line.

2

u/CookieOfFortune Mar 11 '13

Well, isn't that what most iOS and Android apps do too?

3

u/LongUsername Mar 11 '13

Android/iOS aren't traditionally refereed to as embedded.

  • Your toaster is embedded

  • your DVD player is embedded

  • your car is embedded (actually multiple embedded systems talking together)

  • your PCs Ethernet card is embedded.

  • The processor in the stoplights in embedded.

  • The processor that controls the lights in the movie theater is embedded.

EDIT: Anywhere there is a small piece of flash memory and a processor is traditionally embedded, from small 8 bit all the way up to multicore ARM processors, usually running headless. Parts of iOS/Android could be considered embedded, but at the application level it's generally no longer considered embedded, just like your PC is no longer considered embedded at the Windows Level.

26

u/keepthepace Mar 11 '13

Yeah, none of us work in robotics, data viz, simulation, augmented reality, computer vision, OS development, cryptography, signal processing, drivers, network protocols, compilers...

Note that I am voluntarily taking out anything that uses databases but where UI interaction is not the main focus : medical imaging, data-mining, satellite vision, search engines, genetic information management...

I agree that a lot of the people on my lawn on /r/programming and a lot of programming forums equate web development with development, but really, keep in mind that there is much more to programming.

169

u/chazmuzz Mar 11 '13

Coming to that realisation made it so much easier for me to work out how to code applications

Step 1) Plan your data structures

Step 2) Write UI around data structures

36

u/hai-guize Mar 11 '13 edited Mar 11 '13

This is a new concept to me. Thanks, maybe now I will be able to actually code something properly.

11

u/casualblair Mar 11 '13

I like to do it slightly different:

  1. Plan data structures

  2. Plan ui constructs

  3. WILL IT BLEND? Y = Build it. N = Unnecessary complexity exists, destroy it and try again.

3

u/kazagistar Mar 11 '13

I like that, might even use it... general case:

  1. Design separate module

  2. WILL IT BLEND?

  3. If not return to step 1.

→ More replies (1)

89

u/rabidferret Mar 11 '13

You've got it backwards...

  • Plan the general elements of your UI

  • Write tests for the code that would result in that UI

  • Create your data structures to contain what the UI has told you is needed

  • Write your code to fit the previous elements

107

u/zzalpha Mar 11 '13

Welcome to the top-down vs bottom-up battle! Today we have chazzmuzz and rabidferret. Who will win? Only time will tell!

44

u/warbiscuit Mar 11 '13

I'm not even sure why this debate keeps going.

User intent drives frontend design. Frontend design drives backend design. Backend design affects frontend design. Frontend design affects how the users think about the topic, and thus affects user intent.

It's all one large cycle, no matter where you start. I've always figured the goal was to start somewhere ("top" or "bottom" or wherever), make general design pass all the way around, bringing in external requirements as appropriate at each point (what the user wants, what the ui layer can do, what your database can do). Then keep going, until you reach a steady state where all parts generally fit together properly.

→ More replies (7)

10

u/maestroh Mar 11 '13

The debate isn't top down vs bottom up. If you develop code that you can test, it doesn't matter if you start at the bottom or top. In either case, you can mock the code out to make sure that each component works correctly. If you don't write testable code, you have to rely on setting up your environment before testing anything. This means the only way to test is by stepping through your code.

Writing code with tests gives you decoupled code and the ability to refactor the code later with confidence that it works correctly after the change. Writing the database layer first then building on top of that layer gives you coupled code. When a change is made, there could be a bunch of unintended side effects that can only be found by trial and error.

→ More replies (4)

11

u/rabidferret Mar 11 '13

I probably did a bad job of expressing this, but I'm pushing for TDD more than for top down.

19

u/[deleted] Mar 11 '13

TDD is a top-down approach.

→ More replies (1)

56

u/headchem Mar 11 '13

Heh, nice one. I take it one step further and write my CSS first, then design my normalized database around that. :-)

13

u/[deleted] Mar 11 '13

drink a bottle of Russian Standard, while drunk do some shitty wireframes on MS-Paint,.. then design your optimized database around that.

→ More replies (1)

7

u/[deleted] Mar 11 '13

I can't tell if this is sarcastic or not..

4

u/smcameron Mar 11 '13

sarcasm or kool-aid drinker? I can't tell.

4

u/Failstorm Mar 11 '13

Nope. Once you have the specifications, design the data structure first.

Designing optimized and extensible data models is a self contained task in itself, not even an easy one, that should not be affected by the UI in any way. Once you have a good data structure, you can build whatever UI you want, for whatever platform you want, for any target user group.

8

u/[deleted] Mar 11 '13

Is this a web dev thing?

I mostly develop client apps and I've always done it like this:

  1. Construct an object model

  2. Create a database based upon the object model

  3. Create UI

Some things change w/ your DB while working with the UI, but it's much easier to plan ahead and have a solid foundation setup. If you plan well enough your tables should require no changes.

Edit: I'm on 2 hours of sleep and after re-reading rabidferret's post, I cannot tell if serious...

7

u/rabidferret Mar 11 '13

What that leads to is overly complicated, unmaintainable structures. You know what you want your product to do. You let what you are expressing drive how you structure, and if you write it to be testable every step of the way, it'll be readable, maintainable, and scalable. And you avoid complexities that arise from solving problems you don't really have.

→ More replies (1)

2

u/metaphorm Mar 11 '13

...this hits close to home. as a web developer who is often working downstream from a graphic designer, yeah man, ouch.

5

u/[deleted] Mar 11 '13

Far better approach. You shouldn't be storing data for UI that doesn't make sense in a UI data structure. Doing that can give you the separation from database and UI that people here are complaining about. Leaving some data behind the user and some in front.

But how, then, would you design a system that is abstracted from a UI layer?

12

u/ChangingHats Mar 11 '13

There is no such thing really. "UI" is another way of saying "intent". What does the user intend to do with the application? You don't know what you'll need until you know why you need it. It's just arbitrary information without intent.

If you're talking about 'real-world applications' and how to design libraries, I'd say it comes down to taking all the 'use cases' and abstracting what data is needed to run them.

10

u/bucknuggets Mar 11 '13

This works great for small tactical systems.

But some, especially large & successful systems have multiple UIs. They could be for different roles, on different platforms, for vastly different use cases, or have emerged because the system has been successful for a long time and technology has changed (but it still has to support some old interfaces).

Additionally, the 'intent' of your users is a risky sole source of requirements: they often aren't the subject matter experts that we call them: they seldom really know what their competitors are doing, all of what the current system really does, or what they would ask for next - if they fully understood the technology opportunities. Additionally, there may be other "state-holders" that have requirements that the users don't know or care about. Perhaps for reporting, etc.

→ More replies (1)

6

u/TikiTDO Mar 11 '13 edited Mar 11 '13

Honestly... Did anyone ever take any Software Engineering courses in school?

Step 1: Write a spec, including Data and UI.

Step 2: Have everyone sign off on the spec.

Step 3: Implement the signed spec.

Step 4: Charge exorbitant prices for stupid changes to the spec that did not need to happen.

If you're jumping in and starting to code the instant you've heard the problem I don't care if you write UI or Data first; your code is going to suck either way. You're going to have stupid data structures that don't match UI elements. You're going to have horrid UI elements that try to enforce unreasonable demands on data. You're going to have to spent a huge amount of time hacking both to make them work together. Eventually you'll be the only one that understands anything about the code base.

Finally, at some point (usually after you leave) someone is going to look at the shambling monster you created, shake their head, and explain to the customer that a full rewrite is necessary. Worse, if the result is too big for a rewrite to be possible then we will be stuck with that mess forever, since no one will want to touch it for fear of breaking it.

All I see in this thread is people advising each other on how they ensure their own "job security" not how they write good software.

16

u/sirin3 Mar 11 '13

If you're jumping in and starting to code the instant you've heard the problem I don't care if you write UI or Data first; your code is going to suck either way.

But it will be agile

10

u/TikiTDO Mar 11 '13

It will be, and in some cases that's a necessity. However, the real question to ask is "does it really need to be agile, or is everyone involved just impatient."

→ More replies (1)

21

u/rabidferret Mar 11 '13

Yes, because building software is just like building a bridge. Nothing ever changes, and it especially isn't discovered through the process of building software. That model has worked so well, clearly no problems arise from it.

→ More replies (9)

4

u/[deleted] Mar 11 '13

Funny, I thought he commented on this "waterfall" method somewhere in that talk. :D

3

u/[deleted] Mar 11 '13

Yep. That model's proven absolutely infallible time and time again, which is why we no longer have any buggy software.

→ More replies (1)
→ More replies (2)
→ More replies (47)

5

u/[deleted] Mar 11 '13

Writing UI around data structures is not always a good idea, because people often do not understand them. I.e. when you normalize well and make an 1:N connection in a new table, people often do not understand why it is needed, so you denormalize in the UI so that every record can look like having Contact Person 1, 2, 3 instead of a list which they don't understand.

3

u/corporate_fun Mar 11 '13

OMG, you've discovered MVC!

→ More replies (2)

1

u/kazagistar Mar 11 '13

3) Realize that your UI is not very user friendly, rewrite half your code because you didn't make the UI separate enough from the data.

-4

u/[deleted] Mar 11 '13

If you have the luxury of planning your data, you have the luxury of doing this the other way round.

Step 1) Write UI

Step 2) Write the data structures you end up needing

14

u/[deleted] Mar 11 '13

Ideally, it's a virtuous cycle -- UX informs data, data informs UX. But, yes, I agree that UX should come first. If your data structures are designed without a notion of how the users will use your app, then, congratulations, you've written yet another program that will make people hate computers.

→ More replies (2)

13

u/syntax Mar 11 '13

Actually, to really do it well, you need 3 phases:

  1. Write UI

  2. Plan the data structures

  3. Write the glue code to connect the UI to the data.

By designing the UI separately, you ensure that the UI is designed with the user in mind, not around concerns for the programmer. (And yes, that does mean that it's more work).

By designing the data model in isolation, you get proper separation of concerns, and structured data.

The final phase can involve a small amount of complexity, but this is the trade off between having a good UI, and clean data model. It should be small, and localised.

You can rename these three phases to View, Model and Controller, if that's a useful mnemonic.

Note that this process is only useful if you need both a good data model and a good UI - if it's an internal app, I would do the data model first, then the UI, and be done with it - proper UI design is expensive, and thus only economic when it's a app for widespread use.

→ More replies (14)

0

u/[deleted] Mar 11 '13

[deleted]

→ More replies (5)
→ More replies (16)
→ More replies (3)

39

u/[deleted] Mar 11 '13

Most programs? What about those programs for doing actual computation? Whether it be numerical or symbolic computation? That's where the real fun actually lies in programming.

15

u/[deleted] Mar 11 '13

That's why I have actively avoided web development, it's so boring.

8

u/pi_over_3 Mar 11 '13 edited Mar 12 '13

I totally get that, but I like creating something that I can "see" and that other people use.

Writing code that just crunches numbers for a car's onboard computer? Boring.

12

u/vanderZwan Mar 11 '13

I'm just glad people like both of you exist to make the lives of everyone else better.

→ More replies (3)

2

u/CookieOfFortune Mar 11 '13

But you're going to need to visualize your data for human consumption, and that means storing your data in a form that can be readily visualized, ala database.

→ More replies (7)

9

u/hyperforce Mar 11 '13

I like to think of them as curated veneers. If people really wanted a database, you would just give them a SQL prompt. But what they really wanted is a guided tour, and yes most of the operations resemble CRUD. But a good UI is one that doesn't make the CRUDing so obvious.

3

u/skytomorrownow Mar 11 '13

Games are skins around databases too. The only difference between a game and Facebook is that on Facebook, users filled the database, while in a game, your engine does at startup and during use.

3

u/munificent Mar 12 '13

Yes, all software is just a user interface for data. But by that token, the Mona Lisa is just an arrangement of pigment and emulsifiers, and you're just some cells.

4

u/stillalone Mar 11 '13

Every program is a function. This function takes in user input and state information and outputs data with updated state information.

6

u/Daejo Mar 11 '13

So you're a functional language guy, huh?

1

u/Manitcor Mar 11 '13

Make it even more basic than that, nearly all programs boil down to processing data from multiple data sources. Be that user interaction where your data is constantly change, a database, a web page, a service or a text file and many times a combination of these.

Repository patterns are popular for slower user stores (like a DB or service) while interaction patterns like MVC and MVVM are popular for the constantly changing user state information.

1

u/Dementati Mar 11 '13

Algorithms?

1

u/metaphorm Mar 11 '13

there are alot of different kinds of database driven applications, but not every application is database driven.

1

u/[deleted] Mar 11 '13

What borbus said. I write software and haven't needed so much as a single in-memory table for most of my needs.

But yes, e-commerce and social networking are just the same web apps, over and over.

1

u/kazagistar Mar 11 '13

Except for the ones that are not.

1

u/POGO_POGO_POGO_POGO Mar 11 '13

Most programs? Hell no.

1

u/[deleted] Mar 12 '13

i think most programs are probably scripts

→ More replies (16)

4

u/[deleted] Mar 11 '13

The problem is that they are pretty poor skins around databases. From Django to Rails it is assumed an auto-admin, the CRUD is sort of a secondary thing and people will be using a hand-crafted user interface. But in reality if you deliver a web-based accounting, payroll, ERP, etc. other business software, then the auto-admin is the user interface, and actually you need a much better one, and a much more flexible one. We still do not have a database app development environment on the web that would match the agility and ease and flexibility of development in Navision. The closest open-source web-based parallel is taking OpenERP, wiping the built-in functionality and building yours. Which makes no sense at all. Django, Rails and the others ultimately want to build app-like websites instead of database apps just that happen to have their GUI in a browser based client.

1

u/[deleted] Mar 11 '13

Exactly this. The Django admin internals are awful, they don't have nearly enough hooks/methods to be customized properly. But of course there's still the insistence that you will break down and create a new admin from scratch. The trouble is that the Django admin covers 90% of what you want to do ;/

13

u/darchangel Mar 11 '13

Cute but you could apply this reduction to any layer. Let's say I do UI: webapps are the enduser experience with other stuff shoved into my beautiful interface. Domain logic: it's just buttons and data that exist to facilitate the core business functions.

6

u/trybius Mar 11 '13

Most good code is data driven, regardless of purpose.

1

u/[deleted] Mar 11 '13

missing a control layer?

1

u/kybernetikos Mar 11 '13

It is of course nonsense. I've spent the last 6 years writing single page web applications that consume streaming data and send streaming data and have almost no database interaction at all.

There's no reason that 'skins around databases' should be any more true of webapps than any other kind of application.

1

u/drowsap Mar 11 '13

That's a really cheap shot that most programmers will try to make who don't understand or choose not to invest their time in learning about front end development.

1

u/habitats Mar 11 '13

Just gonna' hijack this so people might actually see it:

Here are the slides for the talk, posted on his blog.

1

u/flanintheface Mar 11 '13

Fuck. I am sad now.

104

u/FluffyCheese Mar 11 '13

Perhaps it's because of the black humour/British wit, but some people seem to be missing the fact he is probably a very good programmer, poking fun at what he considers to be the downsides of the thing he loves.

11

u/pyro2927 Mar 11 '13

I understood, but I'm quite fond of black humor :)

32

u/mynoduesp Mar 11 '13

Tyler perry is the best.

3

u/[deleted] Mar 11 '13

<insert_uproarious_laughter />

→ More replies (1)

3

u/tef Mar 12 '13

I'm a pretty terrible programmer. I'm not really proud of the code i've written. I've learned a lot of stuff, but I still make lots of mistakes. I'm pretty sloppy at testing too.

I think I will be a good programmer when I write a program that doesn't make other peoples lives suck more.

→ More replies (3)

69

u/the-fritz Mar 11 '13

That's the Lisp and 9/11 bit he's talking about in the beginning: http://www.paulgraham.com/hijack.html

46

u/Roxinos Mar 11 '13

While that's certainly an analogy stretched pretty damned thin, the point he's making isn't that if people understood Lisp they'd have been able to prevent 9/11. The point he was making was that all of the security measures we've put in place to prevent people from getting on a plane with a weapon ("checking the data on the way on") don't actually solve the problem.

And I think that's a pretty damned valid point.

5

u/[deleted] Mar 11 '13

He is not talking about Lisp in specific. He also mentioned Perl, and he meant that garbage-collecting languages in general.

I think it is an interesting analogy (even if it is stretched).

14

u/Timmmmbob Mar 11 '13

A paragon of stretched analogies if ever I saw one.

→ More replies (24)

40

u/[deleted] Mar 11 '13

x10 myth. He makes a good point that if you believe the x10 difference is innate, i.e. that some people are just better, born better, whatever. That's the "fixed mindset" idea (see Carol Dweck).

But if you have a "growth mindset", that people can change and improve and become better (practice actually modifies your neural connections; it takes 10 years to master something - 10,000 hours of "deliberate practice), and can become x10 better (or whatever) - then it doesn't have that deleterious effect.

That is, he's not addressing the "x10" issue, but growth vs fixed mindset.

I think he's right that there isn't much experimental evidence - probably just that one paper he mentioned. However, I firmly believe that there can be a x10 or x100 difference in programmer productivity. This is because I have found a x10 or x100 difference in productivity in myself.

The issue is whether you hit on a better, clearer way of understanding a problem. This isn't the coding part of "programming", it's more abstract problem solving, the kind of thing that mathematicians are good at. But it's still a bit hit-and-miss... it's a journey of exploration, hoping that you might discover a clever way to solve a problem, but no guarantee that you will (or sometimes whether such a way even exists). Mathematicians do vary in their ability, but a big part of this is acquiring a deep knowledge of tricks and techniques. I'm not sure whether this accounts for all the geniuses in mathematics - but if they started very young, and worked diligently for 10 years, then maybe. OTOH, mathematics is reputed to be a "young man's game"... there is something, some quality (genius? sharpness of mind?) that lessens with age.

In software, this also applies, but mostly to academic problems. The secret to business success with software is to address a need, and get it into the hands of people who need it. This is easily a x1,000,000 lever of "success". But it's not about intrinsic quality; rather, solving someone's problem. i.e. success is more about the problem than the solution.

8

u/[deleted] Mar 11 '13

That "mathematics is a young man's game" generally refers to the fact that you need greater flexibility in learning and imagination than average, but at the same time, need to have acquired a large amount of technical prowess (as a basis) to invent something new and important.

The thinking is that you hit your peak ability to be technically minded, but at the same time open and dreamy when you're fairly young. Large innovations in mathematics very often are essentially paradigm shifts (or require conceiving of an old problem in a new way as the basis for the new result).

People do tend to get set in their ways as they get older.

(I'm not sure how true this is, mind you, I'm just repeating what I heard as an undergrad, and what the standing justification or thinking was at the time. Especially since we live in an age where drugs can have serious impacts on how your mind operates.)

1

u/[deleted] Mar 12 '13

I think it's true of any profession. Young people are often very ambitious and will attempt to solve problems that their older contemporaries wouldn't go near.

3

u/Fenwizzle Mar 11 '13

x10 should always apply, unless someone has decided 'I'm good enough.'

Programmer A has been coding one year. Programmer B has been coding one year.

Programmer A is 10x more productive than Programmer B.

Both spend the same amount of time learning as they go.

Programmer A will learn 10x more than Programmer B, or he wouldn't have been 10x more productive to start with.

or

Programmer A and Programmer B know the exact same amount, but Programmer B can conceptualize 10x better, and is able to work 10x more efficiently.

Either way, it's the same result.

9

u/[deleted] Mar 12 '13

No, this is how it works, Programmer A codes web apps for a year, Programmer B codes mobile apps for a year. Programmer A is 10x more productive at web apps than B, Programmer B is 10x more productive at mobile apps than A. Manager A only cares about web apps, so his entire world view is that Programmer A is 10x better. Manager A ignores any situational reasons and claims Programmer A is innately better.

Basic fundamental attribution error.

1

u/dokkah Mar 11 '13

I don't have my copy of code complete handy, but I believe there is a listing of studies that support the different between programmers.

He kind of lost me on this point, perhaps it's my bias, but literature I've read seems to confirm this point a lot. And, in my experience the difference in output between programmers I've worked with is dramatic.

1

u/[deleted] Mar 11 '13

How exactly are you defining output?

3

u/ithika Mar 12 '13

Accidentally hitting Ctrl-P when reading a very large document.

1

u/dokkah Mar 15 '13

Output: both in quality and quantity of code/functionality produced.

→ More replies (1)

1

u/[deleted] Mar 11 '13

What's the x10 thing? Googling gave a bunch of stuff that I'm pretty sure you weren't talking about.

7

u/neutronicus Mar 11 '13

Programmers love to talk about how good programmer are "10x more productive" than average ones, with the implication "I'm 10x more productive than these other schlubs. Fire them, give me their salaries, and let me cowboy this shit."

7

u/shendrite Mar 11 '13

"Shit-ridin' cowboys, just what this project needs!"

14

u/joeyadams Mar 11 '13 edited Mar 11 '13

some bloggers (terrible atwood) tells people off for playing and learning as they did, and they are bad people.

What blog post might this be referring to?

Edit: Forgot it was a Youtube video and not just the slides. In the video, he refers to "Please Don't Learn to Code" and gets the impression that "programming is serious business".

32

u/darchangel Mar 11 '13

I assume/hope it's just an artifact of the recorder's frame rate, but that oscillating light is really distracting.

42

u/Noink Mar 11 '13

I don't think it's an artifact of recording - I'm pretty sure it's a disco light just randomly in place at a programming talk.

0

u/[deleted] Mar 11 '13

[deleted]

6

u/Rotten194 Mar 12 '13

Not Having Disco Lights Considered Harmful

31

u/[deleted] Mar 11 '13

I like this new genre of stand-up comedy.

2

u/funnynickname Mar 12 '13

It's fairly irrelevant to me, but I watched the whole thing.

18

u/amigaharry Mar 11 '13

The part about paul graham (the anonymous LISP programmer in the beginning) made my day. Also I learned about the 911 post.

0

u/[deleted] Mar 11 '13

I stopped reading Paul Graham after that.

2

u/stackolee Mar 11 '13

There's an open question following 9/11 on which has been more successful in preventing a similar attack. The invasive TSA searches and scans or simply locking the door of the cockpit during flights. Like Graham says, make sure no bombs come aboard, and a deabolt will take care of the rest.

1

u/[deleted] Mar 12 '13

No, what's worked is the attitude change. At the time of 9/11, the thought of using a hijacked plane for a suicide attack hadn't occurred to most passengers (at least, most American passengers, outside places where terrorism is a lot more common). The passengers did as they'd always been told to do in their situation: let the hijacker make his demands, let him guide the plane, and hostage negotiators will solve the issue.

Problem was, the 9/11 hijackers had no demands. The plane was what they wanted, and the entire air security system was unequipped to deal with a hijacker who didn't want a free ride to Cuba or Uganda.

→ More replies (3)

21

u/TheLadderCoins Mar 11 '13

16

u/[deleted] Mar 11 '13

0

u/[deleted] Mar 11 '13

[deleted]

5

u/[deleted] Mar 11 '13

All those internet points, gone STOLEN. :(

14

u/[deleted] Mar 11 '13

This is a great talk which currently has 5 votes and 0 comments on Hacker News. I guess that just solidifies my reasons for not hanging around there much anymore.

14

u/sysop073 Mar 11 '13

Only 5 votes? Man, that must be embarassing (post)

0

u/[deleted] Mar 11 '13

[deleted]

3

u/TheLadderCoins Mar 11 '13

Fair enough.

5

u/sdub86 Mar 11 '13

Link to the HN thread? I'm sure it'll generate some discussion eventually..

1

u/wavegeek Mar 11 '13

The problem with his talk it that it is just a bunch of his opinions with hardly any evidence.

Opinions are really really cheap to the point of being worthless.

0

u/[deleted] Mar 11 '13

[deleted]

1

u/wavegeek Mar 11 '13

The problem was that he took a cheap shot at PG, when in fact PG was making a very valid point.

As a result a lot of people may dismiss PG even though his essays are terrific and he has a strong track record.

9

u/username223 Mar 11 '13

The "good and bad programmers" section is great. He gets in some nice implicit shots at various programming celebs along the way.

6

u/OnlyLookIrish Mar 12 '13

Copying other peoples work--in school, it's cheating. In the real world, it's called not reinventing the wheel.

Paying other people to do your work--in school, it's called cheating. In the real world, it's called management.

2

u/sminja Mar 12 '13

Are you trying to justify half-assing school?

5

u/Roxinos Mar 11 '13 edited Mar 11 '13

Since he talks a lot about the education side of programming, I just want to say that I feel he's oversimplifying things a bit. Whether he understands that or not is another matter, but while there are certainly good and bad lecturers, there are definite reasons why good lecturers would do some of the same things bad lecturers would do.

For example, that he compares the chanting of "public static void main" with a lecturer telling students not to worry about what those mean ignores the realities of why a lecturer might do the latter and likens it to stemming the interrogative drive to learn that students may have (and may need to learn; especially to learn to program) in order to get them to pass a test.

While it's most certainly evident of a bad lecturer to have your students chanting "public static void main" it isn't necessarily evidence that you're a bad lecture (or necessarily harmful to your students) to put off questions about something that is more complicated but which is required to teach the more basic things so that they can get through the basic things. I say that it's not necessarily harmful or evidence because it all depends on whether or not the lecturer goes back and answers the question later.

The thing about education is that it's very easy to get diverted by questions. While it's nice to understand that every student has a learning preference, it's also more or less impossible to actually utilize those learning preferences to the benefit of every student. So a good lecturer will try to generalize their explanations and address the common questions at opportune times. This enables the students to question things without the lecturer having to worry about wasting an hour of valuable lecture time explaining something that only the person who asked the question will care about (and likely won't even understand because they asked it too early).

Education is a process, and while the idea of a student learning how to program through an interactive, interrogative, exploratory atmosphere is great, it doesn't work all that well in practice. What does work is teaching students what they need to know, and through experience, learning the problems they will face and the questions they will have, and then addressing them.

And even then, a good lecturer is bound to have just as many people get out understanding the material (or passing the course) as a bad lecturer. And while there may be many reasons for this, I think this is the case primarily because education is, at the heart of everything else, in the hands of the person doing the learning, not the person doing the teaching.

7

u/ngroot Mar 11 '13

Obviously a lecturer frequently doesn't have the power to make curriculum design choices, but I think what's really being illustrated here is a poor choice of pedagogical tools. A language that explicitly requires you to understand or mimic understanding of OO principles to even get to "Hello, world!" isn't a good language for teaching programming to people who don't know OO stuff yet.

2

u/Roxinos Mar 11 '13

Except that section of the talk wasn't focused on the tools and languages used in teaching programming and was instead focused on the methodology and pitfalls of the lecturers themselves.

1

u/phantomfromnowhere Mar 12 '13

I agree with some of your points but heres my 2 cents.

i'm a beginner programmer and i can relate to a lot of stuff he brings up especially the "black box" point.

Also the one sizes fits all teaching is not good imo just because its harder to have a teaching system that enables students learning styles doesn't mean the current system is the only way . I've learnt from more debugging and googleing code than listen to a guy talk for 2 hours.

2

u/slippage Mar 11 '13

The part about programming for its own sake vs as a means to an end hits home. My organization's mentality is "why teach analysts how to use these tools, we don't want them to be PROGRAMMING, that's your job."

2

u/djhworld Mar 11 '13

Good talk, I think the answer to the question about StackOverflow hit quite a few home truths.

However I'm not sure if the speaker's suggestions could really be implemented in a forum like StackOverflow as the whole structure of SO is geared around giving a direct answer rather than promoting debate or discussion (i.e. in some cases topics are closed or answers deleted by moderators)

2

u/[deleted] Mar 11 '13

Funny. I also took things apart when I was a kid. I wonder how common that is.

2

u/Philluminati Mar 12 '13

The question was "I learnt to program on an 8 bit computer with qbasic and a prompt right there. These days is getting the tools to program easier?"

Before he answers, I will. Yes and No. When I was 16 I managed to steal a copy of Visual Studio 6 from somewhere and I had the full power of VB6 at my finger tips. I'm not sure if things are quite that easy today. VB.NET kinda formalised it and made "hacking" a little more unwelcome. IMHO anyway. Even if easier tools are around.. I think they're harder to find. VB6 made it look like I wrote professional applications even if the code behind it was utterly shit or copy and pasted.

Edit: Javascript is an excellent answer!

Edit: I feel bad now :-)

2

u/dancing_leaves Mar 13 '13

Loved the video. Also, you've given me some hope as I did a two year programming program at my local community college (you mentioned having less education can potentially be a boon to the quality of the programmer's attitudes). I have no industry experience but I keep trying to apply to places but I'm getting very little interest; particularly when I mention that I'm a recent graduate and not a working programmer in the industry. I'm a janitor.

On one hand, I want to temper their expectations and sell myself as I really am: a hard working guy who can learn all of the frameworks and such that a particular company uses. I do this because I don't want to get eaten alive when I walk in the door on the first day and they realize I don't know XYZ because I lied about it.

On the other hand, it seems like I'm shooting myself in the foot as I feel like I'm under-selling myself and my potential.

Anyway, thanks for the video it was entertaining.

3

u/kazagistar Mar 11 '13

Problem: People try to reinvent things instead of just looking at the dozens of existing solutions.

Problem: We are a mono-culture that just repeats the same old lies.

Discuss?

3

u/Pourush Mar 12 '13

I don't think this is really a contradiction. Consider the following example:

We all, working individually, put in all the effort required to reinvent the wheel, operating system, car, or whatever, and we make pretty much identical design decisions, with only trivial differences.

Not describing this particular phenomenon, but relevant to the question nonetheless: http://xkcd.com/927/

1

u/kazagistar Mar 12 '13

Maybe the difference is levels... we reinvent the wheel, but we refuse to reinvent the process?

1

u/flaviusb Mar 12 '13

We reinvent the wheel, rather than producing wheels, treads, tripods, wings, rockets, horses, pogo sticks, ice skates, hovercraft, sleds, boats...

2

u/huyvanbin Mar 11 '13

Yes, saying that some programmers are 10x more productive is just an excuse not to learn.

But also, saying you're a bad programmer is just an excuse not to learn.

2

u/[deleted] Mar 11 '13

My awesome take away from this is that being good at programming (or any skill?) is less about performing well and more about understanding what other people are doing.

9

u/amigaharry Mar 11 '13

Well, it hits a really unpleasant spot with the HN audience. PG is a hero for them (well, most of those guys just want PG's money so they're brown nosing him), Atwood is a regular and accepted poster there. And skins for databases are the hi-tech those guys run their 'businesses' on.

Truth hurts I guess :)

1

u/SendTheCheddar Jun 14 '22

I'm confused what's happening. is he trying to be funny?

-3

u/shevegen Mar 11 '13

There is one thing I don't understand - why is anyone saying that Programming is terrible?

Sure, if you want to make a living based on it. But I got into programming because of wishing to attempt create something useful. I did not get into programming because I would say "hey, I make 350k $ a year after 10 years programming full time!!!" - I see programming simply as an extension to options and possibilities, more an intellectual endeavour than anything else.

I would never go and look back at my life and say "Man, wtf, I wasted my life with computers... I was a programmer ..."

I see programming as an intermediate step towards real biological programming (and here I mean the complete design of synthetic, completely viable, biological organisms de-novo, including a coded, predefined behaviour).

53

u/sigma914 Mar 11 '13

You've missed the humour. It's probably cultural.

8

u/mcguire Mar 11 '13

the complete design of synthetic, completely viable, biological organisms de-novo, including a coded, predefined behaviour

Now, that'd be terrible.

2

u/[deleted] Mar 11 '13

"hey, I make 350k $ a year after 10 years programming full time!!!"

Is that even possible? God damn you Americans make a lot of money.

7

u/LeCrushinator Mar 11 '13

It's not really common. Unless you're doing some insane contracting jobs or a programmer running your own company then you're going to be making much less.

If I had to estimate the salary average in the US for a 10-year programmer I'd say it's probably about $110k. And a lot of programmer jobs are in areas with a high cost of living from what I've seen, so while the pay seems great, half of it or more is going towards rent/mortgage/food.

2

u/[deleted] Mar 11 '13

Living in NYC here, I can confirm this. Love/hate relationship with where I live, but I suppose I wouldn't want to live elsewhere.

→ More replies (4)

2

u/[deleted] Mar 11 '13

What country are you comparing to? I'm guessing China, India or Russia.

→ More replies (2)

-54

u/Uncompetative Mar 11 '13

This is probably the best talk I've ever seen. Pity about the baby crying at the end. Why are people so selfish to ruin it for everyone else just because they want to see it? If you procreate you stop being an individual with the freedoms and priviledges to go to restaurants, cinemas, opera, conferences, etc. In fact, I'd go as far as to say if you have to attend a funeral then you owe it to the rest of the grieving attendees to sort out someone to babysit for you - no excuses. Childless (or better organised people with childcare) know how not to be disruptive in public.

37

u/cockmongler Mar 11 '13

Crying at a funeral, such a terrible faux pas.

23

u/[deleted] Mar 11 '13

Return to /r/childfree.

17

u/DJohnsonCA Mar 11 '13

Any restaurant/cinema/opera/conference/funeral home is allowed to put any restrictions on age they want. You may create competing businesses if you wish.

11

u/Massif Mar 11 '13

Cannot tell if sarcastic or serious...

4

u/[deleted] Mar 11 '13

I hate kids too but to be entirely honest that kid wasn't really all that disruptive.

24

u/krosksz Mar 11 '13

They are bad! We are good! Childnessless is the Right Way™

20

u/BufferUnderpants Mar 11 '13

It's Childfreedom®, you breeder!

15

u/moor-GAYZ Mar 11 '13

GNU/Childfreedom™, free as both in freedom and in beer!

2

u/amigaharry Mar 11 '13

Children are disgusting. Please don't remind me of them here!

-6

u/[deleted] Mar 11 '13 edited Mar 11 '13

I know he had some great things to say, I just couldn't watch him rock back and forth from foot to foot and jam his hand way up his side like that so his elbow sticks out awkwardly, for much more than a few minutes.

Add in the cringe-worthy body language and the "Why the heck is there a multicoloured flashing light in frame pointing right at the camera for an hour long talk and no one adjusts it" factor, and I just couldn't finish it.

12

u/ruinercollector Mar 11 '13

Video isn't really important in this presentation. You can put the audio on and go do something else.

3

u/brtt3000 Mar 11 '13

So that must be why the slides are unreadable and he doesn't read out most of them.

2

u/ruinercollector Mar 11 '13

Not sure, but the slides being unreadable was apparent quickly so I just kind of switched tabs and let it play. I didn't have much where I thought I was missing something by not seeing his slides for what that's worth.

→ More replies (1)

1

u/TheMathNerd Mar 11 '13

The actual video has a pdf of the slides.

1

u/cockmongler Mar 12 '13

Wait, you think a talk where the speaker reads their slides to you is a good thing?

→ More replies (1)

-28

u/whateeveranother Mar 11 '13

Well, that was horrible.

23

u/[deleted] Mar 11 '13

Care to explain why?

1

u/dannyREDDIT Mar 11 '13

why?

1

u/whateeveranother Mar 12 '13 edited Mar 12 '13

Since you're the second person asking. Here's why, the guy did an amateuristic 1 hour talk that does nothing but rehash popular opinion in a bad format. The humor is forced, the anecdotes are either fictional or general "programming folklore". He doesn't appear to be very experienced (he knows a lot, but barely any experience). Apart from that, it's basically a guy ranting for an hour while repeating as much forum discussions as possible.

And really "you need to know math because floats" wtf man. And "waterfall is evil", right it's not like every programmer, ever, in the world, didn't know that already. "C is hard" shit.

Besides that, the guy is shy is fuck.

1

u/dannyREDDIT Mar 13 '13

And really "you need to know math because floats" wtf man. And "waterfall is evil", right it's not like every programmer, ever, in the world, didn't know that already. "C is hard" shit.

these are really thin counter arguments to his points. The rest of your comment is ad hominem garbage.

→ More replies (1)