Tag: coding

Home / coding
Hands on with Python 3.7: what’s new in the latest release
Post

Hands on with Python 3.7: what’s new in the latest release

Used for general purpose programming, data science, website backends, GUIs, and pretty much everything else; the first programming language for many, and claimed to be the fastest growing in the world, is of course Python. The newest version 3.7.0 has just recently been released. Naturally any release of Python, no matter how small, undergoes meticulous planning...

Understanding JavaScript Iteration with C#
Post

Understanding JavaScript Iteration with C#

As I was chatting, someone from Coding Blocks slack channel (#javascript) has asked a question regarding a code snippet var uniqueInOrder = function (iterable) { return [].filter.call(iterable, (function (a, i) { return iterable[i – 1] !== a })); } view rawuniqueInOrder.js hosted with ❤ by GitHub His question was “Kinda lost in the [].filter.call , etc part.” I will show you...

Coding Concepts – Reflection
Post

Coding Concepts – Reflection

Reflection – What you need to know. In computer science, reflection is the ability of a computer program to examine, introspect, and modify its own structure and behavior at runtime.[1] So what does that mean? Reflection is a term thrown around every now and again and but do you really know what it means? Why...

Cool New Features in Python 3.7
Post

Cool New Features in Python 3.7

Table of Contents The breakpoint() Built-In Data Classes Customization of Module Attributes Typing Enhancements Timing Precision Other Pretty Cool Features The Order of Dictionaries Is Guaranteed “async” and “await” Are Keywords “asyncio” Face Lift Context Variables Importing Data Files With “importlib.resources“ Developer Tricks Optimizations So, Should I Upgrade? Python 3.7 is officially released! This new Python...

Looping through objects in JavaScript
Post

Looping through objects in JavaScript

Once in a while, you may need to loop through Objects in JavaScript. The only way to do so before ES6 is with a for...in loop. The problem with a for...in loop is that it iterates through properties in the Prototype chain. When you loop through an object with the for...inloop, you need to check if the property belongs to...

Why you shouldn’t reassign values in JavaScript
Post

Why you shouldn’t reassign values in JavaScript

In JavaScript, you can reassign values to variables you declared with let or var. I used to reassign values a lot. But as I got better with JavaScript, I realized you shouldn’t reassign values if you can. This is because: You may change external state by accident when you reassign values You create more complex code when you...

How To Review Code You Don’t Understand
Post

How To Review Code You Don’t Understand

I recently read an article by Max Bittker called “How to Review Code You Don’t Understand”, and it got me to thinking about times when I’ve been tasked with doing just that. One of the troubles I have with code review is understanding the context around a change. Given a diff, I can work through it...

Async programming basics every JS developer should know in 2018
Post

Async programming basics every JS developer should know in 2018

This article is aimed at people starting out with asynchronous coding in javascript so we would keep things simple by avoiding big words, arrow functions, template literals etc. Callbacks are one of the most used concepts of modern functional javascript and if you’ve ever used jQuery, chances are you’ve already used callbacks without even knowing...

A Gentle Introduction to Elixir
Post

A Gentle Introduction to Elixir

Functional programming languages are one of the programming trends nowadays. We see several imperative languages influenced by functional programming, being this javascript, ruby, python and even php. The problem is that the majority of programmers don’t take the initiative to learn a full functional programming language, missing the opportunity to expand their technical knowledge and...

Go Language CookBook With Examples
Post

Go Language CookBook With Examples

Chapter 1Intro 1.1 Objectives After the event, we expect the attendees to leave with the following knowledge, skills and attributes.   1.1.1 Knowledge pros/cons of static typing in Go what makes Go unique what is Go particularly good at what are the challenging parts of Go   1.1.2 Skills know how to do data modeling...

My Sublime Text Setup for PHP
Post

My Sublime Text Setup for PHP

I have been using Sublime Text for coding in PHP for several months now and over that time have accumulated several useful plugins and editor settings. I have not seen many recent articles about setting up Sublime Text, especially for PHP, so I want to share how my setup works and what has been most...