Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kunashe19688y@rayanon may you please outline the main advantage for you in moving to PDO from your initial mysql approach?
-
@kunashe It's much more modern it's approach, is more secure and object oriented.
-
rayanon13608y@kunashe PDO prevents you from SQL injection because you can parameterize your query, it also supports prepared statements - so your DB can optimize the query plan, it also supports many databases and provides a single interface across all these databases.
Its been quite long now from those PHP days, those are the things I remember from the top of my head. -
kunashe19688y@rayanon optimization of query plans is a clear advantage. It would be interesting though to see whether this gain is consistent across the spectrum from simple queries to very complex ones.
My suspicions are that there are trade offs. -
If you are enjoying haskell, look at purescript or elm for your front end stack. You can get started pretty quickly with elm and the ideas are quite very similar to react+redux.
For db, if you are interested in some nosql as well, I have recently started using arangodb, it is very easy and more natural to model most of the domain problems I have thought about. -
rayanon13608y@rusty-hacker I have looked at PureScript and Elm both. Both are fantastic. I use Elm for my side projects but use React+Redux for production use, simply because it has a bigger community.
-
Qchmqs5378y@Artemix mysql is popular, it's not a choice most of the times, clients want mysql because someone told them its the shit
Related Rants
My tech stack progression:
Started with PHP without any frameworks, using a homegrown MVC architecture. Used to use `mysql_` functions everywhere. And only jquery + vanilla CSS in the front end.
Then moved to use PDO functions in PHP and Backbone.js + Less CSS in the front-end.
Then moved to Django in the back-end. Did not like Django very much as it is too opinionated and not flexible (although it's damn good for rapid development if you buy into their type of things).
Then moved to Flask + SQLAlchemy and using a home grown architecture. This is a sweet spot for me in terms of back end and stayed in this spot for the longest time.
Moved to Postgres from MySQL as I fell in love with Postgres.
Then learnt React+Redux. Liked it. Made most sense to front-end development this way. Moved front-end stack to React+Redux.
Learning Haskell and been working with Scotty and eyeing Servant for a while now.
Let's see where it goes from here.
PS: this is my personal journey through various tech stacks in various products at various companies I have worked. I'm not talking about moving a product through these many tech stacks. That doesn't make any sense.
undefined
tech stack
learning journey
tech stack evolution