Profile

Cover photo
Douglas Crockford
Works at PayPal
Lives in San Jose
1,932,334 views
AboutPosts

Stream

Douglas Crockford

Shared publicly  - 
 
No programmer who continues to grow need fear the future.

Gerald M. Weinberg
95
19
Giorgio Vespucci's profile photoAlexsandro Pereira's profile photoAlfonso Burgos's profile photoPeter Berry's profile photo
 
Yep. The industry can't move quicker than people can.

Douglas Crockford

Shared publicly  - 
 
I was trying to explain to someone the difference between Java and JavaScript. "It is like the difference between Star Trek and Star Wars."

Java is Star Trek. It was first, and it is all uniforms, regulations, and red alerts. JavaScript is Star Wars. Grit, chaos, and mysticism.
201
80
Przemysław Szelenberger's profile photoAndrzej Korczyński's profile photoMathias Kegelmann's profile photoLena Savelyeva's profile photo
7 comments
 
When confronted with JavaScript, programmers have a choice: You can go Jedi, or you can go JarJar. Overwhelmingly, the most popular choice is to go JarJar.

"Meesa web ninja!"

Douglas Crockford

Shared publicly  - 
 
I will be headlining at Angular U.
Douglas Crockford. Douglas Crockford is an American computer programmer and entrepreneur who is best known for his ongoing involvement in the development of the JavaScript language and for having popularized the data format JSON.
36
4
Anders Dam Kofoed's profile photoAlexandr Cherednichenko's profile photo

Douglas Crockford
owner

Discussion  - 
 
Does it make sense to allow /global/ and import in the same file?
2
Sam Mikes's profile photoЕвгений Орехов (Evgeny Orekhov)'s profile photoDouglas Crockford's profile photo
9 comments
 
I was missing an example. Please try it now.
Add a comment...

Douglas Crockford

Shared publicly  - 
 
Looking at Google Trends: iphone slower vs android slower. The iphone trend is much spikier than I would expect.
13
3
Nicholas “beaverusiv” Loomans's profile photoShaunak Jadav's profile photoDjordje Puzic's profile photoAndrés Serrón's profile photo
 
Seems legit to me. The spikes would correspond with OS updates I'm sure.

Douglas Crockford
owner

Discussion  - 
 
IN DEVELOPMENT

I am doing the first rewrite of JSLint since the project began in 2001. It is not finished yet, but it is stable enough that you can start poking at it. I have significantly changed the way options work. There are far fewer of them, and they work at file granularity, not block as before. I have moved this and for to the endangered list as we are now able to better embrace the functional paradigm. I haven't figured out what to do with arguments yet.

This rewrite was motivated by ES6. The old version was designed for ES3. New features like megastring literals and farts are a challenge to the old framework.

I expect the new version is way too strict in some ways, and way too lenient in others. It will take some time to get the balance right.

The things I am looking for right now are crashes: texts that JSLint is unable to complete.
JSLint, The JavaScript Code Quality Tool. This file allows JSLint to be run from a web browser. It can accept a source program and analyze it without sending it over the network.
32
6
Samokhin Alex's profile photoЕвгений Орехов (Evgeny Orekhov)'s profile photoAlexandre Morgaut's profile photoLara Sweeney's profile photo
29 comments
 
+Douglas Crockford Thanks for making above error a comment only.

Another problem I found is with destructuring a function call result directly, e.g.:

let {Route, DefaultRoute} = require('react-router');

this results in:
Expected ';' and instead saw '('.

What's the reasoning behind that warning?
Add a comment...

Communities

Douglas Crockford

Shared publicly  - 
 
RQ. Douglas Crockford 2015-04-13. RQ is a small JavaScript library for managing asynchronicity in server applications. The source is available at https://github.com/douglascrockford/RQ. This page is available at http://www.RQ.crockford.com/.
24
10
Behrang Noruzi Niya's profile photoPffy Authors's profile photo

Douglas Crockford

Shared publicly  - 
 
I will be headlining at the Tel Aviv Frontend Conference, June 8-9.
25
1
Chris Laffra's profile photoSergey Bolshchikov's profile photo

Douglas Crockford

Shared publicly  - 
 
Which do you like better: magenta or fuchsia?
17
3
Brian Neil Burg's profile photokurri sudarshan reddy's profile photoVan Riper's profile photoАнатолий Демидович's profile photo
3 comments
 
My preference is magenta!  It sounds so majestic!

Douglas Crockford
owner

Discussion  - 
 
Destructuring

The next edition will accept destructuring when the ES6 option is selected, but with some restrictions:

> It will not allow deep destructuring. That would encourage some extremely bad practices, transforming the feature from convenience to attractive nuisance.

> It will not allow destructuring var statements. New programs should be using let and const from now on.

> It will not allow destructuring with assignment statements. {} doesn't work on the left of = because of syntactic confusion with blocks.
8
Raul-Sebastian Mihăilă's profile photoDouglas Crockford's profile photo
2 comments
 
No, it won't. JSLint recommends using a const statement instead.
Add a comment...

Douglas Crockford

Shared publicly  - 
 
An interesting observation about OOP from Thumbleweed Park

On the programming side, I was having some issues with how Squirrel handled classes, so I ditched the notion of rooms being classes and just made them simple tables/dictionaries. It works a lot better since I don't really need full-on classes for the rooms...

It could be argued you might want to create a base room class and derive from that, especially in the case of generic rooms like the forest in Monkey Island and the hotel in Thimbleweed Park, but endless class deriving and polymorphism is a pit of pain and eye poking. Object oriented programing (or OOP we pros call it) can make you feel very clever, but sometimes it feels like it's being used just because it makes you feel very clever.
There is no UI for the character switching, and we don't know exactly how we're going to do it yet, but it's completely functional. Maniac Mansion had a New Kid verb that displayed a list of the kids that you would then click on to switch. We don't have the space for another verb, ...
26
2
Exuper Okouya's profile photoGernot Kieseritzky's profile photo

Douglas Crockford

Shared publicly  - 
 
I was in the games business back in The Atari Age, but I eventually got bored with it and moved on. castAR is giving me the itch again.
26
4
Wicked Logic's profile photoChris Jones's profile photoNufayl Razick's profile photoIvan Pierre's profile photo
 
Want!
Communities
Work
Occupation
The Boss of You
Employment
  • PayPal
    present
Basic Information
Gender
Male
Story
Tagline
_ __ ___ ____ _____ In the Twenty First Century!
Introduction
On the internet, nobody knows you're a Doug.
Bragging rights
I discovered the JSON Data Interchange Format. I also discovered that JavaScript has good parts. That was the first important discovery of the 21st Century.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
San Jose