HNHacker News
TopNewBestAskShowJobs

djstein

193 karma · joined June 16, 2016

cto primitive.tech steins.studio
submissionscomments
djstein··on Cinder: Instagram's performance-oriented fork of CPython
not trying to throw sympathy here for Facebook, but the team that owned that Python SDK was probably not at all related to the PyCon recruitment booth. Big organization, at least someone was trying to do the right thing
djstein··on iOS 14.5 delivers Unlock iPhone with Apple Watch, new privacy controls, and more
unlock is one thing. turning off security features requires another input of the actual pin passcode.
djstein··on Peloton cuts back on Apple Watch support
can you provide your thoughts on this?
djstein··on Irish webapp to recreate pub atmosphere at home
Reporting no sound when click play on iPhone 12 Pro Safari on iOS 14.4
djstein··on Show HN: Django and React SaaS boilerplate tutorial
I was definitely had the same feeling when writing redux! The separate of actions, types, and reducers is quite nice. You can still replicate these ideas with the Context API if you choose too.
djstein··on Show HN: Django and React SaaS boilerplate tutorial
I would also agree with this. These days we should be steering people to context api and react-query
djstein··on Show HN: Django and React SaaS boilerplate tutorial
This is it. If you can’t connect to your database effectively and safety execute queries + migrations (looking at you people who write SQL queries by hand in Typescript) you’re just writing something that is one key stroke away from destroying your database.
djstein··on Show HN: Django and React SaaS boilerplate tutorial
Look, this argument is always thought provoking, but not worth any devs time to execute. Django/Rails/Spring/.Net have years of combined dev experience. They contain almost all the things every web application needs, with highly adopted off the shelf plugins for everything else. When engineers fall for the trap of Flask/Express/Sinatra/Go they don’t realize they’ll either be a. Writing everything the above frameworks have by hand or b. Cobbling together a ton of different/non related tools that may not be battle tested. In either case they spend time writing features we solved 20 years ago. My favorite example of this is database connections/migrations/translations.

You suggested using nextjs for the backend. This weeks flavor of nextjs database connections is to be done with Prisma. Setting the two up together is no walk in the park. So great, you’ve spent a week setting up Prisma and the layers which connect it to your API. You’ll probably now task yourself with connecting the database to a GraphQL API with a Playground (another week). What about auth? Hand roll of reach some the suggested Auth0 library for nextjs. Another week of integrating. You can see the pattern. Meanwhile, the Django user has everything setup in day one, nextjs app for front end only deployed on day 2, and is building user features day 3.

We haven’t even talked about setting up request middleware, integration with logging tools, distributed tracing, exception aggregators, sending email, scheduled background tasks. Which you can spend another week for each or just go to your battle tested framework of choices’ doc page.

djstein··on GitHub Releases Dark Mode
next up hacker news?
djstein··on Optimizing Your Web App 100x Is Like Adding 99 Servers
have you tried with async Django yet?
djstein··on Eleven Years of Go
This is how I feel. I need to deploy applications not rewrite Django/Rails/Spring/etc (and all the associating tooling) for the hundredth time.

The performance boost argument is a joke when we have horizontal scaling and and multithreading.

djstein··on Ask HN: Go programming language is over ten years old. What do you think of it?
Only a mess if you use python 2, conda, etc... What’s difficult about this?

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...)" curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/maste... | python - brew install pyenv // update shell with pyenv pointer pyenv install 3.9.0 pyenv global 3.9.0 poetry init poetry config virtualenvs.in-project true --local poetry install

For deployment, Docker python3:alpine, install poetry, copy over pyproject.toml and install

djstein··on Advice to my young self: forget side projects and focus on your job
I believe they mean, you have to work either way and most people do as good a job as they can. You can either do this for a no name company or at FAANG. At FAANG, you’ll probably do the same work, maybe a little harder in crunch time, but you’ll find yourself in a far better situation five years down the line for virtually the same effort.
djstein··on Show HN: Pixie, Instant Kubernetes-Native Application Observability Using EBPF
this is really amazing. the marketing page is also top notch from a visual perspective
djstein··on The Failed Promise of Web Components
Agree with you. Not sure what this page doesn’t cover https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in...
djstein··on New Features in the Fish Shell
thanks fish contributors. just upgraded and even simple ls -la is snapper. so excited to have normal environment variable usage
djstein··on Ask HN: Technical skills helpful for building a startup today
Rambling while I drink my coffee:

Tech stack: React + Nextjs (react-query, graphql-generate, typescript), Django (admin panel, celery for background tasks, channels, graphql), Postgres, Redis (for celery and websockets). Postgres in RDS with auto rotating secrets. Deploy as a Django as a Docker image on AWS. Access keys from Secrets Manager at runtime (this is your pre EKS setup). Deploy frontend app on Vercel. Use Stripes newest payments system for billings. Deploy everything via GitHub actions PRs and use Actions, including the new code and dependency checks.

Bam you’ve got a frontend with a busting cache, websockets for automatic updates, ability to do server side rendering, and all the content management systems from the Django admin panel you would have setup by hand with Express/Flask. You can choose to use any method of auth that Django provides or go with Auth0.

Using graphql-generate and Django Graphene you can auto generate your typescript SDK on your frontend. All you have to worry about now is your view code and your models structure.

Using celery and celery-beat will allow you to do long running or scheduled tasks. Connect it with Django channels and push updates from a celery worker to the frontend.

GitHub will keep it up to date and check for security errors with automatic pull requests.

Expansions on this architecture include: - switching to EKS (useful especially for secrets and scale) - Infra as code via Pulumi to switch to any K8s provider - Using RabbitMQ for more robust messages passing over simple Redis queue

djstein··on Django Async: What's new and what's next?
I’ve seen lots of blog posts, even the Django docs, saying async is available but still haven’t seen any real world examples yet. Do any exist?

Also, I still haven’t seen how the async addition will work with Class Based Views. Also, Django Rest Framework is still considering spending time for support. Until these two use cases are viable many users won’t benefit.

djstein··on Next.js 9.5
Can you expand on what the static IPs give you?
djstein··on Show HN: IPOs.fyi – Missing Out on IPOs Was Frustrating, So I Fixed It
don't differentiate, just make it a free trial
djstein··on Tesla Model 3 Drives into Overturned Truck in Apparent Autopilot Failure
should the car have slowed down by itself? yes. was the driver not paying attention and did not have their hands on the wheel? obviously. it is driver assistance, you agree to the terms and conditions, you still have to DRIVE the car.
djstein··on Facebook Novi: Wallet for Libra Digital Currencies
while this may not be a product I endorse, that marking page and is beautiful. Good job marketing + design + frontend engineers who worked on this!
djstein··on The DynamoDB Book: Data Modeling with NoSQL and DynamoDB
thanks for this. I just started creating my first DynamoDB database yesterday
djstein··on Next.js 9.4 – Fast Refresh, Incremental Static Regeneration
so happy for this, been using canary `nextjs` + `now` for all my non work projects

my favorite feature of `now` is environment variables, and `next.js` 9.4 has even better support. so if using `now`, you store your env vars / secrets in your project on https://vercel.com/ in separate buckets for prod, dev, etc

then on your local environment run `now env pull` and get the latest dev env vars populated in `.env` of your project. this is super great for remote teams where you don't have to share .env files via communication channels / ask someone for the latest variable value

djstein··on Amazon Elastic Container Service now supports Amazon EFS file systems
FINALLY!!! edit: thanks a lot ECS team
djstein··on Hasura raises $9.9M to simplify GraphQL
+1 for Django

the Graphene implementation for Django brings up a Relay GraphQL server so fast. The best part is that at compile time it ensures your GraphQL schema confirms to the Relay standard, enforcing correct naming. You really don't have to think about much.

djstein··on Ex-YC partner Daniel Gross rethinks the accelerator
just wanted to say, your landing page is awesome
djstein··on Tesla remotely removed autopilot features from used Tesla without notice
this is definitely not true speaking as someone who just bought a used Tesla from Tesla with all software features
djstein··on What happened to Mint?
Just going to post a great alternative that people over at http://reddit.com/r/financialindependence/ recommend Personal Capital http://personalcapital.com/

I've been using it for about 4 years now. Best money management system I've used in a long time

djstein··on JavaScript Visualized: The JavaScript Engine
nice post!
← PreviousPage 2 of 5Next →