align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Functional Monthly - Session 6

  • Jan 28, 2014 · 6:45 PM

Welcome to the monthly meetup of people interested in functional javascript and it's branches.

We will meet on the last Tuesday of every month. Some of these meetups may get pretty advanced, but we plan to do our best to organize topics for beginners and advanced javascriptors alike.

Schedule

Doors open: 6:45PM
Presentation Starts: 7:30PM
Networking: 8:30PM
Everyone On Their Way Out: 9:15PM

Sponsored and Hosted by PubNub


Ariya Hidayat - Array's higher-order functions

Searching and Sorting without Loops

This talk introduces the functional programming side of JavaScript by exploring various higher-order functions of the built-in Array object. The use of these higher-order functions allows several different possible iterations without using an explicit for/while statement at all:

Build a sequence of numbers and characters

Create a list of all prime numbers in a given range

Compute factorial and construct Fibonacci series

Perform basic search operations

Implement insertion sorting via a sorting network


Ariya Hidayat (@ariyahidayat) is an engineer/technical lead/FOSS fan/blogger/speaker. These days, his activities are mostly on software craftsmanship around HTML5, JavaScript, and other web technologies.

This meetup has been organized by a bunch of folks from loop/recur, a San Francisco-based JavaScript consultancy.

PRESENTERS NEEDED
We need speakers for the next two meetups.

Session 7 - February 25th
Session 8 - March 25th

The SF JavaScript Meetup is committed to maintaining an inclusive, harassment-free atmosphere. Attendees, speakers and sponsors must all abide by our Code of Conduct. Recruiters, please do not spam the group with job postings/contact info in the comments or bring collateral to the events.

Want to promote a job opening? We can mention it in our next member email. Click here.

Interested in sponsoring? Click here.

Interested in speaking? Fill out our prospective speaker form or email taylor @ looprecur.com

Join or login to comment.

  • Steven Miyakawa ".

    Did a quick Google search cause I was curious about the performance question that came up. http://jsperf.com/map-vs-native-for-loop/7

    1 · January 28, 2014

    • Ariya H.

      Also, complement the analysis with macrobenchmark, i.e. synthetic but representative data sets. For more details, check out http://calendar.perfp...­.

      January 29, 2014

    • A former member
      A former member

      Those are great links Ariya, thanks! @Steven, this is probably too broad for a comment here, but one thing you have to consider with performance is the balance between bugginess, readability and actual speed. If a piece of code really isn't used that often, or isn't used in a critical part of an app, it may be better to use something less efficient (say, recursion, which creates a new stack frame every call) if it reduces the chances of bugs (like removing the need for an index). A bug costs a company a different resource, developer time. After all, which is a more useful resource, X cpu cycles or an hour of developer time? Depends on the situation. But if you can use map to express "go over every thing in a collection" instead of trying to keep track of an index that could potentially bite you later (we've probably all had off-by-one errors), it's possible that map is more "efficient".

      1 · January 30, 2014

  • Tom T.

    5-star rating. Catering was excellent, by Choice Catering, SF: http://choice-sf.com/­

    January 29, 2014

  • Derek G.

    Still on the outside looking in, but this was dive into functional programming for me.

    January 29, 2014

  • David W.

    Great talk. Everyone i talked with really enjoyed Ariya's talk and Pubnub provided a great space and hosting (and food!)

    1 · January 28, 2014

  • Stephen B.

    Functional

    January 28, 2014

  • Ariya H.

    Thanks everyone for attending the talk! Thanks PubNub for hosting the venue and feeding us!

    The slide deck is available at https://speakerdeck.com/ariya/searching-and-sorting-without-loops.

    3 · January 28, 2014

  • Dave N.

    Don't want to brave the 60 degree San Francisco weather? We'll live-stream the event at http://new.livestream.com/accounts/7005003/pubnub-javascript, talks start at 7:30

    2 · January 28, 2014

    • Cricket

      That's a brisk 60 degrees!

      January 28, 2014

  • Sahil B

    Is there any plan to live-stream the session ?

    1 · January 15, 2014

    • Ted

      Will this be recorded by chance?

      1 · January 28, 2014

    • A former member
      A former member

      Talk to Eddie Codel he helped stream SF Cascade meetups.

      January 28, 2014

  • Joao M.

    Are +1's allowed at the door?

    January 28, 2014

    • Taylor S.

      Only if you REALLY like them.

      1 · January 28, 2014

  • Loren

    Look forward to meeting up with you all!

    January 22, 2014

  • Stefan M.

    I'm currently reading "Single Page Web Applications" by Mike Mikowski, and it has answered so many questions I've had about best practices for designing JavaScript applications.

    January 15, 2014

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy