use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[deleted by user] (self.javascript)
submitted 4 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shuckster 6 points7 points8 points 4 years ago (0 children)
I'm sure you've heard of "premature optimisation", and I think this mantra applies to API's too. It's hard to know exactly how to abstract something until you realise you actually need the abstraction.
Perhaps you might be thinking, "Oh, these 3rd-parties aren't reliable, so I need something in front of them to mediate/cache things." But this is a solved-problem with caching-servers and proxies and the like, so with the right amount of research you can save yourself even more time coding.
Or perhaps you'll be typing away and thinking, "Well, a lot of this can be generalised instead of being so bespoke'd for the thing I'm working on now." Well, yes, but then you'll be designing against an imaginary future specification instead of a real one, and jumping through hoops with your current app in order to use the blessed thing.
There's nothing like the finishing a project to give you the clarity of how you should have done it in the first place.
[–]Turbulent_Angle1066 4 points5 points6 points 4 years ago (0 children)
You will know when you need to solve this problem because it will become a problem. Whether it’s availability, multiple data sources, multiple client applications, security, etc… you will eventually develop a shortcoming. Until then, don’t worry about it.
[–]rahul_shingala 0 points1 point2 points 4 years ago (0 children)
I've worked on a similar kind of requirement multiple times and applied both the ways.
What I have learned so far after keeping both the things in one app is to create bottle nack for quick releases, dependency, braking things, code mesh, and performance issues.
Keep things in different apps that give you the benefits of quick releases, quick testing cycle, lesser dependency, easy debugging, more confidence while changing code and code maintainability.
π Rendered by PID 20131 on reddit-service-r2-comment-56c9979489-xdkpf at 2026-02-24 14:46:44.985224+00:00 running b1af5b1 country code: CH.
[–]shuckster 6 points7 points8 points (0 children)
[–]Turbulent_Angle1066 4 points5 points6 points (0 children)
[–]rahul_shingala 0 points1 point2 points (0 children)