Tag: coding

How to Use Python to Reverse a String
Post

How to Use Python to Reverse a String

Originally posted on makeuseof. Either one of these approaches works, so find out which is most suitable for you. Python has many useful string functions, like casefold() which converts a string to lower case. There is no string-reversing function built into the language. However, there are two simple approaches you can use to reverse a...

The Distressed Code Review
Post

The Distressed Code Review

Originally posted on dev. The Problem I had an experience with a company I worked with years ago. Their code-review process was broken. It took weeks or more to get a review completed. It was all done in the name of writing “good code,” but the result was less than effective. What I started to...

Behold, React 18 !
Post

Behold, React 18 !

Originally posted on dev. A new version of React was released on the 29th of March this year. The latest version, React 18, includes some out-of-the-box improvements, including concurrent rending, new APIs, and much more. In this article, we shall go through some of the new features that have been introduced in React v18. What...

11 Bite-Sized Python Recipes You Must Know
Post

11 Bite-Sized Python Recipes You Must Know

Originally posted on makeuseof. These code samples will help you learn about Python basics and solve common everyday challenges. Many programmers like Python for its simple and concise syntax. These Python recipes are small sample programs that you can use to solve common daily problems. Use these easy-to-digest Python recipes and take your coding efficiency...

What are go workspaces and how do I use them?
Post

What are go workspaces and how do I use them?

Originally posted on dev. I previously blogged about generics being added as part of the Go 1.18 release. There was another quality of life improvement that was added with this release called “Go workspaces”. This is what the release notes said about workspaces: In this blog post, we are going to explore what Go workspaces are and...

8 Sweet Treats in Modern C#
Post

8 Sweet Treats in Modern C#

Originally posted on dev. 8 Sweet Treats in Modern C# C# through the Ages Many, many eons ago ✨, C# ’twas but an archaic, OOP focused language. Alas, ’tis no more! Many updates and feature requests later C# has evolved, shedding the object focused shackles of its past, becoming a modern, functional, programming language. Here are 8 🔥 sizzling 🔥 features to...

A Gentle Introduction to Serialization for Python
Post

A Gentle Introduction to Serialization for Python

Originally posted on machinelearningmastery. Serialization refers to the process of converting a data object (e.g. Python objects, Tensorflow models) into a format that allows us store or transmit the data and then recreate the object when needed using the reverse process of deserialization. There are different formats for serialization of data, such as JSON, XML,...

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

26 GitHub Repositories To Inspire Your Next Data Science Project
Post

26 GitHub Repositories To Inspire Your Next Data Science Project

Originally posted on towardsdatascience. Start the new year with this inspired list of interesting code with libraries, roadmaps, and projects to bookmark New tools that improve developer productivity are released every single day in the ever evolving domain that is Data Science. There is a sea of great projects to learn from, and even better...

Understanding Traceback in Python
Post

Understanding Traceback in Python

Originally posted on machinelearningmastery. When an exception occurs in a Python program, often a traceback will be printed. Knowing how to read the traceback can help you easily identify the error and make a fix. In this tutorial we are going see what the traceback can tell you. After completing this tutorial, you will know:...

This puzzle challenge brings joy to the world of code
Post

This puzzle challenge brings joy to the world of code

Originally posted on technologyreview. Thousands worldwide, from San Francisco to Slovenia, are counting down to Christmas with a puzzle-a-day programming challenge called Advent of Code. By midnight on December 1, 2015, when Eric Wastl first launched his annual Santa-themed puzzle-a-day programming challenge Advent of Code, 81 people had signed up. That pretty much matched his capacity...

12 C++ String Methods You Should Master Today
Post

12 C++ String Methods You Should Master Today

Originally posted on makeuseof. Handle strings like a pro with these C++ methods. C++ is one of the most powerful programming languages with the help of its built-in methods to perform operations like sorting, searching, and reversing. These methods cover the ease-of-use drawbacks C++ has when compared to other high-level programming languages like Java and...

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

20 Killer JavaScript One Liners
Post

20 Killer JavaScript One Liners

Originally posted on dev. Hello Folks 👋 This is Savio here. I’m young dev with an intention to enhance as a successful web developer. I love building web apps with React. I have proved my superiority in frontend technologies. Today, I’d like to share 20 Killer JavaScript one liners to make your life easier. Let’s...

How Pros Automate Repetitive Code using VS Code
Post

How Pros Automate Repetitive Code using VS Code

Originally posted on dev. While Programming, you are bound to encounter Repetitive Code, writing which is a complete waste of time. I am not talking about Non-DRY Code, but Essentials Code that is necessary to be written. An example of this would be connecting State/Dispatch to Props using React-Redux. Anyone who has worked on a decent-sized React-Redux project knows how many times you have to write the same...

9 Amazing Things To Do With Python
Post

9 Amazing Things To Do With Python

Originally posted on dev. Hello, buddies! We love python, right? So today we’re going to see some amazing things that can be done with python(you may not know them). Interesting? Let’s start! 1. Google Search with Python Sometimes we get so much into programming that we feel lazy enough to open the browser and search...