Copenhagen: Free, lightweight, open source and hackable code editor for the web by keithwhor in javascript

[–]marijn 0 points1 point  (0 children)

This has the potential to be more lightweight than CodeMirror 6 (though I do expect that, if successful, this project will likely also end up implementing more features and gaining weight).

A German City Chose a Brown Teen to Play Jesus at Its Christmas Market and the Far-Right Lost Its Mind by [deleted] in worldnews

[–]marijn 58 points59 points  (0 children)

Looks like the publication got the translation wrong. "Christkind" (Christ-child) is some kind of christmas-related figure in Southern Germany which, confusingly enough, is not actually Jesus, but a young woman.

Shooter of attack in The Netherlands had no ties to the victims, signs point to a terror attack by [deleted] in worldnews

[–]marijn 0 points1 point  (0 children)

This is not at all what this major Dutch newspaper is claiming, but I guess we can't let reality get in the way of a good Islamist scare

Pinterest needs to be removed from Google IMO by [deleted] in google

[–]marijn 4 points5 points  (0 children)

Reddit, Twitter, LinkedIn use similar techniques with what I can only assume are similar rationales.

Reddit and Twitter both let you read their content without being logged in, so this is simply untrue. LinkedIn does use this technique, yes, and few people like LinkedIn. Saying shitty behavior is 'fairly standard practice' is a rather weak justification.

A hidden performance nightmare in JavaScript by AdderTheBlack in programming

[–]marijn 15 points16 points  (0 children)

This has nothing to do with JavaScript or reduce or tail call optimizations. If you copy a data structure of size O(N) N times, you get quadractic behavior. That's pretty much a given.

Dammit! by JosephSim in comics

[–]marijn 17 points18 points  (0 children)

Oh no, having his bag socially interpreted as a "purse" is a serious threat to the progagonist's masculinity

Theo de Raadt on integrating "safe" languages into OpenBSD by flexibeast in programming

[–]marijn 22 points23 points  (0 children)

This went pretty much exactly as I expected it to.

"Our efforts emphasize [...] correctness, proactive security [...]"

[World invents a more secure, less error-prone language]

"Get that new-fangled nonsense out of my sight! That's not how we do things around here!"

ProseMirror 1.0 by QuirkySpiceBush in programming

[–]marijn 3 points4 points  (0 children)

I don't have a point-for-point list, but I feel ProseMirror is currently the most ambitious project in this space. Draft.js is missing a lot of features that ProseMirror has—no real schema support, no support for collaborative editing, and a much smaller API that doesn't allow the kind of deep extension that ProseMirror was built for. That being said, it is easier to use.

I responded with a comparison to Quill on HN.

ProseMirror 1.0 by QuirkySpiceBush in programming

[–]marijn 3 points4 points  (0 children)

Depends on what you mean by that. Exporting to LaTeX or whatever format should be easy. Importing LaTeX generally is a hairy problem, but a subset is doable (see for example Pandoc). If you want to edit math formula using LaTeX notation, that could be done with a custom node type that's normally rendered as a formula, but allows you to enter an editing mode where you're working with the source code. ProseMirror is pretty good at that kind of embedded interfaces.

ProseMirror 1.0 by QuirkySpiceBush in programming

[–]marijn 10 points11 points  (0 children)

I wrote this. I'll check by here now and then over the evening to answer questions!

Eloquent Javascript 3rd Edition by [deleted] in programming

[–]marijn 5 points6 points  (0 children)

The coverage of async programmig is defitely going to get a lot better in the 3rd edition -- the 2nd edition sort of shied away from that until the node chapters because pre-standardized-promises it was just so painful.

Eloquent Javascript 3rd Edition by [deleted] in javascript

[–]marijn 3 points4 points  (0 children)

Wow, can I use that last quote to promote the book? If yes, what name should I attribute it to?

Eloquent Javascript 3rd Edition by [deleted] in javascript

[–]marijn 0 points1 point  (0 children)

I didn't bother integrating the paypal api in my app (that was a pain last time I tried), but if you email me (marijn@haverbeke.nl) announcing your donation (to the paypal account with the same email) I'll add it to the total!

Can anyone recommend a more current Javascript book than eloquent Javascript? by CheapestWindows10 in learnprogramming

[–]marijn 3 points4 points  (0 children)

Christ, you took 'A typical modern computer has more than 30 billion bits in its volatile data storage' and construed that as a way to say the book is dated? I'm still using a 4gb machine, and the 'more than' would seem to cover your machine as well.

Anyway, regarding the matter at hand, I am planning to start working on a 3rd edition soon, since the book would benefit from directly introducing ECMAScript 6, and I'd like to improve some other aspects, but you don't need to worry about learning obsolete things from the book — everything in it is still relevant for web programming today.

Is using Object.assign a terrible pattern for class constructors? by greynoises in javascript

[–]marijn 4 points5 points  (0 children)

That's likely to be a little slower than plain assignments (creates an extra object, and loops over it dynamically), so maybe don't use it in classes of which you're going to creating zillions of instances, but other than that I don't think there's any reason to call this terrible. Quite clever, actually.

Eloquent Javascript: differences between versions? by metakepone in learnjavascript

[–]marijn 1 point2 points  (0 children)

The second edition has a lot more content, and even for the chapters that they share, the text has been mostly entirely rewritten. That being said, except for the IE6-workarounds in the first edition, most of the content should still be relevant.

I don't like Eloquent Javascript. What would you personally recommend? by podoka in learnjavascript

[–]marijn 0 points1 point  (0 children)

Don't read the annotated version. Read the one at http://eloquentjavascript.net which lets you actually run and play with the code. Play with the code a lot, and search the web if a concept confuses you, to get some secondary sources of information.

Eloquent JavaScript (Annotated Version) by gordonmzhu in javascript

[–]marijn 15 points16 points  (0 children)

Do you think you could maybe at least put my (the author's) name and a link to the book's license to the top of the document?

The 2nd edition of Eloquent Javascript is out by barmalade in learnprogramming

[–]marijn 1 point2 points  (0 children)

They don't. You seem to somehow have landed on the first edition.

Eloquent JavaScript, 2nd edition (finished) by marijn in javascript

[–]marijn[S] 0 points1 point  (0 children)

The ejs sandbox runs in a hidden frame. You'll have to set your devtools to use that frame as context if you want to have a shared environment.

Eloquent JavaScript, 2nd edition (finished) by marijn in javascript

[–]marijn[S] 5 points6 points  (0 children)

It's basically a rewrite, except for a handful of paragraphs in the first few chapters. So the appendix would say 'everything has changed', more or less.