
π¨π»βπ» 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
- Tweets118
- Following426
- Followers83
- Likes179
π― 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
ππ» 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
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 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.
I shall be using this all the time from now on. Thanks!!! ππ»
Replying to @ThomasMaddocks @ThePracticalDev
I like this approach:
xitter.cf/rauchg/status/80762671β¦
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
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
Thomas Maddocks π¬π§ retweeted
Replying to @CodesJamber @javascriptd
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.
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
β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
π 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 resultsA lot of it is to do with attitude and mindset, not just code code code. Iβll be forwarding this on π
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
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
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








