Follow @prust_dev
Peter's Dev Blog
June 27, 2023
JAVASCRIPT TIPS

Global regexes & .test()

When .test() return true, the .lastIndex doesn't reset, even when testing another string
Mar. 30, 2023
JAVASCRIPT

v8's Error.stack gotcha

v8 caches Error.stack and never invalidates the cache
Dec. 2, 2021
SQL TIPS

SQL's odd null handling

Comparison operators typically yield one of two values; in SQL they yield one of three
May 11, 2020
TIPS

Using npm ci

An alternative to npm install that creates reproducible builds
Mar. 27, 2020
TIPS

Step through your code

Deeper insight outperforms quick wins
Feb. 24, 2018
C GDB SUBLIME …

How To Interactively Debug C

Integrating gcc's gdb debugger with Sublime Text via SublimeGDB
June 23, 2013
JAVASCRIPT

'this' in Node modules and IIFEs

May 22, 2013
SQL SQLITE POS…

SQLite's HAVING clause picks an arbitrary row

Apr. 23, 2013
UNIX PHILOSOPHY

Unix Philosophy and Node.js

Mar. 21, 2013
JAVASCRIPT NODE…

Annoying JavaScript Caching

Feb. 27, 2013
SUBLIME TEXT

How to remove a cursor in Sublime Text

Feb. 26, 2013
JAVASCRIPT

String.substr() is not ECMAScript

Feb. 26, 2013
JAVASCRIPT

Multi-line strings are not part of ECMAScript

Jan. 24, 2013
NODE READABILIT…

Readability != closeness-to-natural-language

Jan. 17, 2013
JAVASCRIPT BACK…

Function.length

Jan. 17, 2013
BACKBONE.JS

Backbone Tips

Jan. 11, 2013
JQUERY

jQuery setters act as getters if you pass undefined, breaking jQuery chainability

Jan. 10, 2013
JAVASCRIPT

'this' is automatically set, even for functions on object literals

Jan. 10, 2013
JAVASCRIPT

throw is disallowed in a ternary

Jan. 8, 2013
NPM

git URLs in NPM compare package.json versions

Jan. 4, 2013
JAVASCRIPT

replace() can take a function