by thiht · 1y ago · 0 comments
To work in a startup you have to embrace the "just do it" mindset, you have a brain to fill the gaps, and you can always iterate later. I’d be more interested in getting the result of the take home quickly, obviously in a working state, but with a documentation explaining trade offs because of lack of time, ideas for future improvements, design choices, stuff not included (ie. a pretty UI) etc.
My take: they’re literally asking for a CRUD (if you decouple well, you can easily replace the DB with SMTP/IMAP later) with basic email features: send (to, cc, bcc), fetch, reply, reply all, transfer. That’s it, you can do it in 2 hours. Add folders, signatures, "send later", authentication, or whatever if you want to show off.
--
Additionally as an experimented Go developer (8 years working with Go as my main language), the code is not great and tbh I would have rejected it if I received this technical test where I work.
In 5 minutes of reading the code:
- lots of commented out test stuff, don't leave that in a take home or I'm gonna assume you'll do the same in your commits
- lots of println but no logging
- relative imports (eg "mymail/app/router"), don't do this
- weird choice of relatively big dependencies (turso? pocketbase? negroni?)
- no architecture or decoupling, everything is in the router
- bad use of the context (getEmails)
- no tests (no need to test everything for a take home but at least some things can be tested)
People say languages are interchangeable and you're never a "xxx" dev, but that's not true. They asked for "Proficiency in Go" and the candidate is not proficient in Go, that would be the number 1 reason for rejection.
Anyway in 2 hours I’m pretty sure I can write some Go code that would get me an offer. This is not about the amount of features, it’s about giving them what they want.
Please do it, get the offer that I didn't, maybe you could even write a blog post about how easy it is and how wrong I am! ;)
The thing is I did a few interviews for Go positions last year and I have a lot of experience with Go so yeah, I’m confident in my skills. I’ve also been on the other side of the process many times and I know exactly what they look for. I’m not saying this test is easy, I’m saying I’m good at it and prepared for these kinds of take homes.
I don’t agree that it’s a bad technical test though, and reading your article I can say your approach was suboptimal. If you keep interviewing for startups you need to put yourself in their shoes.
To quote the test:
> This project tests your ability not only to code, but to deal with ambiguity and open-endedness