2016-06-20 Easy Javascript logging
I've been doing some JavaScript coding recently. Before you run off screaming, let me tell you that JavaScript . . . CategoryEnglish, CategoryBlog, CategoryEmacs, CategoryJavaScript . . .
2K - last updated 2016-06-20 19:52 UTC by Marcin Borkowski
2016-08-15 JavaScript callbacks
Note: this is an introductory article on JavaScript callbacks. There will be a bit more advanced follow-up . . . for another post. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
8K - last updated 2016-08-15 08:09 UTC by Marcin Borkowski
2016-12-31 JavaScript head
Some time ago I needed an equivalent of Unix' {{{head}}} utility in JavaScript. I had a string, spanning . . . New Year 2017! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
1K - last updated 2016-12-31 17:37 UTC by Marcin Borkowski
2018-01-29 A simple script for shuffling exam questions
As we approach the end of the semester, my free time shrinks to nearly zero. Today I’m only going to . . . And that’s it! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2018-01-29 20:52 UTC by Marcin Borkowski
2018-02-19 A console.log gotcha in Node.js
I've been writing a certain Node.js script recently, and I was caught by surprise with an innocent-looking . . . it is. Be warned. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
2K - last updated 2018-02-19 17:36 UTC by Marcin Borkowski
2018-06-25 A simple hack with the comma operator and console.log
As we all know, {{{console.log}}} is the best debugging tool there is. I know, I know, it’s primitive, . . . trick possible. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2018-06-25 04:43 UTC by Marcin Borkowski
2018-07-23 Handlebars inline and block helpers
In a project I’m involved in, we use a templating library called [[https://handlebarsjs.com/|Handlebars.js]]. . . . in the future.) CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
6K - last updated 2018-07-23 03:44 UTC by Marcin Borkowski
2019-06-15 Debugging Node.js programs in a Vagrant virtual machine
One of the very nice things in a programmer’s toolbox is a debugger. Coming from Emacs, I am accustommed . . . is Emacs-based. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
4K - last updated 2019-06-15 18:21 UTC by Marcin Borkowski
2019-07-22 Increasing timeout in nginx
Today’s is a short follow-up to the post about [[2019-06-15 Debugging Node.js programs in a Vagrant virtual . . . Happy debugging! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
1K - last updated 2019-07-22 18:43 UTC by Marcin Borkowski
2019-08-11 A console.dir hint
As everyone knows, {{{console.log}}} is the ultimate debugging tool. ;-) Joking aside, it is genuinely . . . Good to know! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
2K - last updated 2019-08-11 19:18 UTC by Marcin Borkowski
2019-10-07 A tip with diffing (and committing) program structure changes
As I [[2019-09-30 diff and ignoring lines|mentioned last week]], the fact that {{{diff}}} works on a . . . like BitBucket. CategoryEnglish, CategoryBlog, CategoryJavaScript, CategoryGit . . .
6K - last updated 2020-10-23 13:58 UTC by mbork
2019-10-12 Challenge accepted - a Node.js grep
An old friend of mine posted [[https://twitter.com/deshipu/status/1181146782274863104|a challenge on . . . CategoryEnglish, CategoryBlog, CategoryEmacs, CategoryJavaScript . . .
3K - last updated 2019-10-12 11:58 UTC by Marcin Borkowski
2020-05-24 Two parameters and at least one required in yargs
I happen to write shell scripts in Node.JS quite often. They usually consume some kind of command-line . . . but there it is. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
2K - last updated 2020-05-24 08:17 UTC by mbork
2020-06-01 Node modules working as command-line scripts
Recently, I wanted to run one Node.JS CLI script from another. Of course, being in a hurry and KISS and . . . Happy scripting! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2020-06-01 06:20 UTC by mbork
2020-06-22 lodash iteratee shorthand
As is widely known, JavaScript is a language with good semantics, not-so-good syntax and a terrible standard . . . JS solution. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2020-06-22 21:03 UTC by mbork
2020-08-24 Sorting object keys with Lodash
I have been extremely busy recently, so I have only a short tip today. Imagine having a JavaScript object . . . necessary). CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
1K - last updated 2020-08-24 20:24 UTC by mbork
2021-03-07 A directory name as a command-line parameter for Node.js
Some time ago I accidentally discovered a neat feature of Node.js, which seems undocumented (at least . . . it for today! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
1K - last updated 2021-03-07 07:57 UTC by mbork
2021-10-16 The funniest bug I've seen in a pretty long time
I might be in the minority, but I actually do like debugging. It's often like that sort of puzzle game . . . smile a bit:-). CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2021-10-18 09:12 UTC by mbork
2022-03-14 Proper indentation after a const in Emacs
A few days ago I decided to finally fix [[https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40760|one of . . . CategoryEnglish, CategoryBlog, CategoryEmacs, CategoryJavaScript . . .
2K - last updated 2022-03-14 16:47 UTC by mbork
2022-05-16 Two simple helpers for debugging Express.js applications
Sometimes, when debugging [[https://expressjs.com/|Express.js]] applications, it happens that one of . . . it for today! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2022-05-16 10:50 UTC by mbork
2022-06-04 Diffing structural changes revisited
Two and a half years ago I blogged about [[2019-10-07 A tip with diffing (and committing) program structure . . . CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
1K - last updated 2022-06-04 07:04 UTC by mbork
2022-12-12 Debugging chained operations in Lodash
I use [[https://lodash.com/|Lodash]] in some of my projects. One of the nice features of Lodash is the . . . Very handy! CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
2K - last updated 2024-04-26 07:02 UTC by mbork
2023-03-04 A horrible gotcha with nodenv and Node.js scripts
Some time ago I ran into a terrible issue. It cost me more than an hour to debug and some new gray hairs, . . . done in secret.) CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
3K - last updated 2023-03-04 16:17 UTC by mbork
2024-07-01 Starting Node.js with selected packages preloaded
There are several Node.js packages I use fairly often, and often need to debug some code using them. . . . are supported. CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
6K - last updated 2024-07-01 15:07 UTC by mbork
2024-09-23 npm clean-install --ignore scripts - it's a trap
A few days ago I was scripting a Node.js project and I had a very specific need. I wrote a script run . . . it were doing... CategoryEnglish, CategoryBlog, CategoryJavaScript . . .
6K - last updated 2024-09-23 19:35 UTC by mbork
CategoryJavaScript
<list > . . .
1K - last updated 2019-07-29 11:31 UTC by Marcin Borkowski
26 pages found.