Hoisting and Locality
Here’s a puzzle. What do you think this Javascript code does?
f();
var f = 5;
function f() {
console.log("Hello!");
}
f();
Here’s a puzzle. What do you think this Javascript code does?
f();
var f = 5;
function f() {
console.log("Hello!");
}
f();
I recently wrote a post about Balloon, a new programming language I’ve been working on. In this post, I’ll try to put down some more of my thoughts on what I want to see Balloon become.
Since February this year, I’ve been working on a project that I’ve wanted to work on for quite some time now - a new programming language. After about 200 commits, things are now in working condition!
I’ve been working with server-side generated HTML for several years now, and the problem of code injection into HTML pages has been pervasive. A couple of days back, I discovered something fantastic that Go has built right into the standard library to help with this: context-aware autoescaping in HTML templates.
“Hello, world.” Words that every programmer first learns how to print
(or printf
).