News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite way of getting a web app up ... by _hardwaregeek on Sunday June 03, 2018 @05:35AM (#17218743)
I keep on running into this problem where I try to use a new framework/language for backend, like Go, Kotlin, even Node, but I just get so damn bored with writing the same boilerplate. Say what you will about Rails, but at least the maintainers try to automate the boring parts. Not to mention between Elastic Beanstalk, Heroku and even plain old Capistrano on a VPS, deploying Rails is a breeze. Maybe some people take some perverse joy from writing CRUD operations for the millionth time, but I don't.
Re:Ask HN: What's your favorite way of getting a web app up ... by alfredallan1 on Sunday June 03, 2018 @10:51AM (#17219790)
I’m curious: once one has written a CRUD app, why can’t they use that as the boilerplate for other CRUDs they need to write? Replace the bits specific to each individual app. If the program is designed in a sufficiently modular fashion, shouldn’t this be doable?
Re:Ask HN: What's your favorite way of getting a web app up ... by Larrikin on Sunday June 03, 2018 @03:26PM (#17221249)
That assumes you're allowed to use the code you wrote in a previous project in your new project.
Re:Ask HN: What's your favorite way of getting a web app up ... by alfredallan1 on Wednesday June 06, 2018 @06:41AM (#17245906)
Eh, are you perhaps hinting at that horrible lawsuit where Oracle sued Google(?) for a lot of money for copying about 9(?) lines of code that was basically a looping routine?

That notwithstanding, I was asking about code that could be considered “boilerplate”, not things that could be considered proprietary business logic. So the code to do a login, or check for cookies, or get something from a db, or anything of that sort should be broadly reusable (for a general CRUD app).