Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks) header
Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks) profile picture

πŸ‘¨πŸ»β€πŸ’» Senior Front End Developer / Enthusiast. Often seen tweeting about #JavaScript, #TypeScript, #Angular, #React and any words of wisdom I have to offer πŸ¦‰

UK
Joined November 2015
Photo by Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks)Photo by Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks)Photo by Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks)Photo by Thomas Maddocks πŸ‡¬πŸ‡§ (@ThomasMaddocks)
πŸ“― Anyone remember a coding challenge where you were tasked to swap two variables with as little code as possible? I don’t know about everyone else, but I find ES6+ encourages me to be more creative πŸ–Ό #javascript #typescript #CodeNewbie #coder #webdevelopment #100DaysOfCode
8
1
16
πŸ‘ŠπŸ» it’s great see so many people learning to code. You’ve all massively inspired me since I’ve been on Twitter πŸ’ͺ🏻 πŸ‘¨πŸ»β€πŸŽ“ I’m also learning more things than ever! Learnt about location.assign today πŸ₯³ πŸ‘πŸ» KEEP IT UP EVERYONE πŸ™ŒπŸ» #javascript #TypeScript #CodeNewbies #100DaysOfCode
5
8
No problem. I voted wrong. I’m a 4 space kinda guy πŸ‘ŠπŸ»
πŸ₯Š ready for the next dev battle❓ πŸ‘‡πŸ‘‡πŸ»πŸ‘‡πŸ½πŸ‘‡πŸΏthis weekendπŸ‘‡πŸΏπŸ‘‡πŸ½πŸ‘‡πŸ»πŸ‘‡ what’s your preference on code indentation? πŸ€” thanks for the idea πŸ™πŸ» @ThomasMaddocks #codestyle #100DaysOfCode #CodeNewbie #freeCodeCamp #javascript #webdeveloper #coding #developer #Python #Java #golang
35%🟒 2️⃣ spaces
13%🟑 4️⃣ spaces
52%🟠 ↔️ tabs
0%πŸ”΄ ⬅️ all left-aligned
31 votes β€’ Final results
1
2
Thomas Maddocks πŸ‡¬πŸ‡§ retweeted
Replying to @telmo
I'd arrange and put the happy path last, and all the errors first: func getUser() { if (!user) { return "nada..." } return user } I think, this way the code is much easier to read and you can easily see the exception conditions "intended" to the right.
10
11
213
I shall be using this all the time from now on. Thanks!!! πŸ‘ŒπŸ»
1
πŸ‘ŠπŸ» You learn something new every day. I would have been looking at window.onBlur / window.onFocus xitter.cf/telmo/status/125047182…
πŸ’‘ When I build components, I try to make my inputs / outputs use concretes wherever possible, because: βœ… Concretes help abstract implementation βœ… Primitives are obscure βœ… Components become more reusable #100DaysOfCode #javascript #TypeScript #angular #webdevelopers #coder
1
7
☒️ An Angular CustomerList component with a delete EventEmitter which emits a string: ❌ Is the string an ID? First Name? ❌ Consumers are forced to use this ❌ The component is aware of logic higher up in the stack ❌ A Customer type would be more describing than a string
Typical that the weather is this nice when we’re all stuck inside πŸ˜… and to make things worse, I don’t have a garden to enjoy it in πŸ˜‚ On the plus side, I’ve learnt a fair amount about SVG animations over the last couple of days πŸ’ͺ🏻 #webdeveloper #website #How2020CouldGetWorse
1
1
Thomas Maddocks πŸ‡¬πŸ‡§ retweeted
It's interesting that jQuery still comes up as a requirement these days. It's pretty outdated. If you need it for this particular job, of course, you need to invest some time learning it - but I wouldn't spend too much time on jQuery in general.
1
1
1
I’m going to use this analogy from now on, it’s absolutely spot on πŸ‘ŒπŸ»
I'm jumping between 2 projects: 1. React in JavaScript 2. React in TypeScript The difference: In JS, I spend more time in the browser resolving runtime bugs. In TS, I spend nearly all my time in the editor. Once it compiles, I'm typically done. πŸ™‚ #reactjs #typescript
1
Thomas Maddocks πŸ‡¬πŸ‡§ retweeted
πŸ€•nested ternaries: just because u can doesn’t mean u should πŸ›‘ the ternary operator is useful, but nested ternaries are a horror πŸ§›β€β™‚οΈ to read πŸ‘‡ (condition) ? truthy : (condition) ? truthy : falsy; #100DaysOfCode #CodeNewbie #freeCodeCamp #javascript
8
21
❓Today I've been doing some automated form filling with Puppeteer. I find it so more reliable than Selenium. The flakiness that everyone seems to complain about doesn't seem to be there. Any thoughts on how it compares to Cypress? #javascript #TypeScript #100DaysOfCode
6
2
πŸ“Š What do people struggle with the most when it comes to development? Or drop a comment below if you’ve got some alternatives I’ll be using this to help guide the content of upcoming tweets πŸ˜€ #JavaScript #TypeScript #reactjs #AngularJS #100DaysOfCode #Software
43%Architecture
0%Syntax
14%Staying up to day
43%Career path
7 votes β€’ Final results
3
2
Would love to see more of this adopted. This pandemic is hopefully opening the eyes of a few bosses to the benefits of remote working.
CEO of a 400+ employee business says WFH is working well, he may not renew his SF lease to save $10m a year (office + lunches etc) and instead do a couple of all-hands offsites a year (much cheaper). Lots of others must be thinking similarly- CRE could be permanently altered.
3
πŸ™ŒπŸ» As developers, we’re lucky with the tools we have making our lifes much easier. πŸ’‘Take Redux ... I would never have imagined being able to represent user interactions as an array of objects. What a concept! #javascript #TypeScript #angular #react #CodeNewbie #100DaysOfCode
3
5
No more need for RestClient etc πŸ‘πŸ» it’s about time.
This post is from an account that no longer exists. Learn more
🧐 Imagine if your components didn’t have tests. Wouldn’t you feel guilty putting logic inside of them? βœ… Components should be as dumb as possible. It makes them much easier to reuse. βœ… Use facades with containers. #JavaScript #Angular #reactjs #codenewbies #100DaysOfCode
3
2
As developers, the first thing we should do is aim to find a solution. Once we’ve found one, only then should we refactor and improve it. If we instantly go looking for the β€œperfect” solution, we’ll probably struggle to find any solution at all. #100DaysOfCode #Software
1
2
4