Peter Fox

12.1K posts

Peter Fox banner
Peter Fox

Peter Fox

@peterfox

🐘 Laravel & PHP developer helping others gain experience Writer of PHP Rector Rules to make upgrading easier 🔧

United Kingdom Katılım Nisan 2010
891 Takip Edilen2.1K Takipçiler
Sabitlenmiş Tweet
Peter Fox
Peter Fox@peterfox·
I've been asked a few times what's the best way to get started with @rectorphp. I've now got an article to help you get it installed. I'm planning to do lots more so please do tell me the things you want to know! articles.peterfox.me/code-refactori…
English
1
9
33
6K
Peter Fox
Peter Fox@peterfox·
Something to really consider within your work with Laravel. Named parameters are good but equally this could be a problem if you have to refactor lots of named parameters in a major or possibly minor release unexpectedly.
Peter Fox tweet media
English
3
2
14
1.3K
Peter Fox
Peter Fox@peterfox·
@JustSteveKing Yeah, I've got a bit of Japanese down, but my Go is also better 😄
English
0
0
1
32
JustSteveKing
JustSteveKing@JustSteveKing·
@peterfox I mean I'd rather switch to Go than Spanish, but that's because I can read and understand Go 🙃
English
1
0
0
94
Peter Fox retweetledi
Peter Fox
Peter Fox@peterfox·
Software Devs: What would it take you to change language? I often get approached for new roles, sometimes completely outside of my usual domain of PHP. In the age of AI. I'll be honest, I'm less worried about switching over than ever before. Learning new things is now a lot easier, yet I still cling to the idea that I have a niche set of skills that I want to continue growing.
English
4
1
4
619
Peter Fox
Peter Fox@peterfox·
@ErickOtien8886 @MentorWebDev Initially it's good to be full stack, then later on become more specialist. I was very full stack focused but always found PHP and the backend to be where my talent lies.
English
1
0
1
10
O.Eric_MD🇰🇪
O.Eric_MD🇰🇪@ErickOtien8886·
@MentorWebDev Heyy, I started on a journey to become a fullstack developer. Is it worth the grind, I'm currently leaning JS.
English
1
0
1
49
WebDeveloperMentor
WebDeveloperMentor@MentorWebDev·
10 Essential Skills for Every Full-Stack Developer - Version Control Systems (e.g., Git) - APIs and Web Services (e.g., REST, GraphQL) - Data Structures and Algorithms - Error Handling and Debugging - Security Basics (e.g., Authentication, Authorization) - Database Management (SQL and NoSQL) - Command Line Interface (CLI) and Shell Scripting - Continuous Integration/Deployment (CI/CD) - Cloud Computing Fundamentals - Testing and Test Automation
English
4
8
48
1.7K
Peter Fox
Peter Fox@peterfox·
@paulund I do this every year, still sucks compared to the 12k a year we used to have.
English
1
0
0
31
Paulund
Paulund@paulund·
Married? You've got £6,000 of CGT allowance between you. Transfers between spouses are CGT-free. Sell a gain-making asset to your partner (technically transfer it), they sell and use their £3k allowance. Each of you does a bed and ISA with your respective allowances. £6k of gains sheltered tax-free every year.
English
2
0
2
182
Peter Fox
Peter Fox@peterfox·
@dagorenouf My daughter is great. Not an easy life for sure but if you've set things up right it's a lot better than what people tell you.
English
0
0
0
37
Dagobert - Corporate sellout 👔
Man I can't wait to have kids. Why have we been so brainwashed into thinking otherwise.
Ole Lehmann@itsolelehmann

everyone told me having a kid would slow me down but my son is 9 months old now and i feel like my life just started this is my first time reflecting on it publicly. here's everything i've learned so far: 1. everything before feels like a prequel of a movie. like i was living in a draft version of my own life and didn't know it 2. my bullshit detector went through the roof. if something doesn't get me closer to where i want to be or it cuts into time with my son, i just don't do it. zero hesitation 3. i used to spend so much time circling around my own thoughts. overthinking, optimizing, generally self-obsessed. having a kid quietly turns that off. people say you lose yourself when you have a kid. i think that's actually the point 4. being present becomes easy. with a kid you have to be. you can't get sucked into your phone. just sitting on the floor playing and laughing is honestly like a spiritual practice 5. your relationship with your parents changes overnight. you see them as equals for the first time. you realize they were your age or younger doing the exact same thing. suddenly you understand how much they sacrificed and any bad blood just gets a new reference point 6. watching my girlfriend become a mother is one of the most beautiful things i've seen. she wanted this earlier than me. now i feel like a complete idiot for ever doubting it 7. birth and postpartum were scary. she dealt with hormonal depression and it took a while to recover. she's the most upbeat person i know so seeing her like that was rough. my respect for what women go through changed completely 8. i miss one-on-one time with my girlfriend. that's been the hardest part. i sometimes miss the old life. but i wouldn't go back. i would have just kept living the same way forever 9. some friendships just stop working. having a kid makes lifestyle mismatches obvious fast. you only see it once you're in it 10. having a child completely changed why i use AI. it's way more about having time to live and be with my son than about maxing productivity so i can do more. the whole equation flipped 11. building my life the way i did is paying off now. working from home, being self-employed, being able to afford help with cleaning and meals. all of that eats your time like crazy once you have a kid. and i get to see my son multiple times during my workday. just pick him up, play a little, eat together. those moments make a huge difference 12. every time i step into more responsibility it gives me more purpose. running a company, employing people, being a parent. your capacity for what you think you can handle just grows 13. nobody prepares you for how 24/7 it is. it just doesn't stop. it trains your mental capacity in a way nothing else does 14. your motivation for everything shifts. health, fitness, work. stuff that used to annoy me i just do now because i know who i'm doing it for 15. one fear i carry: that i'm spending too much time working on something that won't matter and trading away time with my son. he doesn't care how much money i make 16. everyone suddenly has an opinion on how you should raise your kid. you have to know your values and hold them 17. you start understanding what's actually good for humans. clean food, nature, less screens. for a child you really want all of that to be true. it changes how you think about where and how to live 18. the love is 10 orders of magnitude more than anything i've ever felt. some biological switch flips and you can't understand it until it happens to you. i'd heard people talk about it my whole life but nothing prepares you 19. sometimes in the evening when he's asleep i look at pictures from that day and just feel so happy. and every time i realize how much is still ahead. he can't even talk yet. someone said it's the reverse of losing someone. when someone dies you think about all the things you can't do anymore. with a child every day you realize all the things you're about to experience together 20. a child heals you. i don't need to use the word trauma but something shifted on a nervous system level. 100x'd my appreciation for life even with the sleep deprivation 21. i want my son to look up to me for the values i represent. you can't teach a child anything if you're not the example yourself

English
25
1
49
8.8K
Pradeep Singh
Pradeep Singh@bhanwarps·
@peterfox I made a side project in react(with inertia laravel), now I work a project that is react for frontend, node.js on backend. I copied all the things from laravel, commands, jobs, requests, notifications. All using @cursor_ai
English
1
0
0
49
Ash Allen 🚀
Ash Allen 🚀@AshAllenDesign·
@peterfox Yeah, it wasn't a particularly fun task haha! 😂 It makes me wonder how @spatie_be handles these kinds of updates for all their packages? I wonder if it's automated or if someone's doing them manually?
English
1
0
0
26
Ash Allen 🚀
Ash Allen 🚀@AshAllenDesign·
It's been a busy morning! I've just updated all my Laravel packages to support Laravel 13 (and a few other small updates) 😄
Ash Allen 🚀 tweet media
English
1
1
34
1.5K
Peter Fox
Peter Fox@peterfox·
@aarondfrancis Tbf, invented is a bit of a stretch. Before that I assume buildings just weren't that big. Only over time do projects become more ambitious, and then that structure unfolds. It's like saying someone invented the controllers folder in a web app.
English
1
0
1
217
Peter Fox
Peter Fox@peterfox·
@Shruti_0810 The backend should be PHP and Laravel. Easily the best ecosystem for backend development.
English
0
0
1
48
Shruti Codes
Shruti Codes@Shruti_0810·
What should you learn in 2026? ❯ Front End → JavaScript/TypeScript/HTML/CSS ❯ Backend → Java/Python/Node/C#/Go/PHP ❯ Data Science → SQL/Python/R/Excel/Tableu/Power BI ❯ AI/ML → Python/Java/R/C++/Julia ❯ Mobile App → Kotlin/Swift/Java/Dart/JavaScript ❯ Web3 → Solidity/JavaScript/Rust/Go/Python ❯ Games → C#/C++ ❯ System Programming → C++/Rust
English
2
7
41
2.3K
Peter Fox
Peter Fox@peterfox·
You really do learn something new about PHP all the time on 𝕏 😄 Didn't know about this at all.
Alexandre Daubois@alexdaubois

#PHP has Python's zip(). It's called MultipleIterator. Iterate over multiple arrays in parallel. Same position, all at once. No array_map(null, ...) hack. No manual index tracking. Python got zip(). PHP got MultipleIterator. Since 5.3. Now that's a great finding! Isn't it?

English
1
1
12
867
Peter Fox
Peter Fox@peterfox·
@_newtonjob I just switch off guard. Never found it a useful feature
English
0
0
0
425
Newton Job
Newton Job@_newtonjob·
Is anyone genuinely still defining fillables?
Newton Job tweet media
English
40
3
76
23.4K
Peter Fox
Peter Fox@peterfox·
@henriquepreze It's not even just that. The people who often act like things are free love to introduce more and more redtape, meaning builders have to spend time building to obscure specifications. Reality is everyone takes their cut in some form or another.
English
0
0
0
53