Interesting, I did something similar but with browser policies on my PC although I just got the LLM to write the json
HN user
lightning19
Thanks I'd appreciate it, I will send you an email once we launch :)
Hoping to launch in the next 2 weeks, we're busy deciding on a name and domain.
I'm taking on Vercel and Render with a zero config cloud hosting platform. So far we have:
- connect your github and deploy from web/cli/vs code/cursor
- static sites automatically detected and deployed on a CDN
- logging
- encrypted env vars
- built in monitoring
- custom domains
- auto deployments from new branches or commits
- multi-branch deployments
not sure if it is cool but, purely out of spite, I'm building a LLM summarizer app to compete with a AI startup that I interviewed with. The founders were super egotistical and initially thought I was not worthy of an interview.
Based on the replies to this I didn't realize how bad we have it in South Africa. I was on call 24x7 for 2 years and was not paid anything for it.
Big ecommerce companies and even global brands like AWS and BMW require 24x7 on call without any compensation.
thanks for this information :)
now would you mind telling me the name of your first pet?
also what’s your mother’s maiden name?
I've been through pretty tough times before and by several strokes of luck + hard work I'm kinda getting back to the path I want to follow in life. The below is what I would tell my teenage/early 20s self:
- Realize that some events are outside your control. If you were screwed over or unlucky in any way you need to move on from whatever happened and focus on what you can change
- Consistency is key. Just show up everyday and work towards your goal, over time you will see some positive results.
- Desire is suffering, if you're chasing a house, car or lifestyle realize that when you get it you'll just want something better. Try to be happy with what you have first.
- Positive reframing, your situation may not be that bad. It probably could've been alot worse right? Maybe your situation will force you to take action and be a better person
- Don't compare yourself to others, no one had the exact same path in life
- Success = working hard and being ready to take advantage when luck strikes
- Workout atleast 3 times a week, even if it's doing a home routine without any equipment
- Just be nice to people you work with, your network is your networth
BMW uses it
Just for fun I wrote this prompt "vercel monopolizes nextjs by only allowing certain features on their platform such as"
ChatGPT4:
1. Incremental Static Regeneration (ISR): This feature allows developers to update static pages at runtime without having to rebuild the entire website. Vercel has optimized its platform to support ISR, making it an exclusive feature for Next.js applications deployed on Vercel.
2. Real-time Feedback: Vercel's platform provides real-time feedback during development, allowing developers to see the changes they make in their code instantly. This feature is exclusive to Vercel, making it a significant advantage for developers using Next.js on their platform.
3. Edge Functions: Vercel offers Edge Functions, which allow developers to run serverless functions at the edge of their network, providing low-latency responses to user requests. This feature is particularly useful for Next.js applications that require server-side rendering and is exclusive to Vercel's platform.
4. Preview Mode: Vercel's platform supports Next.js's Preview Mode, which allows developers to preview draft content changes without affecting the live site. This
-------------------------------------------------------
Claude v1.3
That is not correct. Vercel does not monopolize Next.js or limit features to their platform.
Next.js is an open source framework that can be deployed anywhere. Some key facts:
1. Next.js is MIT licensed and the source code is available on GitHub for anyone to use, modify, and deploy.
2. Next.js apps can be deployed on any hosting provider or infrastructure. This includes:
- Vercel (the creators of Next.js) - AWS - GCP - Azure - DigitalOcean - Heroku - Your own servers, etc.
3. All Next.js features work regardless of where you deploy. This includes:
- Static Generation (SSG) - Server Side Rendering (SSR) - Incremental Static Regeneration (ISR) - API Routes - Image Optimization - Font Optimization
DNS - I use GCP as the domain was purchased with domains.google because I get free email addresses which I can receive and reply to from my personal gmail (e.g. support@saasapp.com). I'm not 100% sure if this setup will work with another DNS provider.
Docker Image - Since I'm running this most of the operation on AWS I use ECR
Thanks :)
I set things up again on the new VM manually. I have a runbook for it, usually takes me 30 mins or less.
To not have any downtime I keep the old VM up and attach a new public IP to the new VM. I then update the DNS records and after a while when the new IP is mapped to my domain I then stop the old VM.
Costs:
Managed Mongodb cluster: $9 but I share it between multiple side projects so let's say $3
API health checks - free! I use digital ocean and fresh ping
Service Desk - free! I use Jira
DNS: Usually $0.3
DB backups: within the free tier on both cloud providers. I have it set to only keep the last x backups so this should always be free
Cron job to run the backup: I have a serverless function for this, still within the free tier
SSL cert - free because I use let's encrypt
Docker image storage costs: <$1
Total ~$9.5
I run a SaaS that makes between $1000-$2000/yr on a $5 VM. My operations are as follows:
On the VM:
- Nodejs + React SSR
- Nginx
- Certbot to manage my SSL cert
- Integrated with Grafana's cloud service (free tier)
Outside of the VM:
- Managed MongoDB cluster
- API health check's every 3 min with email alerts (I use multiple uptime services to check from different regions) - DB backup cron jobs, backups are stored in 2 cloud providers
- Service desk for customer's to send queries/raise issues
- Alerts if CPU/RAM usage is too high (never got an alert for the past 2 years)
I also nuke the VM once a year and re-provision otherwise you have to maintain the OS, do cleanup etc.
Future work:
- Find way to backup my DNS records
- Probably need to monitor the SSL cert expiration in case certbot breaks
- CI/CD
My chosen stack is React (DaisyUI, deployed with cloudflare) + Node (Hapi is batteries included, deployed using GCP cloud run). One benefit of this stack is that there's no cloud vendor lock-in. The only drawback thus far is that Hapi with Typescript is not that well documented and of course higher latency than dedicated infra.
I'm still unsure about what 'serverless' database is optimal (cockroachdb, neondb, planetscale, mongodb) so I went with what my last profitable side project used - mongodb.
At some point I'd like to compare the performance of psql jsonb to mongodb, I've watched some talks a few years ago stating that psql with jsonb outperforms mongodb. I wonder if that's still the case in 2023.
I've experimented with golang before as I wanted something easier to scale than node + minimal dependencies but then I realized I am just writing my own web framework so I settled on Hapijs, it's faster than express and has less dependencies, it was/is run in prod at Walmart.
me too! I would not have got my current job if I didn't randomly check my spam folder. Tbf it was a cold email from a recruiter
how did you know :)
I grew up obsessed with cars, I used to play racing video games almost exclusively, attend car shows etc.
I now work for a large german car manufacturer as a SWE. I cannot afford the cheapest car they make, it is literally more than I make in a year before tax. I don't own car yet and I'm not sure I will be able to afford one in the next 3-5 years. I don't even care that I (a former car nut) works for a car manufacturer when this would've been my dream job as a kid
I recall this from Lex Fridman's podcast, maybe it will help address some of your questions https://www.youtube.com/watch?v=hk6mo-BCkzg
I hope your wife gets better.
when I was messing around with day trading crypto my main strategy was actually to short btc. It was a long ride, I was up 500% on my initial invesment, I then lost 500%, made 50%, lost 50%, finally made 50% again and quit forever. Thankfully I cashed out before FTX went bust. Lessons learnt: - day trading is stressful - I had no idea what I was doing most of the time - if I replaced my shorts with longs I would've likely made 1000% at minimum. Any idiot could've day traded for a profit during the 20-21 boom
Congrats! - this might be a blessing for you just like it was for me.
I had vitamin d deficiency induced anxiety recently. After my first panic attack I was in bad state, won't get into the details but it was by far the worst day of my life. This is how I got through it:
- First ever panic attack (felt like I was going crazy, thought that I couldn't ever work again). Went to doctor and he gave me some pills. This is super important if you're unable to cope with/control your anxiety. Took the pills for 2 days and never had to touch it again.
- After taking the pills I had mental clarity like I've never experienced before. I realized that I must've always had anxiety but just never at this bad.
- Read “The Anxiety Skills Workbook" by STEFAN G. HOFMANN. This got me back to a functioning human being but anxiety was still there.
- Read "Feeling Great" by David Burns. Made more progress, anxiety almost gone.
- Started meditation by watching Yongey Mingyur Rinpoche videos. This has changed my life, the same mental clarity I felt after taking the anxiety pills has returned. My bad habits are going away too.
- I still get anxiety but I can control it now. It's natural for your body to experience. You need to embrace it and not fear it.
off topic but I recently started working with an Israeli tech company and I'm amazed by the culture they have, what about Israel produces such high levels of entrepreneurship?
100%, I did the same thing on my side. If shit really hit the fan I could've lost my job because of this as it was my call to not patch. When I went back to the link provided in the email the self-registration part was removed so I looked like a complete tool over zoom when trying to explain this situation to my boss
FYI 'real' engineering (electrical, mechanical, civil etc. ) do have certification exams in USA and many other countries
Agreed, I'm a mech engineer by education. Saw the writing on the wall half way through my degree and learnt how to code in my spare time. I'm an SWE now, it has literally changed the course of my life, had I stuck with engineering my household would not have an income worthy enough to pay for basic needs + internet. Some of my friends from university are still unemployed, it's so bad that I know someone with a MSc in Engineering working in a mall as a salesman.
Where I live DS pays much more for the same experience the SWE so maybe I am a bit biased on the money side too. But I get you on the models not working thing, I've been there before. Thankfully it was personal projects and not for work. Cranking out CRUD apps does give you some sort of satisfaction I guess although I sorely miss doing math because my background is in engineering. If you have to do algo tests I guess you're in the USA? I've interviewed with companies in EU and Africa and everytime it was just a take home test building something according to spec using specified languages and frameworks. It's not that hard to do. I'm actually doing one right now for a senior dev golang job although I never wrote more than 1k lines of code in golang before lol
Why do you want to move from DS to SWE? I've been thinking of moving from SWE to DS because I don't enjoy the unpaid 24/7 on call support, constant fear of something breaking, having to deal with PM's on my case for the next jira ticket. Also making crud apps is more often then not less mentally challenging then DS.
I work for a large ISP as a software dev and still have to wake up at 11am to fix server issues, I also got called to fix something on Dec 31 while I was on leave. I'd rather be working after hours for myself than for my a-hole boss