Today we're thrilled to announce our effort to port the TypeScript compiler and language service to native code, gaining a 10x speed boost in build times and editor responsiveness!
https://t.co/zxTchNDMwD
⚡ Database Tip
Duplicate rows are created easily by mistake and can be removed almost as easy: You can in a *single* SQL query identify them and also specify which one to keep!
It is the fastest way you can do it.
You can use Laravel Http’s sink method to download a file and track progress with a callback function. Seamlessly managing downloads and progress reporting in one go. 🚀
#Laravel pro tip:
If you're setting timestamp values from the frontend, use a boolean attribute to proxy values to and from the underlying timestamp column.
Laravel Tip💡: Validate Dates Elegantly
Did you know that when validating dates with Laravel, you can pass strings like "today" or "tomorrow" instead of actual dates? This makes the validation rules much more readable 🚀
#laravel
PHP tip.
If you want to validate if the string is a valid clickable URL, you can use `filter_var()` method with `FILTER_VALIDATE_URL` parameter.
One simplified example is adding the "https://" prefix if the user forgot it.
TypeScript 5.6 Beta is now out with
✔️ Errors on Suspicious Truthish/Nullish Checks
✔️ Iterator Methods like `.map()` and `.filter()`
✔️ Error-Tolerant --build Mode
✔️ --noCheck
✔️ Type-Checking Prioritized by Editor Viewports
and more! Try it today!
https://t.co/c3bpSxgfMw
#PHP Tip
Make use of Laravel's "dot" notation for accessing nested array values. Simplify accessing multidimensional arrays with a single dot-separated string.
also shipping with Pest 3 — laracon us; for those who don't like annotations at all:
✔ not->toHaveMethodsDocumented
✔ not->toHavePropertiesDocumented
How do different programmers treat their wives?
- Java: treats her like an object
- JS: lots of promises but ends up rejecting her
- Python: gives her too much space
- PHP: doesn't know her type, treats her like anything
- SQL: tries to normalize her, ends up in a relational mess