recentpopularlog in

mcherm : javascript   172

« earlier  
Elegant error handling with the JavaScript Either Monad
A really nice example of using a wrapper to handle exceptions (an "either monad" in the fancy language) within JavaScript.
programming  via:HackerNews  javascript 
june 2019 by mcherm
Virtual DOM is pure overhead
React has a "virtual DOM" -- updates are made to a data model of the DOM kept in memory in the browser and diffs are found and applied to the real DOM. This is overhead, but allows code to be organized in terms of "how to render the whole thing" instead of "what changes are needed from current state".
webdevelopment  via:HackerNews  react  javascript 
may 2019 by mcherm
Let's Build: With JavaScript - Dynamic Tabs
I found this useful in teaching me a reasonable way to build tabs in pure javascript.
javascript  css  webdevelopment  webdesign 
may 2019 by mcherm
Constructor, operator "new"
This is a good explanation of how "new" works in Javascript.
javascript  programming 
october 2018 by mcherm
A timing attack with CSS selectors and Javascript
A way to use JQuery to execute a timing attack that can extract fields from another webpage running in the same browser.
security  browsers  internet  javascript  hacking  via:HackerNews 
october 2018 by mcherm
Idle Until Urgent — Philip Walton
A technique in JavaScript within the browser for speeding up app launch: create wrappers of slow-to-initialize objects which attempt to load during idle time, but instead load on the main thread if they are accessed.
threading  javascript  webdevelopment  concurrentprogramming  via:HackerNews 
september 2018 by mcherm
D3-dag – Layout algorithms for visualizing directed acylic graphs | Hacker News
A graph layout algorithm for D3 (and a couple of other tools linked to in the comments).
datavisualization  javascript  d3 
september 2018 by mcherm
Service Workers | the frontendian
I don't know why I didn't learn about them earlier, but this is the first time I have actually read something that describes the capabilities of service workers.
webdevelopment  javascript  via:HackerNews  programming 
august 2018 by mcherm
JavaScript: keep digging
Cartoon making fun of JavaScript's ever-deeper mess.
javascript  programming  languagedesign  funny  cartoon 
august 2018 by mcherm
How it feels to learn JavaScript in 2016 – Hacker Noon
This accurately (and humorously) captures the incredible mess of libraries and Frameworks that is modern day web programming.
via:reddit  javascript  librarydesign  webdevelopment 
june 2018 by mcherm
André Staltz - Promises are not neutral enough
The promises added to JavaScript are eager (lazy would be nicer), have no cancellation, do not resolve until after the current event loop, and then() mixes "map" and "flatmap" behavior. Author says these were poor design choices; Hacker News commentary disagrees.
javascript  concurrency  concurrentprogramming  parallelprogramming  via:HackerNews 
february 2018 by mcherm
DevDocs — D3.js 4 documentation
A copy of the D3 reference manual that isn't blocked by Capital One.
reference  d3  javascript  webdevelopment  svg 
february 2018 by mcherm
From Facebook, a library of immutable data structures for JavaScript.
programming  library  javascript  immutable  functional 
january 2018 by mcherm
JavaScript Promises: an Introduction  |  Web Fundamentals  |  Google Developers
About doing promises (and thus useful concurrency) natively in JavaScript that works in nearly all major browsers.
javascript  webdevelopment  concurrentprogramming  parallelprogramming  programming 
january 2018 by mcherm
I Slipped on JavaScript's Banana Peel - Bocoup
Changed the JavaScript grammar definition to make it more readable and accidentally made it need >1 token of lookahead (which means some analysis tools stop working). Reverted.
javascript  standards  programming  via:reddit  languagedesign 
december 2017 by mcherm
API Reference for D3
The API reference for the D3 library (for building nice interactive graphs in SVG and things like that).
reference  d3  javascript  webdevelopment  svg 
december 2017 by mcherm
WebAssembly support now shipping in all major browsers - The Mozilla Blog
This is a big deal: we can now write native apps for the browser in most any language (with a cross-compiler).
internet  javascript  webdevelopment 
november 2017 by mcherm
single-spa project
A project to allow multiple single-page-apps (potentially written in different frameworks) to coexist. We are looking at it as a possible way to do components within the Angular app.
javascript  webdevelopment 
october 2017 by mcherm
Dynamic Websites Using the AWS SDK for JavaScript in the Browser
Might be useful. An example from AWS that proports to set you up with a website folks can log into that accesses a DynamoDB database from a webpage with sensible security.
programming  aws  javascript 
may 2017 by mcherm
d3 behavior.drag example -
An example of building a draggable interface for SVG using the D3 library.
programming  d3  javascript 
may 2017 by mcherm
Javascript: Create and save file - Stack Overflow
May explain how to save a file (to local disk) from a web page.
javascript  programming 
april 2017 by mcherm
Draggable SVG element | Peter's Website
Taught me how to make draggable nodes in an SVG diagram.
javascript  svg  programming  useful 
february 2017 by mcherm
JS Comparison Table
Javascripts == is so stupid it needs this site to make sense of it.
javascript  refs  programming 
august 2016 by mcherm
Cash: An absurdly small jQuery alternative for modern browsers | Hacker News
A very small library that works like jQuery. The comments list other similar tools.
webdevelopment  javascript 
april 2016 by mcherm
the-super-tiny-compiler: Possibly the smallest compiler ever
A compiler written in JavaScript with enough documentation that it would be easily understood even by someone completely unfamiliar with programming.
programming  via:reddit  javascript 
march 2016 by mcherm
PyPy compiled to run in a browser. Astoundingly, it is one 1.5x the speed of CPython!!! Has full access to the DOM.
python  pypy  javascript  programming  via:HackerNews 
may 2015 by mcherm
Why `typeof` is no longer "safe" - ECMAScript 6 - ES Discourse
The one thing that used to always be safe to do in JavaScript is no longer safe.
javascript  languagedesign  via:reddit 
january 2015 by mcherm
Why mobile web apps are slow | Sealed Abstract
JavaScript performance on mobile is terrible. A big reason is garbage collection, which performs badly unless you have a factor of 5 of extra memory available.
performance  javascript  mobile  garbagecollection  via:HackerNews 
december 2014 by mcherm
Google search gets 100-150ms faster
They send a prefetch hint to the browser to start fetching the slowest resources on the page the link goes to. Requires them to on w the slow resources for every page on the web. The hinting only works in chrome on mobile.
javascript  webdevelopment  performance  google 
december 2014 by mcherm
7 Principles of Rich Web Applications |
Really good advice on developing any web application.
webdevelopment  webdesign  webdev  javascript  ajax 
november 2014 by mcherm
JavaScript is in fact a trademark owned by Oracle | Hacker News
Sun talked Netscape into using the (confusing) name and gave them an exclusive perpetual license.
javascript  history  sun  oracle 
september 2014 by mcherm
Yahoo stopping all new development of YUI | Hacker News
Yahoo is ceasing development of YUI. And some commentary about it. Few things last forever in software development.
via:HackerNews  webdevelopment  webdesign  javascript  libraries  opensource  programming  softwaredevelopment  mypostings 
august 2014 by mcherm
D3.js - Data-Driven Documents
A javascript library for building things like animated SVG graphics on web pages.
javascript  via:NedBatchelder  library  svg  todo 
july 2014 by mcherm
PyPy.js: Now faster than CPython
JITs galore! This guy has PyPy running on Javascript in the browser. He can run pystone faster than cPython (!!) and he discusses the differences between the Javascript JIT for Firefox and that for Chrome and why Chrome's is (eventually) better.
python  pypy  javascript  firefox  chrome  jit  via:reddit  blogworthy 
may 2014 by mcherm
Saying Goodbye To Python
Ian Bucking: after 10,000 he's I became a true master of Python and I contributed a lot, but I think the future is in web services and I'm moving to JavaScript.
javascript  python  IanBicking  via:reddit 
february 2014 by mcherm
Rotate the World
A great way to project things and move them. More a technology demo than anything useful.
maps  javascript  via:HackerNews  personal_net 
november 2013 by mcherm
Smooth Online Signatures (Open Source) by ezl
A tool to let people input a signature (and make it look good).
javascript  webdevelopment  via:HackerNews 
november 2013 by mcherm
jimhigson/oboe.js · GitHub
A library that starts parsing the JSON and making it available while the response is still streaming.
via:HackerNews  ajax  javascript  JSON 
october 2013 by mcherm
JSFuck - Write any JavaScript with 6 Characters: []()!+
A minimal set of characters that can express any JavaScript. As a possible use: filters attempting to block unsafe JavaScript are no longer feasible.
programming  javascript  languagedesign  languages  security 
september 2013 by mcherm
Brython - Python in the Browser
It's not really Python, it is a mini-language (compiling to JavaScript) with syntax inspired by Python -- at best an extreme subset of Python. But cool nevertheless.
browsers  languagedesign  languages  javascript  programming  via:HackerNews  python 
january 2013 by mcherm
Javascript Cryptography Considered Harmful
A really good (and readable) article explaining why any and all attempts to write cryptography that runs in JavaScript within a browser is necessarily doomed. I predict it will happen anyway... and will be insecure (compared to real crypto) but better than plain text.
via:HackerNews  javascript  cryptography  crypto  security 
january 2013 by mcherm
Ajaxified Body | Raible Designs
Using Javascript to render and reload only the content portion of a page, not the whole thing, as a standard feature of a web app. (Not sure I'm a fan, but it's clearly interesting.)
ajax  javascript  webdesign  webdevelopment 
january 2013 by mcherm
json ⊄ js — Joys of JavaScript — Medium
JSON allows 2 control characters in strings that JavaScript does not allow. To be JavaScript safe, choose to escape these characters.
via:HackerNews  javascript  JSON 
december 2012 by mcherm
Brainfuck beware: JavaScript is after you! | Patricio Palladino
A very evil plan: create any script in JavaScript without using any letters. Great fun.
programming  javascript  via:reddit 
august 2012 by mcherm
A client-side Bayes classifier for Hacker News - Japomatik
He enhanced Hacker News by providing a way to rate the stories with your own personal bayesian classifier based on keywords. And integrated it in as a bookmarklet. Cool! Lots of sites could use this.
javascript  programming  socialcomputing  blogworthy 
february 2012 by mcherm
Hi everyone! I’m an engineer on the Google+ infrastructure…
Some of the ways that Google+ gets fast. (1) stream bits of pages down and "render" in-browser without loading a new page whenever possible. (2) uses a JavaScript library called "closure" (not "clojure") for dynamic HTML generation. (3) and some other stuff.
webdevelopment  closure  javascript  via:HackerNews 
november 2011 by mcherm
Critics call foul as Google takes aim at JavaScript with Dart
Google says JavaScript sucks so much it needs to be replaced and they’ll build a replacement. Ars Technica writes how disingenuous and non-open this is.
google  webdevelopment  javascript  via:ArsTechnica  ArsTechnica  languages 
september 2011 by mcherm JavaScript is Not Web Assembly
Some say JavaScript is the assembly language of the web, and other stuff should compile to JavaScript. It's more like the C of the web since it's not so low level.
javascript  webdevelopment  programming  via:reddit 
september 2011 by mcherm
TameJS from the creators of OkCupid
An incredibly simple and powerful library for building code with asynchronous callbacks, from the guys at OKCupid.
via:HackerNews  javascript  library  programming  asynchronous  concurrentprogramming  parallelprogramming  OkCupid  languagedesign 
july 2011 by mcherm
Security Considerations — Flask v0.7dev documentation
Odd security flaw that means you should avoid top-level arrays as JSON responses. Mostly.
security  json  javascript  webdevelopment  via:HackerNews 
june 2011 by mcherm
Ian Bicking: a blog :: Javascript on the server AND the client is not a big deal
It's possible to code in Javascript on both the client side and the server side. But "it's just one language" isn't a valid advantage of doing so.
programming  javascript  via:IanBicking  IanBicking  webdevelopment  languages 
april 2011 by mcherm
Daring Fireball: Tynt, the Copy/Paste Jerks
There's this terribly annoying feature that attempts to interfere and insert text in whenever you copy from a website. Here's how to block it.
internet  via:reddit  javascript  spam 
june 2010 by mcherm
Perfection kills » Understanding delete
Description of the delete statement in Javascript and how it really works.
via:HackerNews  javascript  programming 
january 2010 by mcherm
The State and Future of JavaScript (YUI Theater)
Douglas Crockford presentation (video and transcript) on the design of JavaScript version 5.
languagedesign  DouglasCrockford  javascript  programming  standards 
december 2009 by mcherm
Google Analytics unblocks the Web w/ Async support » Ajaxian
A Javascript pattern used by Google to load their javascript without blocking the page.
ajax  google  asynchronous  webdevelopment  javascript 
december 2009 by mcherm
Google Closure: How not to write JavaScript
A bunch of examples which demonstrate the Google's javascript library "closure" was written by Java programmers and uses lots of java idioms to its detriment. It compares unfavorably with something like jQuery.
javascript  programming  google  jquery  optimization  via:HackerNews 
november 2009 by mcherm
Some real data about JavaScript tagging on web pages: John Graham-Cumming
Some actual stats on the size of javascript on real-world sites. Answer: lots.
webdevelopment  via:HackerNews  javascript 
november 2009 by mcherm
document.f.q.focus(); The Billion Dollar Line of JavaScript
Google's homepage puts the focus in their search box. It's worth a billion dollars because it helped them take over from the address bar.
via:BillTheLizard  google  javascript  search  browsers 
october 2009 by mcherm
Reveling in Constraints - The Google Web Toolkit is an end-run around Web development obstacles - ACM Queue - Bruce Johnson, Google
An explanation of why Google Web Toolkit (GWT) was designed in the manner it was (write in Java, compile to Javascript to run in the browser). His explanation BEGINS to make some sense.
gwt  programming  javascript  google 
july 2009 by mcherm
Lessons from Gmail: Using Timers Effectively » Ajaxian
When is it safe to have lots of javascript timers? when they're infrequent (1 min or less) Frequent ones, even just a few, cause the UI to be unresponsive.
webdevelopment  javascript  programming 
july 2009 by mcherm
Goto.js «
Goto added to Javascript (with my comments).
mypostings  python  javascript  funny  programming 
july 2009 by mcherm
Two techniques for faster JavaScript: assertTrue( )
Two things to avoid in your JavaScript so your scripts will run faster. (1) don't hand-parse text in JavaScript, (2) use innerHtml() instead of DOM manipulation.
programming  performance  javascript  via:reddit 
april 2009 by mcherm
« earlier      
per page:    204080120160

Copy this bookmark:

to read