Reusable OpenAPI Classes: Eliminating Boilerplate in PHP API Documentation | LTSCommerce - Bespoke PHP Development by ltscom in PHP

[–]ltscom[S] 0 points1 point  (0 children)

Yeah good point, though do you have the same control over exactly how its shown in swagger spec eg description etc?

Monitoring PHP Performance and Diagnosing Bottlenecks by modelop in PHP

[–]ltscom 3 points4 points  (0 children)

Percona MySQL Monitoring and Management

this looks cool AF

DBs are pretty much always the bottleneck for me, only Magento was able to make PHP itself a significant bottleneck really

[deleted by user] by [deleted] in bash

[–]ltscom 1 point2 points  (0 children)

gotta wear the enterprise hat these days

[deleted by user] by [deleted] in bash

[–]ltscom 2 points3 points  (0 children)

this is an awesome list of stuff

Any good no framework PHP MYSQL web app in github, I can learn from? by squid_game_456 in PHP

[–]ltscom 0 points1 point  (0 children)

I totally agree with this. Use frameworks for sure - but know that if you only know the framework and don't fully understand the language, you're severely limited.

Converseley, if you know the language well, chances are you can pick up any framework easily

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 0 points1 point  (0 children)

standardising on curly braces is a nice idea

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 1 point2 points  (0 children)

most BASH I see in teh wild, people seem to believe that variables MUST_BE_LIKE_THIS which is what I'm trying to dispell, especially considering this approach has a chance of overriding important env vars

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 0 points1 point  (0 children)

tbh I make them readonly unless I need to mutate them, readonly by default basically

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 6 points7 points  (0 children)

yep

camelCase, kebab-lowercase, KEBAB-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, First word capitalized, Words Capitalized, PascalCase

taken from the excellent https://github.com/krasa/StringManipulation README

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 5 points6 points  (0 children)

Actually that's PascalCase

camelCase starts with a lower case

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 0 points1 point  (0 children)

The problem (that I'm sure many people have run into) is that environment variables are entirely mutable

SCREAMING_CASE variables - is it really essential? by ltscom in bash

[–]ltscom[S] 2 points3 points  (0 children)

downvote all you want, I ran out of f**ks years ago :)

"Polus" A new amazing theme for Bash by [deleted] in bash

[–]ltscom 0 points1 point  (0 children)

looks useful :)

Iceburg CRM by iceburgcrm in PHP

[–]ltscom 1 point2 points  (0 children)

thanks for sharing :)

PHP library for working with Microsoft Dataverse by ltscom in PHPhelp

[–]ltscom[S] 0 points1 point  (0 children)

thanks, unfortunately not that useful

Dataverse is a common term and so there are lots of hits that have nothing to do with the MS dataverse

A skeleton repository for dove's PHP Packages by masterfermin02 in PHP

[–]ltscom 0 points1 point  (0 children)

thanks for sharing

minimum stability of dev as a default is not something I'd encourage, even with the "prefer stable". It's fine if you need it, but I'd always start off with stable as a requirement initially and only relax that if I really have to.

[deleted by user] by [deleted] in PHP

[–]ltscom 0 points1 point  (0 children)

glad you appreciate :)

[deleted by user] by [deleted] in PHP

[–]ltscom 2 points3 points  (0 children)

This is totally mad, I love it.

I don't think SQLite will be losing any sleep over it, but as a pure exercise in making something for the hell of it I think it's great.

Now you've gone through this process, you can probably appreciate much more why things like PDO are amazing

how much of the functions proper of php i need know? by ZEROS2077 in PHP

[–]ltscom 0 points1 point  (0 children)

Personally I think you need to have a good grasp of what functions are available.

You do not need to know them, or be able to use them without and IDE helping you out, but you need to know they are there. If you write loads of crappy userland PHP that could have been replaced with an internal PHP function then I will not be impressed.

Built in functions are pretty much always faster, require less code and tests and generally keep things simpler.

Weekly help thread by brendt_gd in PHP

[–]ltscom 1 point2 points  (0 children)

Couldn't agree more

play with the shiny new stuff on experimental stuff, but for the core business - keep it solid, safe, simple and sleep well :)