burannah / twitchxx Goto Github PK
View Code? Open in Web Editor NEWC++ wrapper for Twitch API
License: BSD 3-Clause "New" or "Revised" License
C++ wrapper for Twitch API
License: BSD 3-Clause "New" or "Revised" License
Line 39 in 1e88f33
Lines 53 to 55 in 1e88f33
Seems to me you need a function here:
bool has_non_empty_field(const T &val, cons std::string &field_name) { return val.has_field("community_ids") && !val.at("community_ids").is_null() && val.at("community_ids").size()); }
Line 55 in 1e88f33
20, 100? What are these numbers?
TwitchXX/TwitchXX/RequestWait.cpp
Line 28 in 1e88f33
catch(...)
is considered to be a bad practice in C++, lease use catch(std::invalid_argument)
here as specified in the documentaion: http://www.cplusplus.com/reference/string/stol/
TwitchXX/TwitchXX/RequestWait.cpp
Line 54 in 1e88f33
const int ERR_TOO_MANY_REQUESTS = 429; //<...> if(e.code() == ERR_TOO_MANY_REQUESTS)
commenatries inside functions almost always smell like here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.