TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: isEven API – tell if a number is even SaaS

25 pointsby tannercollinabout 5 years ago

11 comments

ecaronabout 5 years ago
This would be much easier to adopt if there was an NPM package or Rubygem to simplify our company's integration with their platform.
nivertechabout 5 years ago
I&#x27;d rather pay with with utility isEvenCoins, rather than with USD.<p>Also, our entire stack is GraphQL-based, so we must have a GraphQL API according to this schema:<p><pre><code> schema { query: Query mutation: Mutation subscription: Subscription } type Query { balance: Int! isEven(input: isEvenInput!): isEvenPayload! } type Mutation { depositCoins(amount: Int!): DepositPayload! withdrawCoins(amount: Int!): WithdrawPayload! } type Subscription { coinsDeposited: Int! coinsWithdrawn: Int! coinsSpent: Int! } input isEvenInput { number: Int! gas: Int! } type isEvenPayload { result: bool balanceLeft: Int! isError: bool! errMsg: String } type DepositPayload { newBalance: Int! isError: bool! errMsg: String } type WithdrawPayload { newBalance: Int! isError: bool! errMsg: String }</code></pre>
评论 #22531958 未加载
LukeBMMabout 5 years ago
I think you need a dashboard with animated graphs (preferably in bright colors on a dark background with thin text that has just enough color contrast to indicate that there&#x27;s text there at all) to help track KPIs. With push notifications if even&#x2F;odd distributions veer outside of a user-defined threshold, which is cunningly defined as an index value with a more impressive sounding name and handy three letter abbreviation.<p>That should really help distinguish yourself in this hotly contested market space.
评论 #22507824 未加载
tannercollinabout 5 years ago
I got tired of seeing programmers struggle to tell if a given number is even, so I built this solution.<p>You can see an example here: <a href="https:&#x2F;&#x2F;github.com&#x2F;BraydonKains&#x2F;is-even&#x2F;blob&#x2F;master&#x2F;python.md#iseven-api" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;BraydonKains&#x2F;is-even&#x2F;blob&#x2F;master&#x2F;python.m...</a><p>I&#x27;ll be around for questions!
评论 #22512177 未加载
gitgudabout 5 years ago
It&#x27;s scary how convincing this is, kind of like an SNL skit which is too real...
ultrarunnerabout 5 years ago
It appears that the API is unversioned, which concerns me as my company is very future-looking and will need to support numbers as they modernize. How will you handle version migrations?
Dicey84about 5 years ago
This is much more practical than learning maths.<p>Hopefully, it has support for imperial numbers one day
jitendrakkkkabout 5 years ago
I am fine as long as the ads in api response are not personalized.
throw03172019about 5 years ago
Joke or not. This will look great on a resume. :)
enos_feedlerabout 5 years ago
productization of everything
planetzeroabout 5 years ago
I will be looking forward to your next project: isBool