Search Results

Results for "functions"

40 articles found

Function blocks in code editor Functions & Modules
1 min read

Functions: Writing Reusable Code

Functions are the building blocks of any non-trivial Python program. They allow you to encapsulate a piece of logic and reuse it without copying and pastin…

Object oriented programming concept Object-Oriented Programming
1 min read

Object-Oriented Programming in Python

Object-oriented programming (OOP) is a paradigm that organizes code around objects rather than functions. Python is an OOP language from the ground up. A c…

Warning signs over code Technology
1 min read

Avoiding Common AI Coding Pitfalls

After many mistakes, I have learned to watch for common AI coding pitfalls. Never trust generated code without understanding it, you might introduce subtle…

JavaScript code highlighting the 'this' keyword JavaScript
1 min read

Understanding 'this' in JavaScript

The 'this' keyword in JavaScript is notoriously confusing because its value depends on how the function is called. In the global context, this refers to th…

Debugging code concept Testing & Debugging
2 min read

Debugging Python Code Like a Pro

Debugging is an inevitable part of programming. The better you are at it, the faster you can fix issues and move on. Python comes with a built-in debugger…

Software testing concept Testing & Debugging
1 min read

Testing Your Python Code with unittest

Testing is an essential part of professional software development. It ensures your code works as expected and catches bugs before they reach production. Py…

A scale heavily tipped to one side with data points Machine Learning
1 min read

The Struggle with Imbalanced Datasets

Imbalanced datasets are the bane of my existence. You have a million examples of one class and only a hundred of the other. The model just gets lazy and pr…