Hacker News new | past | comments | ask | show | jobs | submit | notoriousarun's comments login

Do you develop REST API also....?

The fundamental issue is that it binds the server to the client, who must understand HTML structure. It also makes it more difficult to reuse the endpoints in different ways or for new applications.

Returning data and letting the client render it decreases coupling and increases flexibility/testability- you can run unit tests on the client for mock data, and run unit tests on the server to test the desire


I don't use Django but I use Ruby on Rails, and turning a server-side rendered page into an API is trivial. Rails requests automatically understand the format of a request and let you specify what do when a specific kind of format comes in: ie. when it's an html request, render this page, when it's a "js" request, render a jbuilder template. ezpz

whatever frontend framework you're using has really nothing to do with it at all.


Confirmed this is also trivial with Django, have done it to my crud, and even have a view that parses my url router for views and return an openapi definition with a swagger ui.


Do you use Django REST Framework with Web Swagger Console UI?


Nope, I have a view that parses my url router for views and generates an openapi schema, and a view that shows a swagger with it.


Probably the biggest cause of failure is not making something people want.

The biggest reason people do that is that they don't pay enough attention to users.

For example, they have some theory in their heads about what they need to build. They don't go out there and talk to users and say "What do you want?" They just build this thing and then it turns out users don't want it. It happens time and time again.


I have not left the software industry. During full-time assignments. I used to deal with burnout symptoms.

On a break for now...

> This book did a great job of describing my feelings.... https://www.amazon.com/Slack-Getting-Burnout-Busywork-Effici...


"Will Change The Way You Think About Computing."

> Have you read SICP? https://www.amazon.com/Structure-Interpretation-Computer-Pro...



> "Anyone--founders, managers, and executives--trying to break through to new customers can use this smart, ambitious book." -- Eric Ries

> https://www.amazon.com/Traction-Startup-Achieve-Explosive-Cu...




Specialisation is the exception, not the rule.

> Everyone should read "Range By David Epstein" https://www.amazon.com/Range-Generalists-Triumph-Specialized...

> In most fields, especially those that are complex and unpredictable. Generalists, not specialists, are primed to excel.


You shouldn't ask anyone if your business is a good idea. It's a bad question and everyone will lie to you at least a little.

Talking to customers is one of the foundational part of building something useful.

Two books every aspiring startup founder should read.

> https://www.amazon.com/Mom-Test-customers-business-everyone-...

> https://www.amazon.com/Talking-Humans-Success-understanding-...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: