Samer Buna·PinnedMember-onlyThe Mistakes I Made As a Beginner ProgrammerLearn to identify them, make habits to avoid them — Let me make one thing clear first. …Programming28 min readProgramming28 min read
Samer Buna·Mar 19, 2020Member-onlyThe different ways to define a function in JavaScriptSo you want to create a function in JavaScript? You. Have. Options: 1 — Declaration Function function sum(a, b) { return a + b; } 2 — Expression Function // Can be named: (function sum(a, b) { return a + b; }); // Or anonymous (AVOID): (function(a, b) { return a…JavaScript3 min readJavaScript3 min read
Samer Buna·Mar 4, 2020Member-onlyGraphQL In Action: IntroductionI am writing the GraphQL In Action book for Manning and 8 chapters (out of 11) has been published to MEAP. Below is the entire first chapter of the book. Feedback is welcome and very much appreciated. This chapter covers What GraphQL is and the design concepts behind it How…GraphQL39 min readGraphQL39 min read
Samer Buna·Oct 29, 2019Member-onlyWhy are promises better than callbacks?It’s not about callback hell pyramid of doom — The difference between callbacks and promises in JavaScript is subtle but significant! Why exactly are we ditching callbacks in favor of promises? How would you answer these questions in an interview?? The superiority of promises over callbacks is all about trust and control. Let me explain. We generally need to…JavaScript5 min readJavaScript5 min read
Samer Buna·Dec 4, 2018Member-onlyWhich framework is better: Angular.js, React.js, or Vue.js?Before I answer, if you‘re reading this article to pick a framework “to learn”, don’t. Read this article instead. If you want to pick a framework to use (in an actual project), you may proceed :) “Better” is really subjective. Better for what? Scalability? Code written for all 3 frameworks…JavaScript2 min readJavaScript2 min read
Samer Buna·Sep 17, 2018JavaScript Timers: Everything you need to knowA few weeks ago, I tweeted this interview question: *** Answer the question in your head now before you proceed *** About half the replies to the Tweet were wrong. The answer is NOT V8 (or other VMs)!! While famously known as “JavaScript Timers”, functions like setTimeout and setInterval…JavaScript10 min readJavaScript10 min read
Samer Buna·Dec 23, 2017Member-onlyWhich JavaScript frameworks should you learn?Let me first define what I think a coding framework is because the word is debatable. I think a framework is a library that defines structures about every aspect or layer that can make the task of creating applications easier. …JavaScript3 min readJavaScript3 min read
Samer Buna·Dec 13, 2017React Interview Question: What gets rendered in the browser, a component or an element?** Trick Question ** — You might not like the answer because, unfortunately, it is a bit complicated. Isn’t the word element synonymous to the word component anyway?? Update: This article is now part of my book “React.js Beyond The Basics”. Read the updated version of this content and more about React at jscomplete.com/react-beyond-basics. Technically…React5 min readReact5 min read
Trey Huffine·Dec 4, 2017Coding News Summary — WebAssembly, React, GitHub Security Alerts, Angular, and moreThis is a Coding Digest summary. We make them available in audio format as well! Subscribe to our podcast on iTunes or Play Music. WebAssembly WebAssembly (“wasm”) is now shipping in all major browsers with Safari and Edge including it in their most recent releases. WebAssembly is the binary format that…JavaScript4 min readJavaScript4 min read
Samer Buna·Nov 17, 2017Do you want to learn more about React? Let’s build — and then play — a game.Update: This article is now part of my book “React.js Beyond The Basics”. Read the updated version of this content and more about React at jscomplete.com/react-beyond-basics. When I teach React to beginners, I start by introducing them to the React API. Then I have them build a simple browser game…React17 min readReact17 min read