Geshan Manandhar Profile picture
Sep 14 101 tweets 27 min read
1/ A software engineer is a solution provider not only someone who writes code or helps to get code written.
#softwareEngineering #webDevelopment #code #softwareEngineer #solution #value #business 101 software engineering realities you must be aware of (esp
2/ Code is one of the ways to reach a solution, not the only way.
All the points at: geshan.com.np/blog/2022/09/s…
#code #noCode
3/ Solutions have value, mainly in terms of money earned or money saved. So the software you write is a path to saving money or earning more money for the business.
#businesValue #value #soluiton #softwareEngineering #webDevelopment
4/ The end users don’t care if you are using Ruby/Node.js/Python/PHP in the backend and React/Vue/Angular/Svelte in the frontend — as long as they can do their job without waiting long it is all good and the company you work for/own makes money.
#javascript #php #nodejs #reactjs
5/ It is much easier to explain difficult software and engineering concepts using analogies. For example, Multiple inheritance/Polymorphism: Horse + Bird = pegasus, #Docker: physical shipping containers #analogy, etc.
6/ The best answer to most of the tech questions is “it depends”, it depends on context, budget, resources, load, etc. -- full blog post at: geshan.com.np/blog/2022/09/s…
7/ Writing readable and simple #code is most of the time harder than writing that one-line clever magic code, it is the great gift of easy maintenance you give another engineer who reads that code or your future self.
#maintainability #softwareEngineering
8/ Deleted code is debugged code. – The best code is the code never written. Less is more.
#softwareEnginering #coding #webDevelopment
9/ Write code that is easy to delete, not easy to extend.
programmingisterrible.com/post/139222674…
#coding #programming #disposableCode #softwareEngineering #webdev

Premature optimization is the root of all evil.
effectiviology.com/premature-opti…
10/ In most cases, software development and delivery will always take longer than estimated.
#softwareEngineering #estiamtion
11/ Don’t follow buzz (twitter) driven development, keep it boring and certain. For a 1000s or millions dollar business, choose boring technology a.k.a boring stack – keep the shiny new things for your side projects.
boringtechnology.club
#boringStack #softwareEngineering
12/ When coding something in addition to the patterns and concepts you know (like #SOLID, Law of Demeter, and others) also think of the request per minute/second the code and data store are expected to handle.
#softwareScalability
13/ First, solve the problem. Then, write the code. - John Johnson
geshan.com.np/blog/2018/12/t…
14/ Do some pair programming even with someone junior to you, one thing is guaranteed both of you will learn something new.
geshan.com.np/blog/2020/06/p…
15/ Get the code working first, then think about optimization, software resilience, and scalability. – a.k.a - Make it work, make it right, make it fast. On that order. - Kent Beck
16/ One of the most important things as a software engineer is to do the smallest possible increment. Even the biggest projects were set up initially, line by line, file by file those became huge with time.
17/ Making sure the code you wrote as a software engineer works in Production is your responsibility, don't throw it over the wall.
18/ Knowing where to stop a task (not let the task become a scope creep) and divide it into smaller parts is important. Basically don’t do yak shaving.
geshan.com.np/blog/2015/07/h…
19/ Think about most Edge cases, document them but implement optimally only after consulting the product owner/product manager. Solving a bug that might happen for 0.01% of the users might not be a priority.
20/ Always be data-driven and not follow Highest Paid Person’s Opinion (HiPPO) method because "data has a better idea".
21/ Focus a bit on personal branding, it is much easier to stand out as a techie as most tech people don’t blog and/or are hyperactive on social media.
22/ Coding is read-heavy, probably there is an 80-20 Pareto principle with 80% reading code and 20% writing code. You read other engineers’ code and your code too before you even add or change a single line of code.
23/ Code reviews will help you grow a lot, even though initially you might think it is a bit painful. It will clearly show you the mirror.
24/ Layering your task into multiple smaller Pull Reqeusts (merge requests) is an art you should learn sooner than later. It helps with better code reviews for the reviewer and your PRs getting merged faster.
geshan.com.np/blog/2020/10/s…
#pullrequests #codeReview
25/ Social media is a huge and toxic time suck, try a social media break. Coming from someone who has been on a social media break for 2 years (LinkedIn excluded).

geshan.com.np/blog/2020/11/h…

#socialMediaBreak
26/ Track your time automatically -- If you can’t measure it you can’t improve it.- Peter Ducker. You can get back lost money but you cannot get back lost time.
#trackTime #trackYourTime
rescuetime.com/ref/631000 (affiliate link)
27/ Do not have negative feelings about any legacy (X+ years old) code bases, they were right for their time when it was created. Maybe the teams/company did not invest in upgrading them due to valid reasons you don’t know about.
28/ Don’t trust the user - always validate the input.
29/ “Be conservative in what you do, be liberal in what you accept from others.” - Robustness principle – Postel's Law. Think of how it would apply to the APIs you design and implement for instance.
30/ Security is everyone’s job and a difficult one. As software engineers, it is best to learn about OWASP top 10 at least and write code to minimize or mitigate them.
#security #webApp #webAppSecurity #webDevelopment #softwareEngineering
owasp.org/www-project-to…
31/ WebAssembly seems to be the next important thing in web development. It would be good to fiddle around with it – me included.
webassembly.org
32/ Working in a product company is different than working in a web agency.
geshan.com.np/blog/2022/09/s…
33/ Even in a product company, working on internal products is not like working on a customer-facing product.
geshan.com.np/blog/2020/09/s…
34/ Similarly, you will need a different mindset when working on a stable product on the critical path used by most of the customers vs a completely new feature not used by customers till now.
geshan.com.np/blog/2021/11/s…
35/ A static website (not even JAMstack) will beat the best web server-powered dynamic website in performance every single day. Go Web 1.0 where you should – for example, a brochure website, it surely does not need WordPress for that 1 “contact us” form.
geshan.com.np/blog/2022/09/s…
36/ Full-stack software engineer is a myth, yes I said it. In the past 15 years possibly I have found a couple of engineers who are truly (almost) full stack. It is basically a backend engineer who can do some frontend or a frontend engineer who can do some backend work.
37/ Generally, there are two types of software engineers, the creators: who will create the “next” web framework (which might be used by 100s of people). The users: who will never make the “next” web framework but will use one of the “popular” ones and add business value...
38/ Build the right thing and build the thing right go hand in hand, but build the right thing first :D. stevesmith.tech/blog/build-the…
39/ A successful organization aiming to run for a long time should not rely on one person. Do the hypothetical “what if the person is hit by a bus?” test, and find other people who can do it. At least this “important” person can go on a proper vacation.
40/ Learn to take a break if you are stuck in a programming problem for more than 15 mins. Take a walk come back and most of the time you will see the solution, it is magic.
41/ Debugging is at times the art of eliminating possibilities. Something it has nothing to do with code and one of the load balancers is not behaving correctly or one node is down. Think outside of the code and try to understand the system as a whole.
42/ Most software has a defined life, things you and I write would need to be rewritten in 5-10 years. Still, I have seen software forced to run on life support systems :). It is more like they will not die than they will run very well. This happens much more often than you...
43/ As a junior or even a mid-level software engineer with 2-3 years of experience, it is perfectly fine to not know things, for instance, Docker. Don’t stress about it, good companies hire language and tech agnostic people for their potential not what they already know.
44/ You can be a software engineer with 5 years of work experience but the things you did in the first year carried on of the next four. Or you can be a software engineer with just 3 years of experinece going from a company doing 100s of requests/day to 1000s of RPM in...
45/ Languages and frameworks have a popularity cycle like the Bayesian curve. What is super popular now may not be popular 5 or 10 years down the line. Look at PHP, Jquery, and Angular for instance. No one can guarantee React will be as popular as now in 5 years.
46/ Never be religious about a particular language or framework. Don’t be an X language or Y framework engineer, be a software engineer focused on providing a solution that generates value (money).
47/ Be strong in the basics, they will weather any language or framework popularly contest.
48/ Learn some fundamental things that will be useful as soon as you need to write any code like Git, how to use the command line (bash), SSH, some SQL, Docker (these days), and these kinds of things that span across the stacks and paradigms.
49/ Learn about the newer standard like Fetch API, Web Components etc. These things are the common factors in this super diverged web tooling landscape.
50/ Within boundaries, do not hammer a screw. If a language is more suited for a solution use that instead of the language you know best or the main language of the company.
51/ Learn at least 2 programming languages, even better if one is strict, and compiled (like Go lang or Rust – even Java/C) and another one that is very dynamic and lenient (like PHP or JavaScript). This will give you the spectrum of programming languages.
52/ Also, learn 2 different programming languages one that runs sync (sequentially) by default like PHP, and another one which can run async (non sequentially) like JavaScript and adjust your mind to sequentially executing code vs promise.all :). Try Go Routines.
53/ It is normal to get lost for hours if not days in new codebases when you join a new workplace.
54/ Your best navigator to a completely new codebase is someone who has worked a lot on it or someone who has worked recently on it. Schedule like 1-2 hour pair programming session and get all the secrets of that codebase.
55/ Relational databases have been used since the 1970s and will be used for the next X decades (fill X on your own). Mongo DB is web scale video from 2010 -- Mongo DB vs MySQL, hilarious but true.
56/ For your start-up and the next great project, your company/team is doing 95+% of the time relational database is able and useful as the main data storage layer.
57/ Relational databases are not designed to be a cache or faceted search, use something like Redis for cache and ElasticSearch for faceted search.
58/ NoSQL databases have their place too, maybe it is not to be the main data store.
59/ SQL is the only language I have used in each job since 2007 and even before that when I wrote my first web app of any sort circa 2000. There are things you can do in SQL without needing to write extra code in another layer. geshan.com.np/blog/2018/12/y…
60/ Testing is easier than debugging.
61/ Some form of testing is better than none be it even smoke testing.
62/ Unit testing takes time, it has a steep learning curve. Still, the benefits you get over time outweigh the time and effort it takes to write automated tests.
63/ If you have never written a unit test, please try it. Also, give Test Driven Development a shot, it is a mindset shift.
64/ While writing unit tests, aim for a high code coverage but don’t run after having 100% code coverage, evaluate the cost and benefit of the highest possible code coverage.
65/ Integration or End to End (E2E) might be a good idea but look at the feedback time it takes. There are only two types of automated tests the fast ones and not-so-fast ones.
geshan.com.np/blog/2016/03/t…
66/ Software deployment is not a release. Use feature flags to control web traffic flow like a tap controls water flow.
67/ Speaking of feature flags, you might not need a fancy feature flag management SAAS. It can be good to have it but executing the feature flag concept with a simple if else is also possible.
68/ Deployment tools will come and go, making the deployment atomic, and easy to rollback is the main catch here.
69/ Your work is not done after releasing it on production and testing a couple of times. If you can set up a dashboard or other way to track the progress for a big feature, that helps the stakeholder greatly. Tweak the definition of done for some tasks, that's fine.
70/ Release early, release often. Also follow that in code, when code works make a commit so that you can go back to that state if needed. en.wikipedia.org/wiki/Release_e…
71/ Move fast break (few) things (behind feature flags) – :) -- Originally attributed to Mark Zukerberg.
72/ DevOps is not a role, it's a philosophy. Everyone should follow the mindset.
73/ Distributed systems will fail, think about making your software resilient than avoiding failure.
74/ To make a software system easily scaleable, the first prerequisite is to make it stateless.
75/ Incidents and downtimes will happen, it is difficult but respond calmly but practically to downtimes or incidents. The main priority is to get the services back and later postmortem.
76/ Yes Kubernetes is very popular but you might not need it, still, you can use containers even serverless with services like Google Cloud Run.
geshan.com.np/blog/2019/11/w…
77/ A great Continuous Integartion (CI) and Continous delivery (CD) culture definitely adds value to the business.
geshan.com.np/blog/2017/08/a…
78/ Always be mindful of Personally Identifiable Information (PII) - never log them, mask them and be careful as the laws around them are getting stricter and fines higher.
79/ You might not have access to a production database which is a good thing.
80/ You see another array of problems at scale. The code and infrastructure that works for 1000 requests per day start breaking at 1000 requests per minute. And yes, scale is very relative to your business.
81/ Infrastructure cost is high for companies, always think about saving cost and being efficient. For example, turn off staging environments from 8 PM to 8 AM, use a serverless database like AWS Aurora for staging, etc.
82/ If a dog is a man’s best friend, logs are software engineer's best friend. Start logging today. The next step for it can be full-on observability.
geshan.com.np/blog/2019/03/f…
83/ Leverage the edge when you can. Think of edge computing as the CDN for dynamic code, not static files.
84/ A new start-up does not need to start with a microservices architecture, divide your monolith when the time comes.
85/ If you do use microservices, don’t code your microservice like a monolith.
geshan.com.np/blog/2018/10/d…
86/ Don’t buy domains you will never use :) for side projects. Use freenom.com if you want free domains.
87/ Have at least one side project with a working URL not just in your head.
88/ Do a side project that can be done by a single person - you. The more people you rope in it becomes more complex and harder to get things done.
89/ Software engineering is a team sport and the team is as good as the least skilled member.
90/ Learn something new when you need it for your job, not because a new JavaScript framework has been released.
91/ In an interview, the acid test question to go forward or not can be to ask the difference between a queue and stack. If the candidate cannot answer that, maybe it is time to stop the interview to save everyone’s time.
92/ Agile is not scrum, using Jira is not agile. Work on your organization's agile maturity. The best measure of working software is end users using it even behind a feature flag.
geshan.com.np/blog/2018/11/5…
93/ A profitable million-dollar business does not need to use Scrum. Even the FAANGs and MAANGs of the world don’t strictly follow Scrum and Agile.
blog.pragmaticengineer.com/project-manage…
94/ Software engineering is about iterative development. If you want a car make a skateboard first and get feedback on that Minimum viable product (MVP).
blog.crisp.se/2016/01/25/hen…
95/ Fast feedback is one of the most important things in software engineering. Be it faster feedback with unit tests, live reload, or even feedback from users about the new feature.
96/ Product managers are either swimming, floating, or drowning. It is a hard job. The same can be said for software engineers.
97/ In software engineering most decisions are always a tradeoff, you have to pick the best tradeoff for the given context and time.
98/ Clear and crisp writing skill is very underrated for software engineers.
99/ Documenting the things you have worked on is one of the best gifts you can give to the next engineer or yourself 6 months down the line. Think of the organization, if you leave tomorrow don’t carry all the valuable knowledge with you put it in as documentation.
100/ Communicating how long it takes to deliver software and updating the stakeholders on why things are taking longer and keeping them satisfied are one of the most difficult things in software engineering.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Geshan Manandhar

Geshan Manandhar Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @geshan

May 26, 2020
How to run your side project for exactly $0 a month -

* Register domain - freenom.com - get a .ml domain and brand It machine learning
* Then use @Cloudflare free plan as a DNS and DDOS protection (unlimited subdomains)
* User @vercel personal plan to host (thread)
* If you want to host your frontend (say react app) use @Netlify for it
* Have a database? Use MySQL free on remotemysql.com
* Do basic project management on @trello
* Code hosting with teams is free on @github
* Enjoy free CI/CD with Github Actions
* Have great code quality with free startup plan on @codeclimate - 4 seats
* If your code is in PHP (vercel doesn't support it) use @GCPcloud Google Cloud Run - $300 gift on sign up and Cloud run pricing is amazing - 2 mil request free.
Read 6 tweets
Oct 6, 2019
How run your product + website for <$10 a year

* Register domain @namecheap
* Host your code @gitlab / @github if small team
* CI/CD pipeline @wercker / gitlab / gcp
* Email @Zoho
* DNS/DDOS protection @cloudflare
* Web hosting - @GCPCloud $300 credit + always free 1 VM
After one year move your app to google cloud functions or cloud run :)
If hosting static website use @github pages with free cloudflare, only domain will cost money. Good for landing pages.
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(