Skip to content

hbgl

A developer blog

  • GitHub
  • dev.to
  • Contact

Month: August 2021

Backend shorts – Use database transactions

Part 2 of series Backend Shorts

Database transactions have many use cases, but in this post we will be only looking at the simplest and most common one: all or nothing semantics aka atomicity.

Continue reading “Backend shorts – Use database transactions”
Author hbglPosted on August 15, 2021October 3, 2021Categories Web DevelopmentTags Backend, Laravel, PHP, Shorts2 Comments on Backend shorts – Use database transactions

Backend shorts – Validate all your inputs

Part 1 of series Backend Shorts

Whenever you are dealing with untrusted data, such as input from a HTTP request, you must validate it thoroughly in the backend of your web application.

Continue reading “Backend shorts – Validate all your inputs”
Author hbglPosted on August 14, 2021September 3, 2021Categories Web DevelopmentTags Backend, Laravel, PHP, Shorts1 Comment on Backend shorts – Validate all your inputs

Recent Posts

  • Constrain your classes with PHPStan
  • PHP now has support for undefined!?
  • Constants are no longer constant in PHP
  • Elegant immutable object pattern in PHP
  • Laravel shorts – Old inputs are still inputs

Recent Comments

  • Aman Pareek on Backend shorts – Use database transactions
  • PHP has support for undefined!? - hbgl on Elegant immutable object pattern in PHP
  • hbgl on Detecting cyclic arrays in PHP – A new approach
  • C. Scott Ananian on Detecting cyclic arrays in PHP – A new approach
  • Backend shorts - Validate all your inputs - hbgl on Backend shorts – Use database transactions

Archives

  • March 2025
  • February 2024
  • January 2024
  • October 2021
  • September 2021
  • August 2021
  • January 2021
  • October 2020

Categories

  • PHPStan
  • Web Development

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

More

  • About Cookies
  • GitHub
  • dev.to
  • Contact
hbgl Proudly powered by WordPress