Yessss! I am now a proud patron of CGP Grey on @patreon, and you should be too: #NewPatron patreon.com/cgpgrey?utm_medi…
How many times do you allow yourself to duplicate code before generalising it ? (utils, commons, abstraction, shared component)
For me it’s three times.
Duplication is fine. No need to over complicate. Generalise only when needed.
#coding
#Productivity tools or apps should not ask to check in (ie log into the app and perform the action)
They should be integrated with other everyday tools (like slack) to remind people to do something and do it directly from the other tool
« Don’t call us, we will call you »
1
Pull requests should always be prioritised above coding as they are closer to deliver value.
If they are not cleared fast, they get bigger as there’s less opportunity to ship code.
You might think they break your flow but not reviewing them blocks another engineer flow!
Testing pyramid has been made with the assumption that end to end tests are slow, difficult to write, unstable.
We have e2e tests that run against live api for each frontend PR. No flakiness, under 5 mins.
They are the best tests as they are the closest to what users do
Test Driven Development is possible for React using Jest and React Testing Library.
I code the entire behaviour of my component without any styling.
And then I apply styling.
It's a great way to decouple test and implementation
jestjs.io/
testing-library.com/docs/rea…
Easy pdf generation in #reactjs with html2canvas.hertzen.com/ and github.com/MrRio/jsPDF
html > canvas > image > pdf
Example:
1
Discovery of the day:
sonarlint.org/intellij
Easy way to spot code issues while coding. Always better to spot issues when coding instead of waiting for a PR to be raised and analysis by sonarqube to be done.
This plugin can also be paired with SonarQube server.
I recommend using nodejs or python for AWS Lambda.
I tested java for lambda and it had two issues:
- Cold start is quite long (7 seconds to initialise Firebase and Sendgrid SDKs
- Need more CPU and memory so more expensive
1
1
Some links that helped me to use java:
- aws.amazon.com/blogs/develop…
- blog.ippon.tech/lambda-execu…
- docs.aws.amazon.com/sdk-for-…
It's too much effort compared to use another language that is more suitable.
1
Hello everybody,
I'm working on a new #SaaS product, an #api to manage scheduled tasks.
I always wished to have a managed solution instead of building my own from scratch.
Head to horologion.launchaco.com/ and feel free to drop any feedback.
When you’re a parent, it still counts as « binge watching » when:
- you get interrupted 5 times
- there’s a period of 2 weeks to 6 months between two episodes/movies
- you keep the sound low to let the children sleep
- you stop the film to go to sleep
What else ?
1
Delete Your Staging Environment flagsmith.com/blog/delete-yo…
Good blog post summarising why you should do testing in production / mono environment for your next greenfield project / startup.
@GetFlagsmith
1
My course completion certificate for "AWS Certified Solutions Architect - Associate 2020" ude.my/UC-196c7867-973e-46f4… via @udemy
Now I need to practice more with practice tests!
btw I highly recommend the course of @acloudguru to prepare the certification
udemy.com/course/aws-certifi…
2
The only way a team could make big changes in a code base without destroying everything is by using #tdd
I'm attending LeadDev Live Summer 2020. A one-day virtual event for engineering leaders
RT if you think others will find this helpful 🙌
live.leaddev.com


