Giter Site home page Giter Site logo

dmcquay / katas Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 10.0 6.34 MB

C# 0.70% CSS 0.56% JavaScript 12.14% Assembly 0.50% Makefile 0.12% Shell 0.58% C 0.40% Python 4.05% Go 1.68% HTML 2.11% Scala 1.46% Batchfile 0.01% Reason 0.03% TypeScript 74.71% Dockerfile 0.05% PHP 0.47% Java 0.44%

katas's Introduction

Things I'd like to experiment with

Idea for an exercise from Tim Cash

1.) Write a program that fetches my github repo count without using promises or npm libraries (this shows they understand how to use callbacks and errbacks, work with the nodejs documentation, and deal with API documentation. There is a snag most people run into with github and they need to read the docs closely or use the returned error to deduce the cause).

2.) Improve the program to sum the count of repos from n github users. The program should request the repo counts in parallel. Again, without promises or external libraries. (this should show they know how to fork and join async tasks)

3.) Improve the program to use promises (the code should move from a more nested structure to a linear structure)

Program 2 1.) Sum the values of a (too large to fit into memory) new line separated file. Generally this file is larger than 1.5 gigs and thus will not fit on the nodejs heap and each line is just an ascending number (easy to test for correctness n(n+1)/2). 2.) Improve the program to sum the file in parallel (this will show knowledge of nodejs streams which are at the base of most common I/O libraries. including fs, http, crypto...)```

Here are some interview / workshop questions I get valuable conversation out of as well 1.) Is nodejs single threaded? 2.) Explain the event loop and the benefits of this architecture when building network proxies 3.) What is libuv 4.) What is V8 5.) What would cause starvation of the event loop thread 6.) What would cause starvation of the worker threads

katas's People

Contributors

dmcquay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.