
Building @simplesellapp. Laravel, PHP and JavaScript fullstack developer. Elegant code enthusiast. Database expert.
Landshut, Bayern
Joined June 2015
- Tweets811
- Following126
- Followers283
- Likes7.8K
Simon Kollross retweeted
✍️ I've just published “Repositories and their true purpose”
#laravel #php #patterns
muhammedsari.me/repositories…
Simon Kollross retweeted
⚡️ Database Tip
For e.g. a dashboard, multiple queries on the same rows have to be executed to calculate different statistics. However, these queries can also be combined into one query that has to scan the rows only once!
sqlfordevs.com/multiple-aggr…
Simon Kollross retweeted
🗣️ Let’s talk shadows!
Recently, I’ve noticed a few people doing this sort of stroke treatment on containers, buttons and other elements, and it hurts my feelings, lol.
Hey @pie6k! Any plans to add some kind of sensitive data masking feature to Screen Studio? Would be great to record tutorials where you have to enter sensitive information or hide/blur usernames in specific sections of the screen 😊
112
Simon Kollross retweeted
16 killer apps to generate perfect backgrounds in seconds (10X productivity):
Simon Kollross retweeted
⚡️ Database Tip
When doing statistical aggregations by time, you may have e.g. days without data leading to strange results when charting the results. But you don't have to fill these gaps manually with code, the database can do that for you.
sqlfordevs.com/statistical-r…
Simon Kollross retweeted
🔗 Unique jobs and reserving resources on the queue
timacdonald.me/unique-jobs-a…
#php #laravel #queue
Simon Kollross retweeted
I've seen questions about this several times before and I finally found a chance to write about it.
divinglaravel.com/removing-j…
Hey @themsaid! Question regarding batches: Is it safe to add new jobs to the same batch in the `then` method? It seems to work (the batch resumes) but I'm not sure if that's the intended behavior. I want to be sure that it won't be removed without prior notice... 😅
Simon Kollross retweeted
I've always loved how much polish a subtle animation like the one on this Stripe button can add to a UI 😍
Let me show you how to recreate it with Tailwind CSS! 🧵
Hey @JohnMu @googlesearchc! How long does it take until a redirected URL is updated in the SERP? Same content, but permanent redirect to new URL. Waiting for about 9 months now… 🤔
2
Simon Kollross retweeted
⚡ Database Tip
Duplicate rows are created easily by mistake, but can be deleted much easier:
You can in a *single* SQL query specify the duplicate rows to keep and also keep more than one! sqlfordevs.io/delete-duplica…
Simon Kollross retweeted
📝 When avoiding <img> layout shifts, what's best? aspect-ratio, or width & height attributes?
There's some misinformation & misunderstanding around this stuff, so here's a bunch of demos and spec digging to explain how it works.
jakearchibald.com/2022/img-a…
Simon Kollross retweeted
📦 A new smallish @spatie_be package has appeared: laravel-options
github.com/spatie/laravel-op…
This package makes it simple to transform enums, models, states and arrays to a unified option structure.
Blogpost by author @rubenvanassche: freek.dev/2287-introducing-o…
#php #laravel
Simon Kollross retweeted
There's actually a formula for this if you wanted to go a step further —
inner radius = outer radius - distance between outer and inner edge
Simon Kollross retweeted
⚡️ Database Tip
Extending a traditional database schema with NoSQL-like JSON columns can make the schema more understandable. But you should also ensure these JSON documents conform to an expected schema!
sqlfordevs.io/json-schema-va…
Simon Kollross retweeted
Laravel 9.18.0 is out today. Naturally, it has some *fire* features that I think you'll dig. Let's jump in.
First, @timacdonald87 introduced a new method that invokes a closure if cumulative time you spend querying the database during a request exceeds a threshold ⌛
Simon Kollross retweeted
Toyed around a bit with materializing query results as JSON right away within #Postgres (based on typed tables, no JSON(B) columns), avoiding the need for any app-side mapping. Are folks doing this in production? Any recommended write-ups on pros/cons/experiences 🙏?























