+ 1

How do you manage confusion of syntax in programming?

Like php and Js seem to be the same but there is some parts like in object where "->" is a dot(.) In js , and where ";" semicolons can be omitted in js but in php it throws an error if forgetten. And more like declaring variables var, let , const but php its just $ 😅 and define() for constants.

14th Sep 2022, 10:43 AM
Madrine Nansiimbi
Madrine Nansiimbi - avatar
3 Réponses
+ 2
I think, you don't have confusion about the points you mentioned.. Do same for confusing points, write downs points and look into when you have confusion in using..! So after 2 or 3 times, usage and experience you will get clarity without confusion I think. Camparing, write down points, and practicing are some ways to avoid confusion and get clarity... edit: for opinions based questions, better suites in feed post..
14th Sep 2022, 11:07 AM
Jayakrishna 🇮🇳
+ 3
It's like being multi-lingual. It's always confusing everytime you suddenly have to switch from one language to another. My trick is to generalize the abstract idea, but actively avoid associating any similar symbols and words, because they can have very different meanings. And try to get into the proper mindset when coding. Selectively forgetting other languages while coding is a good way to avoid 'crosstalk interference'. Stop making comparisons. Get in the groove, go with the flow... Compartmentalize, that's the word...😁
14th Sep 2022, 11:24 AM
Bob_Li
Bob_Li - avatar
+ 1
The app lost connection when I tried to answer, so here it goes: I use linters and validators for every language I work on - including markup and markdown. So, instead of trying to memorize every single syntax, I let the linters and validators throw mistakes in my face.
18th Sep 2022, 9:15 PM
Emerson Prado
Emerson Prado - avatar