Things I miss about Spring Boot after switching to Go
Posted by Sushant098123@reddit | programming | View on Reddit | 31 comments
Posted by Sushant098123@reddit | programming | View on Reddit | 31 comments
Kendos-Kenlen@reddit
Most of what you miss is having a complete framework with everything you need to actually focus on building your product / app. Having everything ready is the reason I love NestJS because it carries this « batteries included » philosophy that make it much easier to start and build as I don’t have to think too much about what library I should use to achieve common things and instead look what the framework recommends.
oorza@reddit
Moving from Spring to Nest feels like replacing a Bugatti with a Ford Pinto. If you've not tried Spring, but enjoy Nest, you should.
4r73m190r0s@reddit
Why the term "batteries" is used for framework extensions/plugins?
omgFWTbear@reddit
Why is a floppy disk icon used for saving?
WHY DO WE PARK ON DRIVEWAYS BUT DRIVE ON PARKWAYS?
IF WISHBONES GRANTED WISHES DONT YOU THINK THAT TURKEY WOULD STILL BE ALIVE?!
4r73m190r0s@reddit
I'm born in 2011. What is given for you, is history for me.
omgFWTbear@reddit
Almost as if my very first example is the textbook example of the phenomenon you’re invoking.
4r73m190r0s@reddit
There was not justification to yell at me, I think we can agree on that.
omgFWTbear@reddit
Comedic overacting to defuse a situation is a thing. I know you feel bad asking about an easily googled thing and then doubling down here on missing the point, but maybe you can just reflect on the opportunities to learn new things.
xaddak@reddit
https://english.stackexchange.com/questions/384827/what-does-the-idiom-batteries-not-included-mean
nz-whale@reddit
It probably comes from physical electronic products which are often 'batteries not included' i.e. needing to be bought separately. Therefore a 'batteries included' framework includes everything out of the box.
davewritescode@reddit
lmao that email validation regex is going to lead to some fun in your DB.
Worth_Trust_3825@reddit
given how complex email uris can be it's really easier to accept what ever, and try sending an email to that address.
api-tester@reddit
Surely you would at least do some basic checks like no white space and requiring 1 @ symbol right?
Worth_Trust_3825@reddit
Why bother?
masklinn@reddit
It tells users they've made an error upfront (e.g. they might have pasted stuff into the wrong field). Checking that there's 1
@and a .after that will catch most errors and reject basically no valid email (it will reject TLD-only email, and that's completely fine, hell IIRC such emails can use a terminating.` anyway so even that will work)Worth_Trust_3825@reddit
You're already showing that "we've sent mail to [obviously wrong inbox]. make sure to check your spam". There's no need to check for actual validity because what ever you will check for it will be wrong.
masklinn@reddit
Nobody with a shred of sanity sends emails synchronously.
grabthefish@reddit
Whitespace and multiple @ symbols are allowed in an emailaddress if it's between double quotes
Uristqwerty@reddit
I'd say it's better to accept a sane subset of emails that can be easily validated. Because somewhere in your system, a human's going to be exposed to it, and humans aren't fully-RFC-compliant parsers either. Then try sending to it.
davewritescode@reddit
I did a stint at an ESP early in my career and this comment is giving me mild anxiety
lupercalpainting@reddit
I’ve advocated for the, “Accept whatever, send an email and see if it bounces back” approach. What I’ve heard is that to fully comply with the spec you have to build a fairly complex state machine.
Is your solution to just cover 90-95% of cases?
Sn00py_lark@reddit
Email string
json:"string"BlueGoliath@reddit
Enums?
Worth_Trust_3825@reddit
Just skimming through your post it is very obvious that you have no clue what you are talking about, nor you know what makes up spring to give you those features. You don't miss spring. You miss being lazy.
dragneelfps@reddit
So? Yeah i would rather be lazy and get shit done then waste 1/2 day setting up the perfect logging framework
Worth_Trust_3825@reddit
The jab was more at not knowing what makes up spring framework.
devraj7@reddit
I don't understand why the author keeps comparing a language (Go) with a framework (Spring). Compare things that are comparable.
But yeah, overall, there is no denying that Java is a richer language than Go and also has more mature and more flexible libraries, which require a lot less boilerplate than the Go ecosystem.
Also can't help but smile at people calling the language "Golang" instead of just "Go". Serves Google right for picking such a poor name for a language.
Groundbreaking-Fish6@reddit
Frameworks are good until they get in the way. Minimalist is good until you don't know where to start. This is an ongoing problem since the early years of programming. As the field grew it got much worse. It is hard for a developer to know the full stack, much less several full stack development configurations. Most applications require persistent storage (SQL, Document DB or File System), Domain Processing, UI/UX, Workflow and Authentication. Also don't forget Testing, Cyber Security and Performance.
There are many frameworks out there that target the full stack: .Net, LAMP, Spring Boot and others. There are many more that target sub-sections: Angular, React, Apache, Kafka, Graphana, Hibernate and JUnit, just to name a few.
Also, these frameworks and work spaces change at an alarming rate with simple work spaces developing framework like complexity to solve evermore advanced problems and improve the developer experience.
Choosing a Framework or Language can have serious repercussions down the road.
So, keep up to date on the latest technologies, stay agile and use AI where appropriate.
BenchEmbarrassed7316@reddit
From article:
I'll just give a link to the famous article 'Parse, don't validate':
https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
cheezballs@reddit
That blogspam reads like someone just took the spring boot guide and re-arranged it to make it seem like other frameworks are somehow "missing" things. Typical blogspam.
CanvasFanatic@reddit
Assuming this is one of those gags like “everything men know about women” with a bunch of empty pages.