Public notes
  • Log in
  • Nature
  • Coding
  • Information Sciences
  • Entrepreneurship
  • Practical Wisdom
  • Research
  • Now

Public notes

Elegance is not optional.

Testing JavaScript code

Alexander Paterson offers a guide around TDD in NodeJS here. Jasmine from here was once recommended to me for its super-simple syntax. Manually inspect source code To preview data structures in JavaScript, you can use some of the functions mentioned there: console.log console.

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 26 Jul 2018 • 1 min read
JavaScript

JavaScript - Subtleties

JavaScript oftentimes surprises the C/C++ programmer with its subtle gimmicks that make it hard to understand what goes on in the code in the beginning, but further into your carreer - help you develop speed and flexibility in coding even more. Let us

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 5 Jul 2018 • 3 min read
JavaScript

JSON edition

JSON vs JavaScript - differences: In JS values can be of all the types JSON format can carry, plus 3 more: a function, a date, and undefined. How to list keys of a JSON object? A recursive solution has been proposed by Patrick Fisher.

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 5 Jul 2018 • 2 min read
JavaScript

JavaScript - Most Important Features Pt. 3

The identifier this This mechanism is a different concept than in the object-oriented languages. In JavaScript, if a function contains a this reference inside it, then that reference usually points to an object. But which object it points to, usually depends on how the

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 5 Jul 2018 • 2 min read
The Unus-Nullus Rule
Law

The Unus-Nullus Rule

The Unus-Nullus Rule is a rule of evidence, which obtains in the civil law, that the testimony of one witness is equivalent to the testimony of none. It follows from

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 27 Jun 2018 • 1 min read

Set goals in Git

Git branch-per-feature philosophy helps in goal setting, but is an overkill for a single-person workflow. There is an alternative and I describe it below. When starting a task, make a tiniest change and commit it with git commit -m "<What you want

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 21 Jun 2018 • 1 min read
JavaScript

JavaScript - Most Important Features Pt. 2

JavaSctipt language interesting properties from the perspective of a C/C++ programmer - continued. Displaying help To show help in the terminal, type .help. To exit, type .exit (notice the dot as the "escape character" for the commands in node CLI). Loading

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 19 Jun 2018 • 3 min read
JavaScript

JavaScript - Most Important Features Pt. 1

This is a JavaScript review for C/C++ developers. It focuses on the differences, especially the most surprising ones to a C/C++ programmer. This review is based on the book called "You Don't Know JS" [1]. Objects Objects in JavaScript are

  • Patryk Kocielnik
    Patryk Kocielnik
Patryk Kocielnik 18 Jun 2018 • 3 min read
Public notes
  • Log in
  • Nature
  • Coding
  • Information Sciences
  • Entrepreneurship
  • Practical Wisdom
  • Research
  • Now
Public notes © 2025
Latest Posts Ghost