BACKGROUND…
I am learning to code basically online, fron sources like Freecodecamp, udemy, w3schools… at this point I can say I create a good old style website using plain html, javascript, css… with a help from bootstrap it makes it easier to create and modify a site and deploy it in plain html…
STARTING THE RANT
quickly after learning the simple code basis… I learn about REACT… How I could create modules from pieces of code, store them and update them… cool stuff that would save time… downsize??? React is worthless for SEO, if I needed SEO I needed to learn webpack and that was so much work… was REACT modules worth it if you have so much work to do for SEO?
Later on I learn about Nextjs… better than React for SEO, but you got to be a bit careful on how you code it because it doesnt use a DOM… overall not terrible…
THE DATABASES…
learning to manage databases I find it a bit silly to a point… because given my little experience I have to invest time to learn a private company code system with resources that I cant find… I am frustrated with MONGODB Atlas becuse I dont know how to do the things, information doesnt seem easy to find, and their documents seem to be outdated…
CURRENT PROBLEM / ADVISE?
Rihgt now I am trying to pull data using nextjs getStaticProps from my MONGODB database… well… it isnt working… I must pull data directly from getStaticProps and feed it to the page … the implementation of connecting to the database and pulling data from getStaticProps has been frustrating… fair to say that the course I took from nextjs they usually fetch data using a direct link website… well… another frustration is that i havent found the way on how to get that website link with my data from mongodb… so, what would be the best way to pull data? Can mongodb be used in getStaticProps?
RETHINKING DATABASES
given my frustration, and given that technology or the hype of the moment isnt perfect… it would be a good idea of not investing much time on learning an x company method if that would tie me to their system and wont offer real time saving features… maybe I need to learn how to create my own APIs and do whatever CRUD operation might be needed in javascript… the people from nextjs in their course use for example airtable, and the use of airtable is limited plus you still gotta invest time to learn their system… is it really worth my time?..
ANYWAY…
at this point if i cant figure how to pull data from mongodb in getstaticprops, then I am just gonna hard code the data, converting 900 items of an excell sheet into html or json takes seconds… for my current needs i dont need any CRUD operation… in the future maybe having control and learning about creating my own api could free me from the frustration of dealing and learning the system of databases companies…
Nextjs as not perfect is still a step forward to simply coding… I dont think coding should be the learning of the system of X company, but implementing the basics of common language to get things done…