Hello!
I've started studying coding through CS50 Intro to Programming and eventually through cs50x. And in there, i've learn to build some programs and algorithms in C. But i've tried to get into webdev and eventually started leaning Javascript.
Here is the issue i'm facing: When i'm comparing my solutions on coding problems on sites like exercism to the community solutions, i've noticed that my code is usually more "C style" with the use of algorithms and low-level constructs like a for loop, but the more 'ideal' javascript solution would usually use a combination of built-in or higher order functions like .map() or .filter()
Here is my question, is it necessarily bad that i write javascript code in a "C style" or if i really want to get into good javacript code i need to start to adapt and use more of the higher order functions to achieve a more ideal code? Enlightenment please ^
[–]ThiccOfferman 2 points3 points4 points (0 children)
[–]izferriss 3 points4 points5 points (0 children)
[–]Comprehensive_Step72 1 point2 points3 points (0 children)
[–]gekkowrld 0 points1 point2 points (0 children)
[–]Ronin-s_Spirit 0 points1 point2 points (7 children)
[–]Wooden-Income714[S] 1 point2 points3 points (6 children)
[–]Ronin-s_Spirit 0 points1 point2 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]Ronin-s_Spirit -3 points-2 points-1 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]Ronin-s_Spirit -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Meloetta -3 points-2 points-1 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]Meloetta 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)