• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Ani's Webdev Blog

A learning diary of website development

  • Home
  • Demo
    • Ajax Contact Form
  • WordPress
  • Front-end
  • Backend

code refactoring

[PHP] Get rid of multi-layered if-else nested conditions

Modified on: July 4, 2020

So after a time learning and practicing, I realized there are some ways to get rid of multi-layered if-else nested conditions.

Filed Under: Backend Tagged With: clean code, code refactoring, php

WordPress: How to make the functions.php less messy

Modified on: July 4, 2020

make functions.php less messy

I have been working with WordPress for a while and one thing that irritates me is that the functions.php contains a lot of codes. This makes the file looks messy and hard to follow. Check out from here some methods to improve this.

Filed Under: Backend, Featured, Wordpress, WordPress Themes Tagged With: clean code, code refactoring, php

Code refactoring: When and How

Modified on: July 4, 2020

In general, code refactoring refers to the process of changing bad codes into cleaner, purposeful, human-readable, reusable code in order to be cost effective, easy to maintain and collaborate, and probably a better performance.

Filed Under: Backend, Featured, Front-end, Wordpress Tagged With: clean code, code refactoring

Primary Sidebar

Hello! My name is Anh. I am a front-end developer in Oulu, Finland. Currently, I work with PHP, HTML, CSS, JavaScript and love writing about them. This blog is my learning diary. Please feel free to join the discussion!

FOLLOW MY BLOG

Thank you for visiting this website! I hope you find something useful here :). Contact me by email: anh@anhkarppinen.com.