---
title: "Jake Foraker (@jakeforaker) | Hashnode"
description: "Jake Foraker (@jakeforaker) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@jakeforaker"
---

@jakeforaker

# Jake Foraker

@jakeforaker · Joined May 2016

## Comments

[I've been down this road a few times. See my question here, which Dan Abramov himself chimed in on: https://www.reddit.com/r/reactjs/comments/6al7h2/facebook\_has\_30000\_react\_components\_how\_do\_you/ Short answer is: it depends. But for medium to larger type apps, your structure above will become implicit very fast, meaning its too abstract to give declarative meaning into the functionality of your app. Looking at the directories will be hard to track down the code you (or a new developer) are looking for. I prefer to break things out by features or pages. No matter how react-y you are, your app will likely have pages, so its fair to piggy back off of that in terms of structure. This is how I like it: /src \_/components <-- shared/global components \_/pages \_\_\_/PAGE\_NAME \_\_\_\_/containers \_\_\_\_/components <-- components highly specific to that page \_\_\_\_/index.js](https://hashnode.com/forums/thread/whats-your-react-app-file-structure/comment/5aac1721e1fa0050553170b9)

Comment · Thread · Mar 16, 2018 · 3 · [What's your React app file structure?](https://hashnode.com/forums/thread/whats-your-react-app-file-structure)

[Typically when you want to extract a single value from such an array, you use reduce. https://www.airpair.com/javascript/javascript-array-reduce So you can do this instead: var totalArray = \[2,2,2\]; var sum=0; var foo = totalArray.reduce(function(total, num){ return total + num }, sum); console.log(foo); // 6](https://hashnode.com/forums/thread/foreach-method-in-javascript/comment/5aab0b05188043531fe7e1a2)

Comment · Thread · Mar 16, 2018 · [forEach method in JavaScript](https://hashnode.com/forums/thread/foreach-method-in-javascript)

[I did the exact same same thing with https://github.com/wrakky/react-html-parser Using a Django Rest Framework API - I saved my "page" objects as JSON Fields, so the client could construct the payloads freely. Then the the outgoing payload would just contain a JSON object with key/value and the value was a string of html. { "text": "<p>some block of html that is just a string</p>" } To my recollection, letting Django handle security was enough - but it was an internal tool so we weren't worried about xss or whatever threat is possible.](https://hashnode.com/forums/thread/react-rendering-html-saved-from-draft-js/comment/5aa1bb95e96b069606054c79)

Comment · Thread · Mar 8, 2018 · [React, rendering HTML saved from draft-js?](https://hashnode.com/forums/thread/react-rendering-html-saved-from-draft-js)

[Ask yourself what kind of software do you like to build? Asp.Net and C# are just means to an end... so whats the ideal end product for you? Web apps? Mobile apps? API's? Database design? In my opinion xamarin has too many abstractions. If you like android check this out https://www.udacity.com/course/new-android-fundamentals--ud851](https://hashnode.com/forums/thread/how-to-shape-my-career-as-a-developermachine-learning-fantasizes-me-any-suggestions/comment/5a9b84a6e96b069606052432)

Comment · Thread · Mar 4, 2018 · 1 · [How to shape my career as a developer.Machine Learning fantasizes me. Any suggestions?](https://hashnode.com/forums/thread/how-to-shape-my-career-as-a-developermachine-learning-fantasizes-me-any-suggestions)

[Demo link would be cool. Code is robust. You spent ALOT of time on this, show it off man!](https://hashnode.com/forums/thread/ytakkarreact-instagram-clone-20/comment/5a9b80d3e96b0696060523b9)

Comment · Thread · Mar 4, 2018 · 3 · [yTakkar/React-Instagram-Clone-2.0](https://hashnode.com/forums/thread/ytakkarreact-instagram-clone-20)

[Lucky for you, its already built into Python... pip is a dream to work with... https://packaging.python.org/guides/creating-and-discovering-plugins/ Also, for my own curiosity I spent minimal time googling and found this: https://github.com/mitsuhiko/pluginbase https://lkubuntu.wordpress.com/2012/10/02/writing-a-python-plugin-api/ This is not an uncommon problem, as Django and Flask were developed with this exact situation in mind.](https://hashnode.com/forums/thread/how-can-we-integrate-an-plugin-architecture-in-to-a-web-application/comment/5a9b7f74e96b069606052390)

Comment · Thread · Mar 4, 2018 · 2 · [How can we integrate an plugin architecture in to a web application?](https://hashnode.com/forums/thread/how-can-we-integrate-an-plugin-architecture-in-to-a-web-application)

[Every link clicked in table of contents was a github 404 page](https://hashnode.com/posts/favorite-vs-code-extensions-2017/5a338cd2370cce3138f11a5b/comment/5a761553f7ef75131419f6a0)

Comment · Article · Feb 3, 2018 · 1 · [Favorite VS Code Extensions 2017](https://hashnode.com/posts/favorite-vs-code-extensions-2017/5a338cd2370cce3138f11a5b)

[For your first question, look into a rate limiter such as this https://github.com/jhurliman/node-rate-limiter - there are more.. Second question - get access to the user-agent on the incoming request. A lib like this will help: https://github.com/biggora/express-useragent](https://hashnode.com/forums/thread/how-can-i-limit-a-particular-user-to-fixed-number-of-requests/comment/5a640e9ecff7b96d478f1c5b)

Comment · Thread · Jan 21, 2018 · 1 · [How can I limit a particular user to fixed number of requests ?](https://hashnode.com/forums/thread/how-can-i-limit-a-particular-user-to-fixed-number-of-requests)

[Screenshot? Description? Something? What is a palette?](https://hashnode.com/forums/thread/utopypalette/comment/5a35ca85a190c991742694a4)

Comment · Thread · Dec 17, 2017 · [utopy/Palette](https://hashnode.com/forums/thread/utopypalette)

[extend function is adding a method called toObject on the obj object that is passed in, which is immediately invoked (IIFE) and in turn presumably "extends" it by adding a special fabric.util.object. Just a guess... see here http://fabricjs.com/fabric-intro-part-3](https://hashnode.com/forums/thread/what-is-this-snippet-doing/comment/5a2df4fc5b9ed1636662b680)

Comment · Thread · Dec 11, 2017 · 1 · [What is this snippet doing??](https://hashnode.com/forums/thread/what-is-this-snippet-doing)
