• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Code Specialist

Code Specialist

Code and Programming Blog

  • Home
  • Clean Code
  • Code Principles
  • Code Interview
  • Python

Clean Code

Home » Clean Code
construction worker working on toggle switches

October 25, 2020

Compensating the Switch-Statement in Python
4.8 (8)

Most common programming languages feature the switch-statement, while Python doesn’t. At first glance, you maybe ask why Python doesn’t support such a common and basic control pattern. This post will explain it and show alternatives for the switch statement!

Category iconPython,  Write Better Code Tag iconAlternative,  Clean Code,  dictionaries,  switch

fingers typing meaningful names on a typewriter

July 31, 2020

Meaningful Names
4.7 (3)

Every developer heard this sentence at least once before: “Use meaningful names for your variables!”. As I heard this advice for the first time, I thought: Nothing easier than that! I know the purpose of my variables, accordingly, it shouldn’t be a problem to give them good names. However, after months I read my code again and didn’t understand anything. This post will present a few tips and best practices for writing better names!

Category iconWrite Better Code Tag iconClean Code,  Readability

man typing on a laptop

July 22, 2020

Comments – What you should keep in mind
5 (2)

Comments are one of the first features everybody gets to know when learning a new programming language. They can be useful for describing the functionality of code-segments or giving additional information about some code. There are many good reasons to use comments. However, you should still keep a few things in mind when you write them!

Category iconWrite Better Code Tag iconClean Code,  Comments,  Readability,  Simple is good

July 20, 2020

Do one thing – Not the single responsibility principle (SRP)
4.5 (2)

The “Do one thing” rule for programming is essential to everyone’s clean code philosophy. Learn why and how to apply it.

Category iconCode Principles,  Write Better Code Tag iconClean Code,  Readability,  Simple is good

red lips taunting for a kiss

July 18, 2020

KISS Principle (Computer Science)
4.5 (2)

KISS – an acronym for keep it simple stupid is a rule that everyone should apply to their code to reduce complexity and improve readability as well as maintainability

Category iconCode Principles Tag iconClean Code,  Software Engineering

desert ground as a symbol for dry ground

June 15, 2020

DRY Principle (Computer Science)
4.8 (4)

Do you tend to repeat code over and over again? There are several important reasons besides DRY (Don’t Repeat Yourself) not to do so.

Category iconCode Principles Tag iconClean Code,  Software Engineering

Primary Sidebar

Search

Categories

  • Algorithms
  • Code Interview
  • Code Principles
  • Environment
  • Errors
  • Learn to Code
  • Object Orientation
  • Python
  • Technical Background
  • Write Better Code

Tags

Alternative (1) Announcement (1) Clean Code (6) Code (1) Code Interview Question (2) Code Philosophy (1) Comments (1) Computer Graphics (2) Concurrency (1) Control Characters (1) Data Structures (1) decorators (2) dictionaries (3) Easter Eggs (1) funny (1) Github Actions (1) Marching Cubes (1) Meshing (1) Nice to know (1) Parallelisation (1) Pythonic (3) PyYAML (1) Readability (4) Simple is good (2) Software Engineering (2) switch (1) Syntax (1) Tricks (1) type hints (1) Ubuntu 20.04 (1) Underscores (1) Unix (1) Video (1) Virtualization with Windows (1)

Footer

Recent Posts

  • Decorators in Python
  • New Syntax Features in Python 3.9
  • 5 Ways to Speed Up Python Code
  • Bubble Sort in Python and how to Visualize it
  • Reverse words in a string

Tags

Alternative Announcement Clean Code Code Code Interview Question Code Philosophy Comments Computer Graphics Concurrency Control Characters Data Structures decorators dictionaries Easter Eggs funny Github Actions Marching Cubes Meshing Nice to know Parallelisation Pythonic PyYAML Readability Simple is good Software Engineering switch Syntax Tricks type hints Ubuntu 20.04 Underscores Unix Video Virtualization with Windows

Categories

  • Algorithms
  • Code Interview
  • Code Principles
  • Environment
  • Errors
  • Learn to Code
  • Object Orientation
  • Python
  • Technical Background
  • Write Better Code

Recent Comments

  • Nina on Bubble Sort in Python and how to Visualize it
  • Bhan on Concurrency in Python

Follow Us

  • Facebook
  • Instagram
  • Pinterest
  • Twitter

Quicklinks

  • About us
  • Become a writer

Privacy Policy | Legal Notice | Contact

 

All rights reserved © 2020-2021 code-specialist.com