Fernando J. Martin (aka Pampa) (@pampawebdev) header
Fernando J. Martin (aka Pampa) (@pampawebdev) profile picture

Sr. backend engineer transitioning to Data Engineer Databases + Infra Currently being part of @2amtech Opinions are my own

Buenos Aires - Argentina
Joined May 2010
Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)Photo by Fernando J. Martin (aka Pampa) (@pampawebdev)
Fernando J. Martin (aka Pampa) retweeted
This is absolutely hilarious I had to pay my electricity bill in Portugal, and to do that I have to go into the national energy company's customer portal to get the payment details cause I need to pay via IBAN But their site is always down, it's been down for days, meanwhile they threaten me by SMS they're ready to cut off my power But if their site is down how am I gonna pay I'm traveling in Brazil so I tried VPN to Portugal, thinking "they couldn't have possibly blocked the ENTIRE world except Portugal from visiting their site, right? riiiiiiight???" And of course they did, with VPN to Portugal the site immediately worked 😂 So the national energy company of Portugal has blocked the ENTIRE WORLD except Portugal from accessing their site, thinking no Portuguese realistically goes outside of Portugal and ever needs to pay their bill abroad Probably some 57-year old manager at EDP thinking "that sounds like a GREAT solution for security" Meanwhile any VPN bypasses that easily What an absolutely bonkers mindset 🤯 Reminds me of companies only opening their website during 9 to 5 opening hours, similarly crazy The tweets about Portugal will continue until morale improves 😂 Funnily enough X wouldn't let me post this tweet, of course for the opposite reason: I had my VPN to Portugal on :D
286
102
37
3,248
346,498
Fernando J. Martin (aka Pampa) retweeted
There's this evergreen joke on software development that goes something like this: "We're done with 90% of the project. Which means we only have the other 90% left to go." It's funny because it's true. It's also why experienced engineers are in-demand: they are the "finishers."
Honest reflections from coding with AI so far as a non-engineer: It can get you 70% of the way there, but that last 30% is frustrating. It keeps taking one step forward and two steps backward with new bugs, issues, etc. If I knew how the code worked I could probably fix it myself. But since I don't, I question if I'm actually learning that much.
18
119
9
1,573
96,790
Fernando J. Martin (aka Pampa) retweeted
💡 Just a quick tip: define every argument of commands as optional and ask for input if they are missing. This way, you don’t need to think about the arguments when running a command. Just run it, and it will ask everything:
2
11
124
5,872
Fernando J. Martin (aka Pampa) retweeted
Me: "Hey Joe! What do you think about modern PHP?" Joe:
10
13
1
146
14,121
Fernando J. Martin (aka Pampa) retweeted
Black Friday just started You can get a 50% discount on all of my books, including: - Domain-Driven Design with Laravel - Microservices with Laravel - DevOps with Laravel - Performance with Laravel Don’t miss out buff.ly/3YXT0IB
1
3
657
Fernando J. Martin (aka Pampa) retweeted
Laravel password validation rules are🔥 There's even an 'uncompromised' that checks the password in the 'have i been pwned' database:
2
24
148
8,220
Fernando J. Martin (aka Pampa) retweeted
📚 If you're a Laravel developer, don’t miss my friend @mmartin_joo books! Covers everything from Domain-Driven Design to Microservices and Performance. 🔥 Free resources: Database Indexing and Common Mistakes in Laravel. Check them out: [martinjoo.dev/books] #Laravel #Web
1
2
4
507
Fernando J. Martin (aka Pampa) retweeted
Oracle owns the JS trademark from the Java days and literally does nothing with it, nor contributes to JS in anyway. Developers can't make "JavaScript" conference they have to use workarounds like just calling it "JS" or calling it ECMAScript, etc
4
5
2
179
9,483
Fernando J. Martin (aka Pampa) retweeted
SQLite has a reputation for being slow but can perform extremely well, especially when configured with PRAGMA commands. @aarondfrancis and I wrote an article explaining what these commands are and what the ideal settings are for most databases: highperformancesqlite.com/ar…
1
13
65
4,751
Fernando J. Martin (aka Pampa) retweeted
The default PRAGMA settings prioritize legacy compatibility with old databases on systems with limited memory and storage, so you should change them. Here's a quick summary of what you can set to improve most databases: 1. Use Write-Ahead Logging for much faster writes & concurrent reads: PRAGMA journal_mode = WAL; 2. Set a Busy Timeout to avoid "database is locked" errors: PRAGMA busy_timeout = 5000; 3. Tweak Synchronous Mode for a balance of speed and safety: PRAGMA synchronous = NORMAL; 4. Boost Cache Size for fewer reads from disk: PRAGMA cache_size = 10000; 5. Store Temporary Tables in Memory for more speed: PRAGMA temp_store = MEMORY; 6. Leverage Memory-Mapped I/O for faster reads: PRAGMA mmap_size = 268435456; Be sure to test each option in your particular environment to see how it affects performance, but these are a good starting point for getting more performance from SQLite. For more juicy tips like this to get the most from SQLite, check out Aaron's excellent course at highperformancesqlite.com/
1
5
142
Fernando J. Martin (aka Pampa) retweeted
We've just finished load testing. 21 billion requests per month. 20ms response times. Zero errors. Each request writes to a database. Using PHP. How much is this going to cost us? Assume a peak of 10,000 req/s.
97
54
8
1,110
490,215
hey @phpstorm, recently installed 2024.2 in Win through winget Just received notification 2024.3 was available and as usual installed it. After restart I was on a fresh installation, missing projects, credentials for datasources, consoles, etc. Upgrading via winget didn't fix.
1
46
Fernando J. Martin (aka Pampa) retweeted
This might actually be my favourite feature of PHP 8.4, such a small thing, but it'll be so great 😅
20
19
7
312
16,106
Fernando J. Martin (aka Pampa) retweeted
🎉Just published the 1st part of a 6-part series called "Building a key-value store" In the series we build a basic Redis clone: - In-memory key value store - AOL and RDB persistence - LRU key eviction policy Check it out
3
2
35
2,572
Fernando J. Martin (aka Pampa) retweeted
I cannot agree more with this thread by Aaron. I believe this more every single year. "By all means, change the world! It certainly needs changing. Just don't trick yourself into believing that worrying about something is the same as working on something."
I don't think I can influence global politics. I don't think I can influence national politics. I can influence my four little kids! I can produce work I'm proud of! Here's my best argument for becoming happier by just logging off:
3
47
9,142
Fernando J. Martin (aka Pampa) retweeted
Imagine a project 8 years from now where you need to debug: - magic setters - standard setXy() functions - property hooks - Laravel v8 style mutators - Laravel v9 style mutators If you need a setter, write a function like this: public function setProp($val string): void {}
2
1
8
758
Fernando J. Martin (aka Pampa) retweeted
The contrast between people who read and those who don’t is going to become pretty stark in the next decade. People already refuse to read short articles! They want education via 30-second sound bites! You can win by just having an attention span. notboring.co/p/read-more-boo…
35
26
9
308
26,037
Fernando J. Martin (aka Pampa) retweeted
I’m not a puppet Elon.. I’m a daughter of two immigrant parents that had to work their ass off to provide for me! I’m a product of welfare, I’m a product of section 8, I’m a product of poverty and I’m a product of what happens when the system is set up against you….But you don’t know nothing about that. You don’t know not one thing about the American struggle…. PS fix my algorithm
Another puppet who can’t even talk without being fed the words. The Kamala campaign has no authenticity or true empathy.
52,361
61,424
9,081
561,640
60,927,370
Uff, qué pelotudo infumable
3
Fernando J. Martin (aka Pampa) retweeted
I’m building a database storage engine for learning and educational purposes. Just started implementing indices. Some great content coming soon
1
5
53
4,388