Opensource software developer. php & bash, mostly. #blm I am @TheReedyBear

United States
Joined December 2011
My Projects - Git Bent (#git wrapper): tluf.me/git-bent - Code Scrawl (doc gen framework): tluf.me/code-scrawl - Autowire (#javascript framework): tluf.me/js-autowire - pHtml (DOMDocument wrapper): tluf.me/phtml - PHP Environment: tluf.me/php-env
1
2
4
I've been working with #PhadPhp for awhile now & am quite liking it. I need to add a lot of polish & probably better documentation, but after months of work on it, I'm happy it's working well. Unfortunately, as I'm focusing on my local business, my #foss work is dwindling.
1
as a long-time php developer who really likes php, i disagree. I wish i had learned a lower level language long ago. I wish i were well versed in Rust. i wish i were in a more performant language. But I'm also not going to make the switch now or any time soon.
PHP is modern and is one of the best programming languages to learn in 2022. 👍🏻
2
1
But my opinion is not based upon economics. Idk what the job markets are like & PHP may be one of the best for getting hired & it does have a strong community, so there are surely upsides to learning PHP. It just wouldn't be my first choice in regard to the tech itself
backspace backspace backspace or d shift+t period Sometimes my vimming is a little silly & i barely know how to use backspace key when in vim
This form on @bonsaiinc uses a hidden <select> and a #javascript based dropdown. Without js, there are no <options>. With javascript, there are no #a11y features, such as tabbing to inputs or typing the first couple letters of your state. hellobonsai.com/self-employm…
1
1
Added a curl-based Browser to my #php #testing lib. Currently supports GET, POST, file uploads, and can follow `Location:` header. Will soon support cookies. Can send arbitrary headers of your choosing. Responses are well-parsed w/ headers & everything taeluf.com/docs/Unit%20Teste…
almost finished with my local candidacy site! Such excite. It'll be awhile before i open source it, but i plan to eventually.
1
hmmm
⚠️Important question! How should I license Viewi UI? Sponsorware, MIT, or some paid commercial option? Will somebody sponsor my work if I make it free? 🧐 #php #viewi #viewiui
benchmarks are in my monolith repo at taeluf.com/docs/Monolith-src… No blog post or README, but basically it runs the init.php file, then runs each other php file $‌bench_loop times
I just benchmarked my #LiaisonPhp router & found out it's almost twice as fast as nikic/FastRoute. It's 100 loops of creating the router, adding 1,000 routes (patterns pre-generated), then getting the route info for a url. Liaison: 0.37 sec Nikic: 0.64 sec I am excite. #php
I just benchmarked my #LiaisonPhp router & found out it's almost twice as fast as nikic/FastRoute. It's 100 loops of creating the router, adding 1,000 routes (patterns pre-generated), then getting the route info for a url. Liaison: 0.37 sec Nikic: 0.64 sec I am excite. #php
1
1
The pattern i'm using is basically /{param}/uniqid()/ The cachedDispatcher for nikic beats me at 0.30sec, though. & there is other configurability in nikic that might make it faster. There's also more features in nikic's router. Also, suddenly nikic started taking 0.99sec
1
idk why the nikic router started running slower. I don't think i changed the code? All this being said. I'm very happy my router is fast! I hadn't ever compared it to another router & this is exciting to me. & def no shade on nikic/FastRoute! good stuff.
dealing with bare git repos & pulling changes into various sub-dirs to keep multiple branches around on-disk is a pain. Though i added --update-head-ok to my git fetch & that fixed today's bug with my git hooks.
Added an `if` attribute to phad for a simple way to stop a query from executing. There's an existing access attribute for more complex/integrated things. This feature uses `eval()` instead of the built-in code-templating, but whatever. taeluf.com/docs/Phad.%20Php%…
1
1
the access attribute, on the other hand requires you to define a handler in your php code where you setup phad. It's nice, but just not quite what i needed today.
Been steady working on my local candidates site (closed source for the time being). It's going well. I'd share some designs, but i'd need to redact certain information & I don't feel like doing all that Also worked on my business card for it yesterday Might be up for primaries!
Is there somewhere a list of conditional parameters from internal php functions? 🤔 #php
after working thru a problem for a few hours, I finally realized that fixing it was totally easy using the recently introduced conditional parameter and return types within @phpstan github.com/phpstan/phpstan-s… github.com/phpstan/phpstan-s… kudos to Richard van Velzen and @OndrejMirtes
1
1
1
did a small patch to my #php #lexer to support use() statements on anonymous functions taeluf.com/docs/Lexer
The last hour of my work day i usually can't work on my main project. My brain feels fried & i can't make decisions efficiently. Usually i'll switch over to a side project. Sometimes i'll make a video or write a blog post or just read some articles. Sometimes i just "leave" early