1,851 karma · joined Jan 3, 2011 (15y ago) · 567 submissions
github: https://github.com/jtreminio FOSS 1: https://github.com/jtreminio/oseg
5.
ASCII Diagrams(asciidiagrams.github.io ↗)
4 points · by jtreminio · 1y ago · 1 comment
comment 1y ago · link · parent
As I've aged my preferences have moved away from dark themes to light themes.
I used to have everything in dark mode: terminal, IDE, sublime text, use Dark Reader Chrome extension.
But I can't see shit anymore. I need light!
comment 1y ago · link · parent
Why aren’t you using feature flags to gate new behavior/functionality?
comment 2y ago · link · parent
For large projects when you get down to it, slim frameworks are simply frameworks where you have to add in components yourself, vs shipping with sane defaults.
Symfony comes with Doctrine, Twig, etc, but you can choose not to use them or even include them.
With slim frameworks if they are built correctly they will have hooks to add these components but you have to choose them and import them and set them up.
I have not worked on a small project in years, and have not bothered looking at slim frameworks in as much time, so my knowledge might be out of date ... but a quick glance through Slim's documentation tells me I'm still fairly close.
comment 2y ago · link · parent
I can (and have!) gone in-depth into my misgivings with Laravel, but it is fine for most projects and teams. It has elevated the average codebase quality throughout the PHP community and introduced many engineers to what PHP can do. Its creator and community have been a large net-positive to PHP as a whole.
I still prefer Symfony:
1) explicit 2) DataMapper ORM by default 3) What I am used to
comment 2y ago · link · parent
``` /* @var array<string, mixed> Variables stored in the context */ private $variables = []; ```
This should be typed as `array` (heck, I'd argue ArrayObject instead) and all your classes should have `declare(strict_types=1);` at the top.
Your `Dumbo\Helpers` classes are basically static mine traps that you are unable to mock in unit tests. Why does `BasicAuth` expose a single static method but then calls a bunch of other static methods? What ends up happening in any class that uses any of your `Dumbo\Helpers` classes will always run whatever code is defined in these helper classes.
I'm unsure where the bootstrapping process begins. What file does your webserver need to call to handle a new request? I am hoping it is within a root-level directory and not at the root level itself. In other words, `/public/index.php` vs `/index.php`. Your quickstart in README.MD makes it pretty clear that you expect the latter, which is highly unsafe. See any number of poorly configured webservers that stop processing PHP for any reason but now show your site's full contents to anyone passing by.
I would strongly argue against _any_ magic in your framework. Specifically, routes: they should be explicitly defined. I still work with a legacy Symfony 1 framework project and I can't tell you how much I detest magic routing. For a modern example see how Symfony 2+ requires explicit route definition. Heck, how it requires explicit everything because magic should be left to magicians.
Your framework seems like it can only handle `application/json` and `application/x-www-form-urlencoded` requests, but not `multipart/form-data`.
Take these as positive criticisms of your work. It's "fine". I wouldn't use it, I would actively recommend against using it, but I would actively recommend against using anything that's not Symfony (or Laravel if I were drunk). I do not think your project is at the "Show HN" level - it is still far too under-developed.
comment 3y ago · link · parent
Someone needs to come up with a better name for this. “Quiet quitting” absolutely does not imply the above meaning… that’s simply work and nothing else.
From the POV of a software developer I’d consider quiet quitting as doing the bare minimum work to not be fired outright and instead placed on a PIP with no intention of surviving it.
You play your cards right and you would basically be paid 6 months for minimal effort, between when performance degradation is first noticed, PIP deployed, and your company Slack access is finally disabled.
comment 3y ago · link · parent
Far be it from me to say a driver can't listen to music while they are at work.
> the vans usually look like they haven't been washed in a month
Good. Washing work vehicles so that they are always sparkling seems like a waste of resources.
> Reminds me of fast food employee who simply hands your meal out the window, no greeting, no thank you, no smile
This is such a weird American fixation. Here, take my money and hand me my burger and receipt, there's no need for a conversation or a fake smile. You don't care how my day is going, I don't really care about yours. Let's keep this transaction professional and solely focused on this exchange of money for burger.
comment 3y ago · link · parent
I don't trust law enforcement to do the right thing. I don't trust that grown adults sworn to serve and protect would act quickly to neutralize a threat that's not against themselves or their loved ones.
I see Uvalde playing out more than once in the future.
comment 3y ago · link · parent
Nothing physical has happened to _us_. I can't stand up and say, "I lost a family member due to gun violence!". I still feel like things are spiraling out of control and there's nothing I can do about it. How do you stop going outside where other people are for fear of a shooting? How do you send your only child to school knowing what's going on?
I hope I can cope and hope that everything turns out OK.
comment 3y ago · link · parent
Tell me again how I am being hysterical. This country is going down in flames and not everyone can see the fire.
comment 3y ago · link · parent
We live in Plano, TX, just a few minutes south of the Allen Outlet massacre.
Yesterday my son texted me at noon "Shooting threat at school" and "It’s a rumor though but a lot of people are leaving anyway".
You can bet your life I was in my car and speeding down the street to get him out ASAP within 60 seconds of receiving the text.
The reality of schools and public life in the USA today means my family not being without a way to contact each other immediately, in real time, is a no-go.
comment 4y ago · link · parent
comment 4y ago · link · parent
In other words, if host UID 1000 runs a container that has UID 100, 101, 102 and they all write files to a mounted volume, it would be great if all file writes were attributed to the host UID of 1000.
Instead, if user namespaces are configured correctly they would attribute to UID 1000, 1001, 1002 on host.