• 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

Hi! I am a Vietnamese coder living in Oulu, Finland. Currently I am working with PHP, MySQL, HTML, CSS, and JavaScript. This blog is my learning diary, in which I share knowledge from my own experience or research. Hopefully you can find something useful here and don’t hesitate to open a discussion or leave a feedback!

FOLLOW MY BLOG

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