GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EvaRoets/readable-code: This repo contains all the files for the readable-code challenge, part of BeCode's Full Stack Junior Web Developer training.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
experimental.php
experimental.php
 
 

Repository files navigation

Readable code 🔍

Watch the result of this project >> here

🎯 Objectives

  • To be able to make decisions about when and how to refactor less readable code.
  • To be able to adhere to known PHP code standards like PSR12.
  • To be able to think critically about code principles and not follow them blindly.

✔️ Specifications

🌱 Must-haves

  • Have a look at this code and try to understand what it does.
  • Read the following article Jason McCreary on writing clean code
  • Have the code follow a consistent writing standard. For now, we'll roll with the widely used PSR12.
  • Rewrite the file in a way that would improve readability for you.
  • Don't install PHP codesniffer (yet).
  • When you are done, discuss your solution in groups of two.

💡 Tips

  • Don't aim for perfect all the time, aim for good enough / continuous improvement.
  • When refactoring, focus on one section (or one thing) first (e.g. a specific function or clear naming).
  • Work in small steps. Write these as separate to-do's if you like. Test after every step and use small commits when you're sure everything still works.
  • When in doubt what approach is better, think "what would help me to understand this quickly if I see it again a year from now".
  • Be critical: if you think a certain tip isn't beneficial to your code, ignore or tweak it.
  • When getting used to a standard, don't jump to auto-rewrites immediately. Get used to write code following the standard yourself first.

📖 Further reading

  • Base Code field guide (paid, but first chapters are free)
  • PHP code sniffer + (your IDE: PHPStorm, VScode, ...)
  • Code style guide of your company

About

This repo contains all the files for the readable-code challenge, part of BeCode's Full Stack Junior Web Developer training.

evaroets.github.io/readable-code/

Topics

phpreadable-coderefact

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.