Nothing here yet.
Nothing here yet.
No blogs yet.
You could do something like: { "_id" : "mongoid" , .... some fields "options" : [{ "name" : "Option 1" , "vote" : 1 }, { "name" : "Option 2" , "vote" : 100 }] } The option field contains an array of objects. Each object has two fields. The option name and the number of votes on this option.
I go more and more with backend, because the whole frontend development is gtting more and more depressing. I feel like there is no week where I don´t see something like "New web framework. The same like xyz but xy". Yesterday me and some colleagues searched through the packages that the "create-react-apps" installed. We found a dependency called "number-is-nan". The only thing that this package checks, is if a number is nan or not. Why the hell is this package used you can check this by yourself, no need for a package. But I would recommend to do what makes the most fun. If you like frontend, do frontend. Or just take a look at both of them and be skilled in both.
I would say learn what you want. Swift is as far as I know very apple heavy. I learned rust and go (go for university) last year. Rust really makes me happy. Go for me personally is just pain. For a decision, maybe take a look at some languages and look at some getting started and then just start doing something.
Currently I learn and play a little bit with writing my own blockchain in rust. Besides that I learn a little bit more rust and have a lot of fun. This will be my project for the next weeks, until the end of the current semester comes and I have to learn for my exams.