programmer/philosopher/e-acc

Braşov, România
Joined November 2012
Work to Live, Don’t Live to Work
Petru C. retweeted
Computer Science is not science, and it's not about computers. Got reminded about this gem from MIT the other day
Petru C. retweeted
Age like a fine wine
133
67
16
4,745
Petru C. retweeted
#Symfony turns 20! 🥳 Two decades of code, community, and innovation — 20 candles and counting! Grateful for every contributor who’s made this journey possible 🫶 #PHP
8
29
3
243
Petru C. retweeted
The deeper you go into the semiconductor supply chain, the less believable it becomes. > TSMC, a company on a small island, produces over 90% of the world’s most advanced chips > TSMC relies on dutch company ASML for EUV lithography machines > ASML depends on German Company Carl Zeiss, the only firm in the world capable of making mirrors precise enough for ASML’s requirements. > The light source for ASML’s EUV machines is produced by a single company in San Diego. > The photoresists used to print transistor patterns are produced by Japanese firms like JSR and Tokyo Ohka Kogyo. > The ultra-pure quartz needed to make silicon wafers comes entirely from a single mine in Spruce Pine, North Carolina. > The copper and rare-earth materials inside chips are mined and refined across Chile, the Congo, and China. > The specialized gases used in chipmaking, like neon and fluorine, largely come from Ukraine and Japan. > The design blueprints for these chips often come from American companies like NVIDIA, AMD, and Apple, which rely on software tools from U.S. firms like Synopsys and Cadence. Remove any single piece and the whole system collapses.
Petru C. retweeted
This week, Figure has passed 5 months running on the BMW X3 body shop production line We have been running 10 hours per day, every single day of production! It is believed that Figure and BMW are the first in the world to do this with humanoid robots
Petru C. retweeted
Cloudflare ended up DDoSing itself due to React's useEffect hook 🫠
Petru C. retweeted
we really had it all man bootstrap was supposed to win now we have soyjack thumbnails devs telling us we need a server for a header component
Petru C. retweeted
If money couldn't buy me the freedom to work on Omarchy for the sheer love of computers, what good would it be?
Petru C. retweeted
Javascript on the backend was a mistake
Petru C. retweeted
Reality check: 1. Most web apps are just CRUD. 2. PHP + SQL + JS works for many real-world web projects like dashboards, portals, e-commerce, and booking systems. 3. Modern hardware + PHP 8 + OPcache = blazing fast. "PHP is slow" died with 5.x.
Petru C. retweeted
ORMs are great — until you know SQL.
Petru C. retweeted
shut up and USE postgres;
30
5
1
161
The outcome is a decoupled architecture that is simple to test, maintain, and scale. It combines functional safety with OOP structure, creating a professional standard for development IGNORE EVERYTHING ELSE !!! #SoftwareArchitecture #DesignPatterns #CleanCode #SOLID
This structure provides clear benefits: -> Immutable data prevents side effects -> Single-action classes enforce the Single Responsibility Principle -> Constructor injection makes your logic perfectly testable in isolation
Here is how you can build cleaner, robust software: -> Use immutable objects for data -> Use single-action classes for logic -> Inject all dependencies through the constructor
This way of thinking MUST BE GONE! That’s the number one reason why we are in this OOP mess in the first place. There’s just 2 things: 1. immutable data 2. functions that operate in that data
Remember that the data manipulated by an object does not necessarily reside within that object. From the outside, looking in, you are not supposed to know anything about where that data is, or even what form the data takes. The object creates an abstract representation of that data and does not reveal the location, the form, or any other implementation detail about that data.
Replying to @htmx_org
At my job teams work on a lot of SPAs, but my team’s server rendered app that uses HTMX and web components blows them all away performance-wise
Petru C. retweeted
Me getting ready to win another project by telling the client "Don't worry, we won't be using microservices or Serverless, you'll get a nice simple single deployable unit to run with a start/stop/restart button in the Azure console" while the other vendors pitch a k8s "platform"
70
103
19
3,784
This is great!
Hey #PHP, I don't normally market code, I write and leave it on github for you to find. I can be wrong, I'm happy to be wrong. But I believe, with every ounce of my being, that this is going to be important for our survival in the long term. krakjoe.github.io/ort/ #php #ai