Top Tweets for #100daysoftips
#100daysoftips
Tip3 :
While discussing business problem with your team, have two meetings.
Meeting 1 : only discuss problems not solution. Hear every stakeholder and beneficiaries’s perspective
Leave one day gap in between to process info
Meeting 2 : Discuss solutions
#100daysoftips
Tip 2:
Assumptions are the first killer of a thoughtful decision.
List all the assumptions and just kill it one by one by collecting more information.
Do it in your next decision, you will not regret it.
I am giving up on my #100DaysOfTips journey. It was becoming a bit too stressful to post a tweet everyday with a FT job and a baby and much more going on in my personal life. I have a LOT more respect for people who are completing these challenges, you all are inspiring!
If you're building apps on #graphql, save yourself some time and use the magical graphql codegen lib from @TheGuildDev https://t.co/6OLBHmKCaO
#100DaysOfTips #Day18
If you're using @prisma but the query builder feels too limiting, you can always drop you into the db level and write raw query using the $queryRaw method which also lets you type the return value. https://t.co/Nwley4YRpl
#100DaysOfTips #Day17

This one is probably more of a personal preference than a tip. conditional rendering is a powerful tool in JSX but I don't like it much. I prefer splitting them into smaller component which seems much more readable and maintainable to me.
#100DaysOfTips #Day16 #ReactJs

A few js libs that I have been moving away from in favor of better alternative:
1. moment.js ▶️ date-fns
2. lodash ▶️ latest es helpers
3. axios ▶️ plain fetch
4. sequelize ▶️ prisma
5. express ▶️ fastify
#100DaysOfTips #Day15
I love arrays as a datatype and with latest ES methods, they are getting more and more powerful in javascript. Here's an example of how I use the includes method to trim down equality checks.
#100DaysOfTips #Day14 #Javascript

If you need an empty array of certain length (n) in js, Array.from({length: n}) will build it for you. It's one of those things that looks like it should work but still surprising to see it works.
#100DaysOfTips #Day13 #Javascript
I used to pull in lodash in ALL of my projects as soon as I started them. Nowadays, a lot of the lodash utilities can be done via the power of latest JS syntax. Here's an example showing how to replace the omit method with spread operator.
#100DaysOfTips #Javascript #DayEleven

A very handy hook I use from time to time is the usePrevious hook which lets you look at the previous value of a mutated/state variable.
#100DaysOfTips #DayTen #ReactJs

The .finally() block didn't have good support when promises were first introduced. Nowadays, they work pretty much everywhere and are pretty handy. Here's how you can use it to keep your code DRY in a react component.
#100DaysOfTips #DayNine #ReactJs #RefactoringReact

How many times did you have to tell someone to remove node_modules and reinstall packages, or do it yourself? Next time, use the command `npm ci` which does exactly that.
#100DaysOfTips #DayEight
If you haven't moved over to typescript yet but want to have better autocomplete and type hints, JsDoc can be quite helpful. Check out how I document my express app's controllers.
#100DaysOfTips #DaySeven #ExpressJs #JsDoc

When searching something in a logfile, you'd probably need to see before and after the keyword to get full context. The option -A let's you see n lines AFTER and -B shows
BEFORE the line where match is found. check out `cat file.log | grep -A 9 -B 9 'error'`
#100DaysOfTips #cli
It took me a while before hooks clicked. Since then, one of the things I frequently do is clean up components by putting logic inside custom hooks. Checkout the example below. #100DaysOfTips #reactJs #hooks #refactorReact

When pair programming, you may write some code that provide a good starting point but doesn't solve the whole problem. At that point, if you want to share the changes without having to commit and push, git diff and apply can take care of that. #100DaysOfTips #DayThree #git

With cost vs let war, advocacy for immutability and awesome syntatic sugars in the JS world these days, I see a lot of code that does not take common perf optimization into account when handling arrays. I usually embrace let over const quite often. #100DaysOfTips #DayTwo

I don't like prop drilling and I hate jsx logic soup. Object spreading saves me from both. Here's a quick example of how I use it to make my code look clean.
#reactjs #100DaysOfTips #DayOne

Last Seen Hashtags on Sotwe
Most Popular Users

Elon Musk 
@elonmusk
239.4M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers




