Add the draft for my javascript blog posts.

This commit is contained in:
Dave Smith-Hayes 2024-12-11 02:32:08 +00:00
parent 02c7cfc0c3
commit 32179cc1ab
2 changed files with 37 additions and 3 deletions

31
posts/js-for-php.md Normal file
View File

@ -0,0 +1,31 @@
---
title: JavaScript for PHP Developers
description: |>
Describing the architecture of Handlers, Services, (Domains), and
Presentation
date: 2024-12-11
tags:
- development
- javascript
- typescript
- PHP
draft: true
---
# Writing JavaScript for PHP Developers
I want to write a blog post about how to approach large server-side JavaScript
projects from the perspective of a PHP developer.
I also want to talk about testing and mocking and how things are more like C
than they are like Java in the JavaScript world.
Classes aren't all that important and are more focused on sharing state between
many functions.
Talk about how the module system essentially creates a bunch of Singletons and
how Factory functions are your key to great design.
TypeScript and why `Type`'s are more valuable than `Interface`'s but why Interfaces
are still super important to reason with.

View File

@ -84,15 +84,18 @@ Eventually all the .NET guys left the company. My boss left the company. I was
put in charge and the first thing I did was deploy an Express.js application to
completely rewrite the service discussed above. I did this because this was
actually faster to do than figure out how the build system (Jenkins, Ansible,
and TeamCity _I think_) and deploy it to our common pattern architecture. It
and TeamCity, _I think_) and deploy it to our common pattern architecture. It
was also a way for me to prove to my new boss that I can get things done and
that moving to slowly remove our reliance on .NET and IIS for our services was
a worthy endeavor.
A lot of my experience up until that point was mostly working in Magento 2,
which is a massive, Enterprisey, PHP application. Modern PHP tends look more
and more like C# or Java as the years go on. So that's where my mind is -
poisoned by web MVC and Enterprise OOP (_tm_).
and more like C# or Java as the years go on. So that's where my mind is at this
time - poisoned by web MVC and Enterprise OOP (_tm_).
So when its time to work on a big backend service for our Production facility,
one that will be the first step