Tag: coding

Home / coding
Here’s How Not to Suck at JavaScript
Post

Here’s How Not to Suck at JavaScript

Let’s be honest. A lot of JavaScript code sucks. Change that! JavaScript is a force to be reckoned with. It is the single most widely-used programming language in the world. Its simplicity and the abundance of learning resources make it approachable for beginners. Large talent pools make JavaScript appealing to companies of all sizes. A...

Parallelising your Python Code
Post

Parallelising your Python Code

Swirl into a game-existencewhere you and your friend are miners. Yep, the yellow hat and shovel in hand. The task — Dig up a hole within a certain time to be able to extract some sparkly diamonds! So your friend suggests that you and they take turns digging… Let’s say it takes you 100 minutes to finish this task when done...

How to Write A Programming Language
Post

How to Write A Programming Language

Under the Hood Have you ever found yourself writing code and wondering exactly what is going on under the hood? How does programming really work? In an attempt to peel back at least one of the curtains, Jessica Betts and I created our own Esoteric Programming Language based on Lord of the Rings lore called My_Precious. There are many...

These are the most insecure programming languages
Post

These are the most insecure programming languages

WhiteSource review of programming language security errors reveal which languages have the most security holes. The winner? C. But that’s only the start of the story. From top to bottom, technology is riddled with security errors. At the lowest level, we have hardware errors such as Intel’s Meltdown and Spectre bugs. Just above those, we have...

5 programming languages developers love most, and 3 they hate
Post

5 programming languages developers love most, and 3 they hate

Spoilers: One coding language ended up on both the most loved and most hated lists, according to a Hired report. Employer demand for certain programming languages may be strong, but that doesn’t mean developers always love coding in those languages, according to Hired’s 2019 State of Software Engineers report, released Thursday. What’s Hot at TechRepublic Inside the Raspberry...

Building Code
Post

Building Code

How were programming languages built? Here’s a brief history. We, humans, have always been on the lookout for somebody to do our heavy and unwanted lifting. First it was simple machines, then steam powered beasts, and at the end a bunch of semiconductors and a quartz. But how do you get a simple stone to do...

Essential Books That Every Programmer Should Read
Post

Essential Books That Every Programmer Should Read

Never ask advice of someone with whom you wouldn’t want to trade places — Darren Hardy The idea to collect a list of books that knowledgeable, experienced and well-known programmers recommends to read comes to me from The long Journey to Ruby Mastery conference talk by Bozhidar Batsov. Here I share what I have found so far: the books recommendations...

Removing JavaScript’s “this” keyword makes it a better language. Here’s why.
Post

Removing JavaScript’s “this” keyword makes it a better language. Here’s why.

this is of course the source of much confusion in JavaScript. The reason being that this depends on how the function was invoked, not where the function was defined. JavaScript without this looks like a better functional programming language. this losing context Methods are functions that are stored in objects. In order for a function to know on which object to...

Dynamic class definition in Python
Post

Dynamic class definition in Python

Here’s a neat Python trick you might just find useful one day. Let’s look at how you can dynamically define classes, and create instances of them as required. This trick makes use of Python’s object oriented programming (OOP) capabilities, so we’ll review those first. Classes and objects Python is an object-oriented language, meaning it lets you...

What to do when you need a web app quickly
Post

What to do when you need a web app quickly

Recently, I needed a piece of software where you can input some numbers, validate and process them, and print some result. Since I needed to do scientific computing with it I decided to use Python with NumPy and SciPyand because I needed validation I decided that HMTL input validations would be the easiest to use. Then I had...

Similar yet different. So confusing
Post

Similar yet different. So confusing

There are concepts which are very similar, yet different and confuses many people. Referential transparency vs immutability Referential transparency is a concept in a programming language which guarantees that once the value is assigned to the variable it will not changethere is no way to assign a different value to it. For example, in ES6 you...

Scalable React Components architecture
Post

Scalable React Components architecture

Originally posted at carloscuesta’s blog It’s been a while since I’ve started working with React and React-Native in production. One of the greatest things about React is the flexibility the library gives to you. Meaning that you are free to decide how do you want to implement almost every detail of your project for example the architecture and structure. However this freedom on the long term, could...

Coding Concepts! Cyclomatic Complexity
Post

Coding Concepts! Cyclomatic Complexity

Cyclomatic what? Even spell check doesn’t recognise the word, but it’s a super useful software metric for understanding how your software works. Having read about it a few years ago, it apparent use seems to have deteriorated. I feel it’s a very valuable tool in a developer’s arsenal, and something that should be used in...

Modern Functions in Python 3
Post

Modern Functions in Python 3

Python has thrived over the past few decades as the language which lets you work quickly and effectively. Like many modern companies, we use Python quite extensively for a majority of our stack, but in many cases, continue to live on Python 2.7. The harsh reality is that Python 2.7 is going away, and honestly — it’s about...

Homemade observables
Post

Homemade observables

On this episode we will build our own implementation of an observable. I hope that by the end of this post we gain a better understanding of this pattern that is used in libraries like RxJS. About Observables What is it? Lets start with my definition of observable. An Observable is a function that follows a convention...

Python Tricks 101🐍
Post

Python Tricks 101🐍

Python tips which are relatively uncommon and are very useful. Talk is cheap show me the code Swapping values Create a single string from all the elements in list Find The Most Frequent Value In A List. Checking if two words are anagrams Reverse a String Reverse a list Transpose 2d array Chained Comparison Chained function call Copying List Dictionary Get Sort Dictionary by Value...