Everything is a wrapper
A restaurant is a wrapper of a butcher which is a wrapper of a cow which is a wrapper of grass which is a wrapper of photosynthesis which is a wrapper of the sun
๐จ MAJOR UPDATE on Bangalore Traffic Project!
I am confident of improving Bangalore traffic by 25-30% within a year's time
---
1. Collaboration at Scale
In just 10 days, after meeting the commissioners of BTP, BBMP, CP, Google team, IISC professors, Scientist, Road Engineers, Traffic Related Entrepreneurs. All three newly appointed commissioners were very kind to invite me to showcase existing capabilities AND collaborate to work together. For the first time we are bringing all key public and private players - to the same table.
---
2. Quick Optimization Projects
A) Bangalore Traffic Simulators
Both BTP and IISC have simulation models, which can create millions of re-routing permutations to reduce travel-time (not shortest distance). I have requested the data from Google, Uber, Ola, Rapido, that will make models predict better re-routing. Some of them have confirmed to help. Waiting for others. If the model starts working, we will be able to predict where/when gridlock is going to happen, so we can fix it before it occurs.
B) Fixing Feedback Loop
Govt already has apps, where people can report potholes. I will take ownership of that app, to increase its scope (report illegal parking, broken signal, wrong side driving, water logging, broken vehicle, etc). I will also increase accountability and recognition by showcasing all the complaints lodged AND action-taken (along with time-stamp) publicly.
C) Hyperlocal Rain Predictor
Govt closes the road to do infra/maintenance work, but then it starts raining on that patch of road and work halts. This leads to crazy downtime and traffic congestion. Hyperlocal Rain Predictor project will also allow us to fix drainage issues, even before it happens.
D) Green Wave Signals: Putting traffic lights in sync, so they move vehicles in waves, instead of stopping at every junction. A pilot is already happening, we will analyse the results to see if it makes sense to be done at City level.
---
3. The Vision for India
Many people mentioned in my last post "Bangalore Traffic is an Infra problem", congrats on stating the obvious. If we continue to wait for the infra to become better, then we are merely playing a catch-up game with the West. There is so much scope to optimize current infra, and I would rather focus on that. This is no longer about rants or blaming the system. Itโs about practical optimism - believing that with data, intent, and collaboration, we can improve what feels unfixable.
---
4. Ask from Readers:
A) Continue your support and share/comment. The more you amplify, the more right folks will be able to join us in solving this gridlock. I am in it for the long haul. Are you?
B) Join our WhatsApp Community, where I will regularly post the next-steps. Plus we need more info from each one of you. On which junction/road, you face massive traffic issue. So we can present them to the right authorities. Link to join below in the comment section ๐
#BangaloreTraffic #ForPublicGoodAI #Bangalore
I just posted the first of what will be several chapters about transformers, which in the last year has been the most requested topic for the channel.
https://t.co/j1LMXSor6c
Just cracked the code on serving dynamic assets in #NodeJS for production without external storage!
๐ My latest blog dives into a simple yet effective solution within our existing architecture, ensuring seamless asset management across environments. Perfect for those looking to streamline their deployment process. Check it out!
The link is in the next thread
#WebDevelopment
๐ Just published: "The Essential Guide to Domain Setup and SSL Security" ๐
โ Simplify the process of securing your website with SSL and attaching a domain on #DigitalOcean.
Link to the detailed guide in the next tweet.
Lazy Loading in Next
Next uses dynamic from 'next/dynamic' package
Under the hood, this dynamic function uses 'React.lazy. It's a replacement for it, and works exactly the same way.
With 'dynamic', we can pass a second argument for configuration. One of the config options is a loading component.
When you create a Next.js project, you'll find a 'src' folder with 'layout.js' and 'page.js' files. By default, both 'layout.js' and 'page.js' are set up for server-side rendering (SSR).
Lazy Loading
The idea of lazy loading is to defer loading the JavaScript code associated with a particular component until it's needed.
React uses via the React.lazy() method.
How does this work in Next?
In an SSR context, the first render happens on the server so Lazy loading has no effect on the server.
Lazy loading is explicitly about how our client-side JavaScript is split into different bundles.