Skip to main content
tdro

Another wandering soul screaming into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by @cdd20.

tdro micro.thedroneely.com view markdown plaintext permalink feb 24 2023 25 sec 76/50 words

Profiling is the nice, cozy, and lazy way to efficiency. There’s something neat about avoiding optimization and having the numbers to prove it relative to an initial baseline. In PHP there’s Xdebug and KCachegrind and I recently saw php-spx in my feeds. A profiler in any language environment with snapshots of performance over time is just — well nice. The terribad situation is not understanding exactly how something became slow. It might be too late then.

#php
tdro

Another wandering soul screaming into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by @cdd20.

tdro micro.thedroneely.com view markdown plaintext permalink nov 22 2022 16 sec 48/50 words

Blade CLI is a nice find. I saw a past iteration of this a while back in nsrosenqvist/blade-cli. Basically, it’s a for kinda rendering blade templates. Don’t ask why..

yaml
name: {{ $name }}
type: {{ $type }}
data.yaml
shell
blade render data.yaml --name="name" --type="type"
#php #programs
tdro

Another wandering soul screaming into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by @cdd20.

tdro micro.thedroneely.com view markdown plaintext permalink oct 11 2022 25 sec 74/50 words

I know of four PHP static site generators.

  1. Jigsaw: Laravel Blade templates. Source Code
  2. Couscous: Twig templates. Source Code
  3. Sculpin: Twig templates. Source Code
  4. Spress: Twig templates. Source Code

The key advantage is obvious: dynamicity “technically” comes for free. Feedback/debugging loops “can” be made instantaneous, and scaling to a large output is probably not too difficult.

One downside is that corporate minded developers and consumers online will think you’re a noob for choosing PHP.

#lists #php
tdro

Another wandering soul screaming into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by @cdd20.

tdro micro.thedroneely.com view markdown plaintext permalink sep 2 2022 17 sec 50/50 words

WordPress has an affinity for back–doored radioactivity. If I can get my way (which is hard), a WordPress install has only 1 theme and 0 plugins.

shell
wordpress/
|-- public
`-- wp-config.php
php
/* Disable installing plugins and themes */
define('DISALLOW_FILE_MODS', true);
wp-config.php
#gists #php

Authors

Web Ring