Latest posts
-
Day 15: TDD & WordPress CS
Introduction to TDD and Its Application in WordPress Test-Driven Development (TDD) is a software development approach where tests are written before the actual code. The process follows a cycle of writing a test, ensuring it fails, writing the minimal code to pass the test, and then refactoring the code while keeping all tests passing. TDD…
-
Day 14: Git Remastered & WooCommerce
What is Git Rebase Interactive? Git rebase interactive (git rebase -i) lets you rewrite commit history in a flexible way. With it, you can: How to Use Git Rebase Interactive Example Workflow Here’s a simple workflow example to squash the last three commits into one: Some other similiar commands: 1. git cherry-pick git cherry-pick allows…
-
Day 13: Testing & Setting Up
Setup WP-Unit Tests: Write Sample Unit Tests: Create Test File: Create a directory named tests in your plugin/theme root. Create a file named test-sample.php inside the tests directory. Create a Test Class: Example class in Run Tests: Execute tests using PHPUnit: vendor/bin/phpunit or just phpunit if you have global composer. Theme Testing: Plugin Testing: Best…
-
Day 12: MultiSite & PHP Unit Testing
Multisite / Network WordPress allows you to set up a network of websites using the same core files but with different login credentials and separate dashboards. Each site is independent of each other but can be managed from one place by the Network Admin (aka Super Admin). Key points: To enable Multisite, you need to…
-
Day 11: WordPress – Customization & FSE
WordPress Customization This built-in tool allows you to make changes to your site’s appearance and see a live preview of your updates. Key Features of the WordPress Customizer: What are Widgets? WordPress widgets add content and functionality to the widget area. The widget area is a pre-defined area by the theme, typically located in the…
-
Day 10: Introduction To WordPress & PHP DocString Comments
What is WordPress? WordPress is a free and open-source web content management software (CMS) that can be downloaded and installed on one’s own server. With WordPress, you can create various types of websites, from a simple personal blog or portfolio site to a full-fledged eCommerce website or a news magazine serving billions of web pages each…
-
Day 9: HSTS, Web and Beyond.
What is HSTS? HSTS – HTTP Strict Transport Security is a security policy mechanism that helps websites against man-in-the-middle attacks such as protocol downgrade attacks (HTTP) and cookie hijacking. Key Features of HSTS: How the web works? Diagram: How the Web Works Key Components: Browser and Rendering Engines While we may observe over a dozen web…
-
Day 8: Web Basics – HTTPs, HTTP, DNS
Domain Name System Domain Name System (DNS) is a critical component of the Internet’s infrastructure that translates human-friendly names, such as rtcamp.com, into IP addresses. How DNS Works Importance of DNS What is HTTP? Definition and Role HTTP (Hypertext Transfer Protocol) is the foundation of data communication on the web. It defines how messages are…
-
Day 7: Development & learning
Process Management Process: Instance of an executing program. Process is a state of a program when executing and loaded in memory (active state) as opposed to application (static state). What does a process look like? Type of state How does the OS know what a process is doing? Process Control Block (PCB) Process Lifecycle CPU…
-
Day 6: JS & OS Concepts & PHP Autoloaders
What is an Operating System? Operating System definition: An Operating System is a layer of systems software that: OS Elements OS Design Principles User/ Kernel Protection Boundary Basic OS services Linux System Calls Task Commands Process Control fork (); exit(); wait(); File Manipulation open(); read(); write(); Device Manipulation ioctl(); read(); write(); Information Maintenance getpid(); alarm(); sleep(); Communication…