Tag: programming

How to write performant React code: rules, patterns, do’s and don’ts
Post

How to write performant React code: rules, patterns, do’s and don’ts

Performance and React! Such a fun topic with so many controversial opinions and so many best practices flipping to be the opposite in just 6 months. Is it even possible to say anything definitive here or to make any generalized recommendations? Usually, performance experts are the proponents of “premature optimisation is the root of all...

Meta’s Bean Machine: The Hot Topic In Probabilistic Programming
Post

Meta’s Bean Machine: The Hot Topic In Probabilistic Programming

Originally posted on analyticsindiamag. Through probabilistic modelling, engineers and data scientists can account for random events in future predictions while measuring different uncertainties. One of the biggest challenges of this decade is solving uncertainty, ethical and explainable problems in the thousands of machine learning models we interact with daily. Meta, formerly Facebook, announced the release...

React Hooks from scratch
Post

React Hooks from scratch

Originally posted on dev. What are Hooks React hooks are like Anchor ( same as what ships drop in the ocean to attach the ship and ocean floor) between React state (ocean floor) and life-cycle features ( ship ) of functional components. Only work with function based components, not with class based components. Both arrow...

11 Useful Python One-Liners You Must Know
Post

11 Useful Python One-Liners You Must Know

Originally posted on makeuseof. Python One-Liners can help you perform complex tasks with just one line of Python code. Here are some of the most useful ones to know! Python is known for its short and clear syntax. Due to the simplicity of Python, it’s sometimes referred to as “executable pseudocode”. You can make Python...

Programming in Ruby: A critical look at the pros and cons
Post

Programming in Ruby: A critical look at the pros and cons

Originally posted on searchapparchitecture.techtarget. While Ruby showcases an impressive spread of beneficial features, there are still specific shortcomings that may explain why its adoption numbers have been conspicuously erratic. Since its release in 1995, programmers have used Ruby for both web development and higher-level server management projects. Whether a novice or veteran, Ruby and the...

Python 3.10 is finally adding some much-needed features
Post

Python 3.10 is finally adding some much-needed features

Originally posted on techradar. The next stable version of popular open source programming language, Python 3.10, has been released, bringing with it a host of new syntax and typing features that’ll appeal to long-time developers. Python 3.10 follows the languages’ 30th anniversary earlier this year in February 2021, and though it doesn’t have a long list of new features,...

7 Algorithms Every Programmer Should Know
Post

7 Algorithms Every Programmer Should Know

Originally posted on makeuseof. These algorithms are essential to every programmer’s workflow. As a student of programming, you’ve likely learned plenty of different algorithms throughout the course of your career. Becoming proficient in different algorithms is absolutely essential for any programmer. With so many algorithms, it can be challenging to keep track of what’s essential....

7 VS Code Extensions for Frontend Developers
Post

7 VS Code Extensions for Frontend Developers

Originally posted on dev. As a developer, you’re always looking for cutting-edge tools, tricks, and extensions to improve your productivity and efficiency. Being able to manage your time better is a valuable skill for software engineers. Therefore, here’s a list of Visual Studio Code extensions that help frontend developers (and not only!) to increase their...

My first programming language and early adventures
Post

My first programming language and early adventures

Originally posted on opensource. A student in 1988 in Poland is invited to a computer lab. A few days ago, contributors to Opensource.com were asked to share our personal stories about how we got into programming. Many entertaining and fascinating responses were submitted. It would be interesting to quantify these data in time. Intriguing patterns emerged....

The (Most Comprehensive) JavaScript Design Principles Guide
Post

The (Most Comprehensive) JavaScript Design Principles Guide

Originally posted on dev. The (Most Comprehensive) JavaScript Design Principles Guide As JavaScript developers we strive towards clean, healthy, and maintainable code. We strive towards solving challenges eloquently. While these challenges may each, within themselves, be unique – we don’t necessarily require unique solutions for each individual one of these new challenges we face. If...

5 hidden gems in Python 3
Post

5 hidden gems in Python 3

Originally posted on opensource. Python 3 improved upon Python 2 in many ways; here are some of the most notable. Python has made a name for itself in the world of programming for being easy to learn, easy to read, and reasonably easy to debug. It’s seen as a good starting language because it can...

React is Just Javascript
Post

React is Just Javascript

Originally posted on dev. Let’s start this post with a simple function in Javascript. function App(){ console.log('Hello World'); // logs 'Hello World' } App(); In the above code snippet, the function call on line no 5 calls the App function which outputs ‘Hello World’ in the console. Let’s React! React is simply Javascript. A component defined in React is...

What is “Reflection” in Programming?
Post

What is “Reflection” in Programming?

Originally posted on cloudsavvyit. Reflective programming is a mechanism that lets a process introspective capabilities. The reflection APIs built into programming languages allow you to inspect code at runtime. You can use this ability to learn about the surrounding codebase and its contents. Reflection’s often talked about in the context of object-oriented programming. You often...

Bottle vs. Flask vs. Django – For Python Developers
Post

Bottle vs. Flask vs. Django – For Python Developers

Originally posted on betterprogramming. Know the difference and when to use each of them When it comes to Bottle, Flask, and Django, you’ll usually see only two of them described in an article at a time. However, these three tools help you accomplish similar tasks when it comes to developing web applications with Python. It...

Things you can’t do in Rust (and what to do instead)
Post

Things you can’t do in Rust (and what to do instead)

Originally posted on logrocket. As a moderator of the Rust subreddit, I regularly happen upon posts about developers’ attempts to transpose their respective language paradigms to Rust, with mixed results and varying degrees of success. In this guide, I’ll describe some of the issues developers encounter when transposing other language paradigms to Rust and propose some...

JavaScript Execution Context
Post

JavaScript Execution Context

Originally posted on dev. It is important to view knowledge as sort of a semantic tree — make sure you understand the fundamental principles, ie the trunk and big branches, before you get into the leaves/details or there is nothing for them to hang on to. — Elon Musk on reddit In this article we will take...

An introduction to typeclass metaprogramming
Post

An introduction to typeclass metaprogramming

Originally posted on lexi-lambda.github. Typeclass metaprogramming is a powerful technique available to Haskell programmers to automatically generate term-level code from static type information. It has been used to great effect in several popular Haskell libraries (such as the servant ecosystem), and it is the core mechanism used to implement generic programming via GHC generics. Despite this, remarkably little material...