Code To Go

Find updated snippets for common JavaScript use cases

get it
#3 Product of the DayDecember 15, 2017

Code to go helps developers learning JavaScript find up to date, accurate and ready to use snippets of JavaScript code for common use cases.

Reviews

  • Pros: 

    - Copy paste friendly

    Cons: 

    - Lack of information of where something is applicable

    Why would you want to use this over say https://stackoverflow.com/ it'll usually end up in staggeration of information. The use-cases / snippets shared here may or may note apply to your use-case and if you knew what applies best to your use-case....? I do see a point in making a process out of this but this effort could be used to populate these questions over StackExchange or MDN and not fragment information further.

    Just a Random Person has used this product for one day.
  • 62304
    Dan MooreVaporware
    Pros: 

    it's focused on content only

    Cons: 

    but this is where content goes to die

    coding content needs context -- thats why stackoverflow's system works

    Dan Moore has used this product for one day.

Discussion

You need to become a Contributor to join the discussion - Find out how.
931213
Nate Davis@nate_davis · Data Driven Designer
Love the design, looks great on my phone. Looking forward to using this. Thanks for the awesome resource.
706384
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@nate_davis we're glad you like it :D
312746
Andy Parkhills@aparkhills · Application Developer
Great and clean UI! Search works smooth but Use Cases page needs categorization (ex: Syntax, Variables, Assignment, Strings, Numbers, etc.) in some kind of a possible tagging format.
706384
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@aparkhills makes sense, noted :D thanks!
276715
Navid Mirzaie Milani@navidmirzaie · Front-end developer
This is really nice! i already added to my fav!.
706384
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@navidmirzaie I'm glad you like it!
889023
EmbedAPI@embed_api · CEO @ EmbedAPI.com Embed Anything
@jadjoubran you're welcome :)
1088687
Rob Moore@robmoore · Recent Oxford grad. DataVis & D3
Just a heads up on your featured iteration example on Javascript array iteration- "For...in" loops are generally NOT recommended for arrays because the order is not guaranteed (which is generally important for arrays). I don't want anyone to get a bad first impression of the product just because of the choice of example.
706384
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
Hi @robmoore thanks for your comment! Did you mean "For .. of" or "For .. in"? I've used "For .. of" rather than "For ..in" or any other alternative because it's ES2015+ and because you can break from it using the break keyword whereas with forEach or .map you can't break from it. What do you think?
245011
Mitch Lillie@mitchlillie · Developer, SERPs
@robmoore @jadjoubran I agree—the example of using "for...of" is nice, but needs to specify "when the order is not important". From a performance standpoint, to iterate over an array and keep the order preserved, a plain old "for" loop is the best, though it's uglier
46795
Pierrick@pierrickgt · Front-end Developer at Meilleurs Agents
Love the idea but I would add more use cases to the homepage.
706384
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@pierrickgt Will do soon! thanks :D