Open in app

Sign In

Write

Sign In

Bruce H. Cottman, Ph.D.
Bruce H. Cottman, Ph.D.

1.6K Followers

Home

About

Published in

Better Programming

·Pinned

Forty-Seven Best Practice Refactoring Techniques for Better Python Code

Techniques and code snippets culled from my colleagues for Python documentation, coding, testing, verification, and continuous integration — I’ve pulled together these forty refactoring techniques from colleagues with whom I have learned a lot of advanced software engineering over many years. The programming journey has been in multiple languages on multiple projects for over thirty years. There are before and after Python code examples that apply each technique.

Python

11 min read

Forty-Seven Best Practice Refactoring Techniques for Better Python Code
Forty-Seven Best Practice Refactoring Techniques for Better Python Code
Python

11 min read


Published in

Better Programming

·Updated May 10

Successful Object-Oriented Programming (OOP) in Rust: Mastering Five Critical Concepts From Python

Let’s closely look at the defining traits of Python’s object-oriented programming and assess how they match up with the Rust language. We will utilize Rust’s inherent strengths to identify solutions for OOP behaviors. So strap in and prepare for my journey into Rust and object-oriented programming! — In object-oriented programming, the definition of OOP remains a contentious topic, with numerous computer languages vying for acceptance.

Python

21 min read

Successful Object-Oriented Programming (OOP) in Rust: Mastering Five Critical Concepts From Python
Successful Object-Oriented Programming (OOP) in Rust: Mastering Five Critical Concepts From Python
Python

21 min read


Published in

Better Programming

·Apr 18

Optimizing My Rust Development Environment

We were commanded by the powers that be for our team to be the "guinea pig" that migrates to Rust. My approach entailed configuring various tools I liked as a Python developer for my Rust Development Environment (RDE). I was surprised when the other team members incorporated many of my RDE approaches. I am sharing the details with you. — It would be a very dull world if all used the same name for the same concept.

Rust

14 min read

Optimizing My Rust Development Environment
Optimizing My Rust Development Environment
Rust

14 min read


Published in

Geek Culture

·Apr 9

ChatGPT Spokesperson Reveals Bold Investments in Three Game-Changing Technologies

Sam Altman is known as the CEO of OpenAI, the company famous for the breakthrough Artificial Intelligence tools GPT 3.0, GPT 3.5, and GPT 4.0, all iterations of ChatGPT. He is also funding other disruptive energy and life extension technologies with one common theme: scaling. Sam Altman was born in…

ChatGPT

7 min read

ChatGPT Spokesperson Reveals Bold Investments in Three Game-Changing Technologies
ChatGPT Spokesperson Reveals Bold Investments in Three Game-Changing Technologies
ChatGPT

7 min read


Published in

Geek Culture

·Mar 21

Eight of my favorite Blog Picture Editing, Drawing, Sketching, and Animation Tools

As bloggers, we know that the quality of our content hinges on the power of its accompanying visuals. …

Productivity

7 min read

Eight of my favorite Blog Picture Editing, Drawing, Sketching, and Animation Tools
Eight of my favorite Blog Picture Editing, Drawing, Sketching, and Animation Tools
Productivity

7 min read


Published in

MLearning.ai

·Mar 1

Improve Your Exploratory Data Analysis for Tabular Data: Part 1

I discuss why I went from five to two plot types in my preliminary EDA. I also have created a Github for all code in this blog. The GitHub repo contains three function tools you can use immediately in your EDA. For many years, I analyzed data using static plots…

Python Programming

17 min read

Improve Your Exploratory Data Analysis for Tabular Data: Part 1
Improve Your Exploratory Data Analysis for Tabular Data: Part 1
Python Programming

17 min read


Published in

Geek Culture

·Jan 18

Using"pyenv vitualenv" For Those Tired of Struggling with Python Virtual Environments

In this blog article, we'll walk through the use of pyenv and pyenv vitualenv. These tools make it easy to manage multiple versions of Python and their packages on the same system. However, pyenv and pyenv vitualenvare very powerful. I got into a lot of trouble. I show you how…

Python

11 min read

Using"pyenv vitualenv" For Those Tired of Struggling with Python Virtual Environments
Using"pyenv vitualenv" For Those Tired of Struggling with Python Virtual Environments
Python

11 min read


Published in

MLearning.ai

·Jan 7

Six Steps to Automate Kaggle in Python for Safe and Fast Submissions

I show you the Python code for the six steps of a Kaggle lifecycle automation, from getting the Kaggle key to dataset download to submitting the solution. Account Automation Setup You need to perform these first four steps to set up your client platform for automating your Kaggle submissions. Step 1. Get a Kaggle API key. First, you need a…

Python

4 min read

Six Steps to Automate Kaggle in Python for Safe and Fast Submissions
Six Steps to Automate Kaggle in Python for Safe and Fast Submissions
Python

4 min read


Published in

Better Programming

·Jan 2

9 Python @dataclass Best Practices To Improve the Development Process

An exploration of the benefits of @dataclass — Why @dataclass? My first language was FORTRAN, which is more or less unusable for distributed computing because of global variables. I vowed back then to avoid global variables if I could. I adopted object-oriented (LOOPS — Lisp Library) for its ability to encapsulate data states. Passing all the data encapsulated was accomplished…

Programming

11 min read

9 Python @dataclass Best Practices To Improve the Development Process
9 Python @dataclass Best Practices To Improve the Development Process
Programming

11 min read


Published in

Better Programming

·Dec 15, 2022

The Best Way We Create and Manage Multiple Versions of Python

A complete setup guide for pyenv — We have tried installing Python using the native environment, Docker containers, venv, and pyenv. We decided to use pyenv and virtualenv. I will tell you why pyenv was best for some configurations in our environment. pyenv is a tool for managing different versions of Python virtual. I learned about pyenv when one DevOps staff told me about it. We researched and…

Python

7 min read

The Best Way We Create and Manage Multiple Versions of Python
The Best Way We Create and Manage Multiple Versions of Python
Python

7 min read

Bruce H. Cottman, Ph.D.

Bruce H. Cottman, Ph.D.

1.6K Followers

I write my blog utilizing decades of experience in investment, programming, and data science.

Following
  • PCMag

    PCMag

  • Christine's Adventures

    Christine's Adventures

  • Tim Denning

    Tim Denning

  • Jesus Rodriguez

    Jesus Rodriguez

  • Dr. Samantha Rodman Whiten (Dr. Psych Mom)

    Dr. Samantha Rodman Whiten (Dr. Psych Mom)

See all (108)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams