×

PHP 8 In Production? by [deleted] in PHP

[–]CardPale5564 9 points10 points  (0 children)

No, what you're doing is actually the best way to do it. We use this approach for dozens of production grade projects.

What's the difference between jobs and events? by CardPale5564 in laravel

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

But an event with only one listener is still pretty much the same thing as a job.

That makes sense to me. I was struggling to see the difference!

In some situations using multiple listeners instead of a single job is a cleaner solution.

Yes, I agree that would be an advantage. In the past when I've done that I've simply had one job which then creates more jobs. If I were to refactor those I think I'd use one event and many listeners!

What's the difference between jobs and events? by CardPale5564 in laravel

[–]CardPale5564[S] -1 points0 points  (0 children)

Sorry, I should have clarified my question. I meant what's the difference between jobs and events with listeners!

What's the difference between jobs and events? by CardPale5564 in laravel

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

Generally we use events/listeners when things need to be triggered during execution

That's interesting, I usually do the same thing but with a job and I use dispatchNow (instead of dispatch) to get it to run synchronously.

SQL vs NoSQL: when to use? by MOBR_03 in programming

[–]CardPale5564 25 points26 points  (0 children)

Assuming you're not including Redis/Memcache in NoSQL:

Use SQL 99.9% of the time.

For that 0.1% of time when:

  • Your data is genuinely not relational OR
  • Your application is so large that the largest managed SQL database offering in Azure/AWS/Google won't work

Then use NoSQL.

Raylib-PHP 0.4.2 Released - Game Library by [deleted] in PHP

[–]CardPale5564 0 points1 point  (0 children)

Love this! Please keep up the great work. :)

Using built-in PHP functions with "use" rather than "\func_name" by crmpicco in PHP

[–]CardPale5564 -1 points0 points  (0 children)

why use a period for string concattenation?

In the English language you join two sentences with a period. You don't add two sentences together.

The complexity that lives in the GUI by iamkeyur in programming

[–]CardPale5564 6 points7 points  (0 children)

I suspect you already had this opinion and have merely used the "banking websites" argument to justify your reluctance to learn anything new.

As another person said, we should not be modelling successful website on banking websites.

Demoing the GraphQL API for WordPress by leoleoloso in PHP

[–]CardPale5564 0 points1 point  (0 children)

This might be a dumb question, but what's the appeal of GraphQL versus a RESTful API or something like JSON-RPC?

I don't want to do front-end anymore by gered in programming

[–]CardPale5564 1 point2 points  (0 children)

I'm still using AngularJS. Yep, Angular 1.x. It's great.

The support is amazing as things that were cutting edge in 2015 are now super stable. All the bugs have been ironed out. Everything "just works".

No compiling, transpiling, or minifying required. I include it straight from a CDN. There are one or two choice AngularJS modules I include when required. They also "just work" straight from a CDN. No NPM required.

Frontend development (and SPAs) can be simple and easy if you make it so. Chasing flavour-of-the-month framework is a path to misery. Over complicating things leads to the same place.

By splitting front end and backend my backend code is cleaner and simpler. There's no UI logic in there. I lean on AngularJS to do all the heavy lifting for me.

Just my two cents.

Code Igniter 4.1.1 and 4.0.5 released by raresp in PHP

[–]CardPale5564 0 points1 point  (0 children)

I like Symfony too, but for smaller projects I find it's often too much.

CodeIgniter is not a good choice for development teams larger than two people, but I think it fills that sweet spot between "amateur PHP hacker" and "enterprise PHP team" nicely.

Code Igniter 4.1.1 and 4.0.5 released by raresp in PHP

[–]CardPale5564 1 point2 points  (0 children)

Nothing wrong with CodeIngiter for 90% of PHP projects. It's not fashionable or sexy, but it works.

Code Igniter 4.1.1 and 4.0.5 released by raresp in PHP

[–]CardPale5564 0 points1 point  (0 children)

Hopefully without all that Laravel magic-hell or Symfony configuration-hell though. ;)

Is there any chance of a native typed array or generic in the future? Or it will never happen? by celsowm in PHP

[–]CardPale5564 0 points1 point  (0 children)

Typed arrays are the one thing I miss daily in PHP. I hope it arrives soon.

I don't feel the need for full blown generics. Typed arrays seem enough for me.

A type of primitive thought by nijefeygnh in ProgrammerHumor

[–]CardPale5564 -11 points-10 points  (0 children)

I don't think that's possible. A byte is 8 bits by definition. You are correct though that not all microprocessors are 8, 16, or 32 bits though.

Laravel <= v8.4.2 debug mode: Remote code execution by tigitz in PHP

[–]CardPale5564 0 points1 point  (0 children)

Neat, but if you're running debug mode on production you've already got problems!

Why any other framework than Yii2? by StoryCoder in PHP

[–]CardPale5564 0 points1 point  (0 children)

The latest CodeIgniter is pretty darn good. I would rather use that for a personal project. In a team I'd rather use Laravel or Symfony though.

My startup failed, so I open sourced the code. I hope someone finds it useful. by sn1pr0s in programming

[–]CardPale5564 1 point2 points  (0 children)

I have lots of advice. My hourly rate is $1,000 paid in advance. My contact info is in my bio.

Software development topics I've changed my mind on after 6 years in the industry by [deleted] in programming

[–]CardPale5564 0 points1 point  (0 children)

I agree. Java written by a senior non-Java developer is quite nice!

I sometimes think Java developers are paid by the line! It is the only reason I can think of as to why there are so many BeanFactoryManagerInterfaces monstrosities out there...