Author: Agile Actors #learning (Agile Actors #learning)

Home / Agile Actors #learning
Basics of multithreading in C
Post

Basics of multithreading in C

C is a language that runs on one thread by default, which means that the code will only run one instruction at a time. In some cases you’ll need to do multiple instructions at a time, a graphical interface for instance, will not stop when it performs an action related to a button’s click. That’s...

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...

GitHub gives developers unlimited free private repositories
Post

GitHub gives developers unlimited free private repositories

GitHub wants to make its software development platform even more accessible to developers with updates to GitHub Free and GitHub Enterprise. The company announced GitHub will now provide developers with unlimited free private repositories as well as a new unified offering for enterprise users. The unlimited free private repositories will enable developers to use GitHub...

The Ultimate Guide to Python Type Checking
Post

The Ultimate Guide to Python Type Checking

Table of Contents Type Systems Dynamic Typing Static Typing Duck Typing Hello Types Pros and Cons Annotations Function Annotations Variable Annotations Type Comments So, Type Annotations or Type Comments? Playing With Python Types, Part 1 Example: A Deck of Cards Sequences and Mappings Type Aliases Functions Without Return Values Example: Play Some Cards The Any...

Introduction to Python’s Collections Module
Post

Introduction to Python’s Collections Module

Introduction Collections in Python are containers that are used to store collections of data, for example, list, dict, set, tuple etc. These are built-in collections. Several modules have been developed that provide additional data structures to store collections of data. One such module is the Python collections module. Python collections module was introduced to improve the functionalities of the built-in...

Knowing Monads Through The Category Theory
Post

Knowing Monads Through The Category Theory

We all know that programming is based on math, what is perhaps not so clear is that knowing more math is going to help us become better developers. And although in all types of programming, math is fundamental, it is even more so in functional programming. A very widespread concept which I’m sure you have...

Imperative vs declarative
Post

Imperative vs declarative

Imperative – you instruct a machine what to do step by step. Example: assembly language. Declarative – you instruct a machine what you want to get and it supposes to figure it how to do it. Example: SQL. Imperative vs declarative is an example of limitation of categorical thinking. There is a spectrum of values, but we trapped...

Defining Your Domain
Post

Defining Your Domain

On making sense of everything you know, and don’t, as a software developer Being a software developer is about more than just knowing how to crunch long lines code. Sure, that is one aspect of it, and a very important one at that, but there’s a lot more that you need to know in order...

Sharing Docker Containers across DevOps Environments
Post

Sharing Docker Containers across DevOps Environments

Docker provides a powerful tool for creating lightweight images and containerized processes, but did you know it can make your development environment part of the DevOps pipeline too? Whether you’re managing tens of thousands of servers in the cloud or are a software engineer looking to incorporate Docker containers into the software development life cycle,...

Better loops in JavaScript
Post

Better loops in JavaScript

In this post, we will take a look at forms of for loop, array methods using which you can make your code simpler, more readable. These loops / methods are useful when you want to manipulate data in an array or object. for in loop With this kind of loop you don’t have to iterate...

Deploy a machine learning model using flask
Post

Deploy a machine learning model using flask

As a beginner in machine learning, it might be easy for anyone to get enough resources about all the algorithms for machine learning and deep learning but when I started to look for references to deploy ML model to production I did not find really any good resources which could help me to deploy my...

JavaScript Inheritance and the Prototype Chain
Post

JavaScript Inheritance and the Prototype Chain

This post is designed to be read after you read JavaScript Private and Public Class Fields. Previously we learned how to create an Animal class both in ES5 as well as in ES6. We also learned how to share methods across those classes using JavaScript’s prototype. To review, here’s the code we saw in an earlier post. function...

A Java Developer Walks Into A Ruby Conference: Charles Nutter’s Open Source Journey
Post

A Java Developer Walks Into A Ruby Conference: Charles Nutter’s Open Source Journey

Charles Nutter remembers when, working as a Java architect, he attended a conference and saw the Ruby programming language for the first time. And he was blown away. “I was just stunned that I understood every piece of code, every example, without knowing the language at all,” recalls Nutter. “It was super easy for me to understand...

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...

Get the most out of hackathons
Post

Get the most out of hackathons

Cross posted from https://anoff.io/blog/2018-12-09-stuttgart-hackathon/ TL;DR; Network and play with expensive toys Intro End of October I joined the Stuttgart 🇩🇪 Hackathon for the second time. It was my overall 4th public Hackathon. In this blog post I want to tell you why I enjoy doing Hackathons and why you should join one too if you have the chance! How I...

Learning Is Risk Taking
Post

Learning Is Risk Taking

Not too long ago, I remember getting into a pair programming session with a fellow contractor who was overseeing the project. We were meant to change the name of some class from one thing to another. At the time, we were working with Objective-C, a compiled language. So I proposed what I would consider a...

AlphaZero: Shedding new light on the grand games of chess, shogi and Go
Post

AlphaZero: Shedding new light on the grand games of chess, shogi and Go

In late 2017 we introduced AlphaZero, a single system that taught itself from scratch how to master the games of chess, shogi (Japanese chess), and Go, beating a world-champion program in each case. We were excited by the preliminary results and thrilled to see the response from members of the chess community, who saw in AlphaZero’s games a ground-breaking,...

How to avoid a Deadlock while writing Concurrent Programs — Java Example
Post

How to avoid a Deadlock while writing Concurrent Programs — Java Example

Hello guys, do you want to learn how to avoid deadlock while writing concurrent programs, especially in Java? Writing correct concurrent application is never easy as you have to deal with several concurrency issues like race conditions, livelock, deadlock, memory interference etc. In this article, I’ll tell you how to avoid deadlock while writing a concurrent program...