Douglas Crockford: Programming Style & Your Brain

Просмотров: 70 049

InfoQ

24 августа 2012


VeslorTV

VeslorTV

7 месяцев назад

Great talk from a legend.


Julio Di Egidio

Julio Di Egidio

9 месяцев назад

That's where you and two generations now of self-appointed gurus are, together with an entire industry that was rising and you have sunk for good: but I have been vocal since the late 90's about the fact that you guys just have no idea what state of the art even is, or, should I say, thanks to you, what it used to be and now survives in a handful of professional across the entire globe: you know, the few guys that can still do a proper job and deliver on time and on budget despite all the noise. We, as opposed to you, have long known what you and the whole band-wagon have simply assumed cannot be known to then build a broken industry out of of pure speculation and misguidance: you are the guys of the self-fulfilling prophecies and the royal disasters. And still you won't get it, you...


Waji Deus

Waji Deus

11 месяцев назад

I disagree with his argument on about 'with' being confusing. The thing is, identifiers are always inherited recursively from the parent namespace. All the 'with' statement does is make sure that 'o.foo' and 'o.koda' are used instead of 'foo' and 'koda' if they're defined. We're not saying to use 'o.foo' and 'o.koda' exactly, we're just changing the precedence of the namespace so 'o' is checked first.

Personally, I like this idea. You can't remove all context from logic. Identifiers aren't unique. What matters is that you can give the compiler enough information to give you the object reference that you want.


Chris

Chris

1 год назад

Great video! I started using tasker (an android application) about a two years ago and although it isn't programming it still introduces the concepts of variables (local and global), arrays, RegEx, array splitting, for loops, count loops, wait until, collision handleing, goto, variabe join and other things, which I had known nothing about before. I made some quite complex things (i.e. profiles) and initially I'd get a kick out of making them complicated because I thought I was being clever, but OMG doing it that way turned out to be a massive pain in the ass. I think my profile had over 200 actions, with different parts connected together in weird ways to help reduce the number of actions I had to create, but it was a nightmare later trying to modify it because I couldn't understand it easily. So I re-did it from scratch and it was so much easier to undertand after that. Now I'v started to learn javascript, but only to use in Tasker's Webview element, to create a nicer looking UI :) It's only for me and just a hobby but I am determined to write some half decent code.


BenRangel

BenRangel

1 год назад

"JsLint hurts programmer's feelings"
Sigh. Always telling this story.
The reason people dislike jsLint is because it gives you a shit tone of useless warnings about code style. And you can't configure it to your style.
That's why eveyone switched to jsHint and then esLint


Jon Seltzer

Jon Seltzer

1 год назад

Crazy...try Clojure, there are none of these peculiarities.  It's hard to misunderstand (+ 1 2) - prefix vs. infix notation.


the Truth about teaching English in China

the Truth about teaching English in China

1 год назад

very good, thanks


Dan Cook

Dan Cook

1 год назад

This was a very refreshingly objective view on style! I agree that programming is about expressing meaning, so it makes sense that ambiguity is more restrictive than it is expressive, and the thus language sub-setting can increase expressiveness.


Eletrix214

Eletrix214

2 года назад

Really interesting video!


MrSaemichlaus

MrSaemichlaus

2 года назад

I think switch statements should not let you fall through cases by default, but rather have a "continue" statement for doing so intentionally. Because you more often don't want it to fall through than not.


PixelOutlaw

PixelOutlaw

2 года назад

JavaScript, what a disaster.
Why does it have to be the only real choice for web page development.
Heaven forbid you use any language you like and the language compiles to platform agnostic opcodes for the browser.


Henry S

Henry S

2 года назад

i dont want to listen to this for an hour. can someone summarize for me?


krux02

krux02

2 года назад

just because javascript sucks at automatic semicolon insertion, doesn't mean that automatic semicolon insertion is a bad idea. It might be bad for javascript developers, but it go it works fine. Btw go forces you for the bace { on the right side. and those directly executed functions are very much like a simple block in scala, except that they are much more cluttered with braces ().


FichDichInDemArsch

FichDichInDemArsch

3 года назад

Douglas Crockford is a pretentious oaf.


Leto2ndAtreides

Leto2ndAtreides

3 года назад

x++ (or ++x - more rarely used), means "increment". Increment by 1 is a very common thing to do, and likely the reason that it was invented - because it was irritating people. Its common and often does have a different meaning than a regular addition - having it there makes the code more readable, because you know its usually a loop increment or something along those lines. x = x + 1; looks lame, doesn't carry that extra information.

And in general, everything would be better off having an atomic increment operator (I especially mean databases - some are missing a simple way to avoid conflicts in doing what is a very common and important operation)


Leto2ndAtreides

Leto2ndAtreides

3 года назад

There is a good reason for braces on the left. With indenting they make the start and end of blocks clearer and easy to see without clicking on the brace and then having the IDE find it for you...


Theodor Berza

Theodor Berza

3 года назад

Brackets on the left makes the program more readable because they're on the same column.


David Cuccia

David Cuccia

3 года назад

Great presentation, thanks!


Смотрите далее

Google I/O 2009 - The Myth of the Genius Programmer

Google Developers

8 лет назад

The Post JavaScript Apocalypse - Douglas Crockford

ConFoo Developer Conference

1 год назад

Monads and Gonads

GoogleTechTalks

5 лет назад

The Post JavaScript Apocalypse - Douglas Crockford

NDC Conferences

1 год назад

Functional Thinking with Neal Ford

InfoQ

5 лет назад

Which way is forward - Douglas Crockford

FooCafe

4 года назад

Douglas Crockford — Goto There and Back Again

HolyJS

11 месяцев назад

Managing Programmers by Douglas Crockford at Silicon Valley Code Camp

Silicon Valley Code Camp

2 года назад

Популярные видео
Copyright © Mixroliki.ru

Смотрите новые, популярные видеоролики онлайн в хорошем качестве. Быстрый поиск любого видео.

Связаться с нами