• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:50
CEST 11:50
KST 18:50
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
ZeroSpace Early Access is Now Live!15Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)84Reynor: GSL Loss Wasn't About Preparation Format16[IPSL] Spring 2026 Grand Finals - This Weekend!18
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters How would you feel about frequent/monthly balance patches for SC2? [D] Wireframe Casting Removed
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026 GSL CK #5 Race War HomeStory Cup 29
Strategy
[G] Having the right mentality to improve
Custom Maps
[M] (2) Industrial Park New Map Maker - Looking for Advice - Love or Hate
External Content
Mutation # 535 Assembly of Vengeance The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together
Brood War
General
Animated Gateway BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion HORROR STARCRAFT MOVIE How Famous was FlaSh before his Debut?
Tourneys
[Megathread] Daily Proleagues [IPSL] Spring 2026 Grand Finals - This Weekend! Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers PvT advise for noobs Fighting Spirit mining rates Creating a full chart of Zerg builds
Other Games
General Games
Path of Exile ZeroSpace Early Access is Now Live! General RTS Discussion Thread ZeroSpace at Steam NextFest - Last free demo Nintendo Switch Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread How to buy a book - shipping from Korea to Europe The Games Industry And ATVI
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
Hello guys!
LIN1s
Role of Gaming on Mental Hea…
TrAiDoS
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
ramps on octagon
StaticNine
Customize Sidebar...

Website Feedback

Closed Threads



Active: 8551 users

The Big Programming Thread - Page 459

Forum Index > General Forum
Post a Reply
Prev 1 457 458 459 460 461 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
Last Edited: 2014-03-27 20:24:50
March 27 2014 20:18 GMT
#9161
On March 28 2014 04:14 Blisse wrote:
Show nested quote +
On March 28 2014 02:14 RoyGBiv_13 wrote:
Except don't use Exceptions if you're using C++, because unexpected arbitrary length code execution is bad.


Huh? Why?

I see : http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Exceptions

but this counter-example here : http://stackoverflow.com/questions/3312513/on-a-disadvantage-of-exceptions-in-c/3312577#3312577

makes sense.


Here's my brief rundown on C++ Exceptions:

It's convenient to have a language feature as an approach to error handling.
It has a 1%-20% overhead depending on who you ask, and significant memory footprint impacts for embedded systems.
It's a terror as far as compiling time optimization goes, but theres no real way around that, apart from don't have errors to handle.
Exceptions aren't sufficient for real-time programming. If you're writing a deterministic, real-time system, why would you ever want a feature that can hijack the thread of execution and delay it by an arbitrary amount of time in order to handle an error?

I probably have more to say about what kind of programs tend to use Exceptions than the Exception library features themselves. Personally, I can't say much about Exceptions in OOP besides that C++ doesn't have garbage collection and instead relies on RAII.

Any sufficiently advanced technology is indistinguishable from magic
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-03-27 21:17:38
March 27 2014 21:16 GMT
#9162
It looks like I'll be unemployed soon after graduation. I've had 2 unsuccessful online assessments for jobs (Graduate Software Engineer)

Test 1
1) Codility
2) Computing probability of events

Test 2
1) Calculation of data that is on graph, ratios, percentages
2) IQ test

Almost nothing about software or computers... I just don't know what I'm supposed to do. I'm starting to think that I may have to step down and apply for internship. I'd gladly take advice as well.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-03-28 00:21:28
March 28 2014 00:11 GMT
#9163
On March 28 2014 05:18 RoyGBiv_13 wrote:
Show nested quote +
On March 28 2014 04:14 Blisse wrote:
On March 28 2014 02:14 RoyGBiv_13 wrote:
Except don't use Exceptions if you're using C++, because unexpected arbitrary length code execution is bad.


Huh? Why?

I see : http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Exceptions

but this counter-example here : http://stackoverflow.com/questions/3312513/on-a-disadvantage-of-exceptions-in-c/3312577#3312577

makes sense.


Here's my brief rundown on C++ Exceptions:

It's convenient to have a language feature as an approach to error handling.
It has a 1%-20% overhead depending on who you ask, and significant memory footprint impacts for embedded systems.
It's a terror as far as compiling time optimization goes, but theres no real way around that, apart from don't have errors to handle.
Exceptions aren't sufficient for real-time programming. If you're writing a deterministic, real-time system, why would you ever want a feature that can hijack the thread of execution and delay it by an arbitrary amount of time in order to handle an error?

I probably have more to say about what kind of programs tend to use Exceptions than the Exception library features themselves. Personally, I can't say much about Exceptions in OOP besides that C++ doesn't have garbage collection and instead relies on RAII.



Wait, shouldn't you not ever throw exceptions in a RTOS anyways? so any exception implementation doesn't make sense? I might be wrong.

I think the SO post said that C++ Exceptions were bad because you could throw an exception which broke RAII. I don't find Google's overview satisfactory (like the arguments on SO said).



On March 28 2014 06:16 darkness wrote:
It looks like I'll be unemployed soon after graduation. I've had 2 unsuccessful online assessments for jobs (Graduate Software Engineer)

Test 1
1) Codility
2) Computing probability of events

Test 2
1) Calculation of data that is on graph, ratios, percentages
2) IQ test

Almost nothing about software or computers... I just don't know what I'm supposed to do. I'm starting to think that I may have to step down and apply for internship. I'd gladly take advice as well.



I wouldn't be discouraged - I think you're not applying to a large enough variety of jobs. You've only talked about two that seemed like they were graduate studies programming jobs. There are tons of jobs in other industries that will have other kinds of (more relevant to what you seem to have talked about) interviews. You should be applying to a lot of interviews, like 20+ at least, and then organizing ones that you like. You might also want to take another look at how you're tailoring your resume (what kinds of employers are you trying to attract).

Internships though are really nice (if you have done them before) because you can get your foot in the companies' door easily, and the interview process is not as rigorous as it would be for a full-time position. You can get paid relatively well in comparison to full-times and still do relevant industry work (depending on the company). What jobs are you looking for, and what kind of experience do you have?
There is no one like you in the universe.
CatNzHat
Profile Blog Joined February 2011
United States1599 Posts
March 28 2014 01:00 GMT
#9164
On March 25 2014 21:16 sluggaslamoo wrote:
Show nested quote +
On March 25 2014 19:07 endy wrote:
On March 24 2014 20:04 sluggaslamoo wrote:
On March 24 2014 19:04 endy wrote:
Anyone has a nice framework to recommend to develop cross platform mobile apps?
Most of them, like PhoneGap seem to be based on Javascript? Is Javascript powerful/robust enough? I don't think it can compare with a solid object oriented language.

edit: Also not very sure of how I can use a local database like Sqlite when using such a framework, or how to make my application work when offline.


Appcelerator Titanium. Nothing else comes close.


This looks pretty good, I will give this a try first. Thanks!

On March 25 2014 01:59 Athos wrote:
On March 24 2014 19:04 endy wrote:
Anyone has a nice framework to recommend to develop cross platform mobile apps?
Most of them, like PhoneGap seem to be based on Javascript? Is Javascript powerful/robust enough? I don't think it can compare with a solid object oriented language.

edit: Also not very sure of how I can use a local database like Sqlite when using such a framework, or how to make my application work when offline.


If you're interested in game development, I recommend Game Closure. It's open source and they have a pretty good dedicated community to answering questions about the framework.


Not interested in games for now, but thank you.

On March 25 2014 18:25 Encdalf wrote:
On March 24 2014 19:04 endy wrote:
Anyone has a nice framework to recommend to develop cross platform mobile apps?
Most of them, like PhoneGap seem to be based on Javascript? Is Javascript powerful/robust enough? I don't think it can compare with a solid object oriented language.

edit: Also not very sure of how I can use a local database like Sqlite when using such a framework, or how to make my application work when offline.

Using JS is usually fine, however there are areas where a native implementation is better. But that depends on what you want to do.
I used PhoneGap a while back for several Apps and it worked. I can't say anything about Appcelerator but I guess in the end it comes down to what do you need and which suits you better

As for making the app offline capable, you simply put all data into the app, and ship it with it. Or you download files on demand and store them in the app. As for database, the frameworks have a database api you can use.


Hmm ok, I just feel that JS is fine for scripting as its name indicates. But I don't think you can write clean, easy to maintain and more importantly re-usable code with JS as you could with Java.
Thanks!




http://coffeescript.org/

Java has pretty horrid code re-usability actually, but I think I've beaten the horse to death enough over that.


I would say it's harder to write good goode in javascript as it's a relatively unstructured language, but I believe that you can write cleaner easier to maintain code in javascript than in java. Java forces you to over-architecture things that can be done in a simple, lightweight, and easy to maintain fashion in javascript. The problem is that people don't understand javascript or don't know what tools and patterns they have at their disposal. If you use AMD along with the module namespacing pattern you can write very clean and maintainable code, look at the big Node.js projects, or jQuery.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
March 28 2014 02:10 GMT
#9165
On March 28 2014 05:18 RoyGBiv_13 wrote:
Show nested quote +
On March 28 2014 04:14 Blisse wrote:
On March 28 2014 02:14 RoyGBiv_13 wrote:
Except don't use Exceptions if you're using C++, because unexpected arbitrary length code execution is bad.


Huh? Why?

I see : http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Exceptions

but this counter-example here : http://stackoverflow.com/questions/3312513/on-a-disadvantage-of-exceptions-in-c/3312577#3312577

makes sense.


Here's my brief rundown on C++ Exceptions:

It's convenient to have a language feature as an approach to error handling.
It has a 1%-20% overhead depending on who you ask, and significant memory footprint impacts for embedded systems.
It's a terror as far as compiling time optimization goes, but theres no real way around that, apart from don't have errors to handle.
Exceptions aren't sufficient for real-time programming. If you're writing a deterministic, real-time system, why would you ever want a feature that can hijack the thread of execution and delay it by an arbitrary amount of time in order to handle an error?

I probably have more to say about what kind of programs tend to use Exceptions than the Exception library features themselves. Personally, I can't say much about Exceptions in OOP besides that C++ doesn't have garbage collection and instead relies on RAII.



can you give a more detailed rundown? i would be much interested.
conspired against by a confederacy of dunces.
gargantotang
Profile Joined September 2013
7 Posts
March 28 2014 02:23 GMT
#9166
@dae many thanks, I know where to look now.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
March 28 2014 02:53 GMT
#9167
On March 27 2014 16:06 obesechicken13 wrote:
How do you debug a timeout in .net 4.0?

[image loading]
We deployed on amazon. This works when you run the site locally on amazon. It also works when I run the site on my machine in visual studio. I can't seem to find anything in the log files that might help.

The problem is that nothing returns. No error code.

It works if you make the app bind on port 80, but we have two different parts of the site that are currently running on different ports.

I tried disabling the firewall but that didn't help. We edited Amazon's security groups to open port 81. Nothing.

I couldn't figure out how to put the calendar in as a subdomain.

So we're giving up on this approach. Thanks anyways everyone.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Encdalf
Profile Joined February 2012
Germany66 Posts
March 28 2014 09:15 GMT
#9168
Just saw that you try to operate it from two ports.. Two ports are affected by same-origin policy, and you might to have to set e.g. CORS headers. Otherwise the ressources from the different port won't load and lead to a timeout
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 28 2014 16:55 GMT
#9169
On March 28 2014 09:11 Blisse wrote:
I think the SO post said that C++ Exceptions were bad because you could throw an exception which broke RAII. I don't find Google's overview satisfactory (like the arguments on SO said).

No, as long as you don't throw exceptions in destructors, you can't break RAII. The problem is that old code doesn't use RAII. That's also what the SO post says.

If you throw in destructors, you deserve the horrible death your program will die.
If you have a good reason to disagree with the above, please tell me. Thank you.
Pirfiktshon
Profile Joined June 2013
United States1072 Posts
March 28 2014 19:02 GMT
#9170
So,

I'm like fresh out of the box new when it comes to coding. I think I want to pursue it as a full time hobby hopefully leading into possible future employment. I've done all the OP said and have done otherwebsites such as codeacademy.com. I want to make an app for my phone android OS. What do any of you suggest for me to do as far as learning / practicing and a good project to do as a stepping stone to eventually reach my goal of making an app?

Sorry If i'm kinda breaking the chain of thought in this thread. You guys are awesome and I respect you guys for your skill immensely so was wondering what you think?

Oh and is there any website or program I can download to work with assembly language at all.... I tried the OP info and it was either book to buy or website not found.

Thanks for any reply
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-03-28 19:41:31
March 28 2014 19:39 GMT
#9171
On March 29 2014 04:02 Pirfiktshon wrote:
So,

I'm like fresh out of the box new when it comes to coding. I think I want to pursue it as a full time hobby hopefully leading into possible future employment. I've done all the OP said and have done otherwebsites such as codeacademy.com. I want to make an app for my phone android OS. What do any of you suggest for me to do as far as learning / practicing and a good project to do as a stepping stone to eventually reach my goal of making an app?

Sorry If i'm kinda breaking the chain of thought in this thread. You guys are awesome and I respect you guys for your skill immensely so was wondering what you think?

Oh and is there any website or program I can download to work with assembly language at all.... I tried the OP info and it was either book to buy or website not found.

Thanks for any reply


If you're asking how to work with Assembly, then you may simply use the Inline Assembler in the C language. It's a really low level language. Do you really need it?
Pirfiktshon
Profile Joined June 2013
United States1072 Posts
March 28 2014 19:59 GMT
#9172
Well I don't need HTML CSS Java ruby python or C++ but I love it all so much I will literally learn anything I can about any language that I can get my hands on lol
gOst
Profile Joined June 2011
415 Posts
March 28 2014 21:10 GMT
#9173
Hello everyone. This is my first time posting is this thread so please be gentle. I will soon start my third year on a bachelor of software development, major in CS and I was thinking of getting into developing APIs. I'm half decent with C++ and Java and have dabbled somewhat in Python as well.
Is there any career what so ever in developing APIs?
Is there some particular skill/knowledge that could be useful?
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
Last Edited: 2014-03-28 22:30:44
March 28 2014 22:22 GMT
#9174
On March 29 2014 06:10 gOst wrote:
Hello everyone. This is my first time posting is this thread so please be gentle. I will soon start my third year on a bachelor of software development, major in CS and I was thinking of getting into developing APIs. I'm half decent with C++ and Java and have dabbled somewhat in Python as well.
Is there any career what so ever in developing APIs?
Is there some particular skill/knowledge that could be useful?


There sure is, but it's probably not the type of API's you think of. An API is just an interface between a programming language and something else. The Java/Python API you've worked with are implemented as language libraries, but these days, API development is done using client/server web model (The buzzword is REST, which stands for something that is no longer really true). Some examples are:
Twitter's API
Twilio's API

If you make a product, either on the web or a native application, and you want users to be able to interact with the program, you will need an API. If it's a native application, you can either write a plug-in library to implement the API (Think minecraft's plugin system), or run it as a client/server model (think databases). If it's a web service, then it's pretty much all RESTful APIs. This process of exposing an application to an interface that is programmable is how "platforms" are made.

My best example for a "API" that creates a "platform" is the Starcraft Map Editor, which exposed an API for a proprietary mapping language that changed Starcraft from a "game" to a "platform".

After reading this post, if you think "Gee, I think designing a platform is really nifty, and I would really want to make money doing it", then take a look at how Twitter and Twilio are building their API, and work your way in that direction, towards web backend. Try to remember me when you're diving into your Scrooge McDuck piles of gold that (good) web backend developers make.

If you're thinking "I don't know about all that web stuff, but platforms are really neat," then maybe you're just a language nut. That's okay too. There's a way to make money thinking about language definitions and library interfaces all day too. Try a compiler's class or operating system's class and see if you can dig on the Operating System level API, then work at Google or Microsoft (or i guess now Facebook with it's metaverse might be a good bet too).


On March 28 2014 11:10 nunez wrote:
Show nested quote +
On March 28 2014 05:18 RoyGBiv_13 wrote:
On March 28 2014 04:14 Blisse wrote:
On March 28 2014 02:14 RoyGBiv_13 wrote:
Except don't use Exceptions if you're using C++, because unexpected arbitrary length code execution is bad.


Huh? Why?

I see : http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Exceptions

but this counter-example here : http://stackoverflow.com/questions/3312513/on-a-disadvantage-of-exceptions-in-c/3312577#3312577

makes sense.


Here's my brief rundown on C++ Exceptions:

It's convenient to have a language feature as an approach to error handling.
It has a 1%-20% overhead depending on who you ask, and significant memory footprint impacts for embedded systems.
It's a terror as far as compiling time optimization goes, but theres no real way around that, apart from don't have errors to handle.
Exceptions aren't sufficient for real-time programming. If you're writing a deterministic, real-time system, why would you ever want a feature that can hijack the thread of execution and delay it by an arbitrary amount of time in order to handle an error?

I probably have more to say about what kind of programs tend to use Exceptions than the Exception library features themselves. Personally, I can't say much about Exceptions in OOP besides that C++ doesn't have garbage collection and instead relies on RAII.



can you give a more detailed rundown? i would be much interested.


I'd love to do an investigation into Exceptions and their internals, but I probably won't get a chance for a while since it doesn't really come up with embedded stuff (for good reason).
.
Any sufficiently advanced technology is indistinguishable from magic
gOst
Profile Joined June 2011
415 Posts
March 28 2014 22:47 GMT
#9175
On March 29 2014 07:22 RoyGBiv_13 wrote:
Show nested quote +
On March 29 2014 06:10 gOst wrote:
Hello everyone. This is my first time posting is this thread so please be gentle. I will soon start my third year on a bachelor of software development, major in CS and I was thinking of getting into developing APIs. I'm half decent with C++ and Java and have dabbled somewhat in Python as well.
Is there any career what so ever in developing APIs?
Is there some particular skill/knowledge that could be useful?


There sure is, but it's probably not the type of API's you think of. An API is just an interface between a programming language and something else. The Java/Python API you've worked with are implemented as language libraries, but these days, API development is done using client/server web model (The buzzword is REST, which stands for something that is no longer really true). Some examples are:
Twitter's API
Twilio's API

If you make a product, either on the web or a native application, and you want users to be able to interact with the program, you will need an API. If it's a native application, you can either write a plug-in library to implement the API (Think minecraft's plugin system), or run it as a client/server model (think databases). If it's a web service, then it's pretty much all RESTful APIs. This process of exposing an application to an interface that is programmable is how "platforms" are made.

My best example for a "API" that creates a "platform" is the Starcraft Map Editor, which exposed an API for a proprietary mapping language that changed Starcraft from a "game" to a "platform".

After reading this post, if you think "Gee, I think designing a platform is really nifty, and I would really want to make money doing it", then take a look at how Twitter and Twilio are building their API, and work your way in that direction, towards web backend. Try to remember me when you're diving into your Scrooge McDuck piles of gold that (good) web backend developers make.

If you're thinking "I don't know about all that web stuff, but platforms are really neat," then maybe you're just a language nut. That's okay too. There's a way to make money thinking about language definitions and library interfaces all day too. Try a compiler's class or operating system's class and see if you can dig on the Operating System level API, then work at Google or Microsoft (or i guess now Facebook with it's metaverse might be a good bet too).


I guess I mainly was thinking about the platform/interface aspect you described. An interface that lets other programmers communicate with a service or product of some sort. So I basically have to decide whether I want to focus on Operating System APIs or web backends?
I recently made an android application in which I used google play's map API. I think those kinds of API interest me the most, where the API uses the web to communicate with a backend to some sort of hardware.
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
Last Edited: 2014-03-28 23:43:26
March 28 2014 23:38 GMT
#9176
On March 29 2014 07:47 gOst wrote:
Show nested quote +
On March 29 2014 07:22 RoyGBiv_13 wrote:
On March 29 2014 06:10 gOst wrote:
Hello everyone. This is my first time posting is this thread so please be gentle. I will soon start my third year on a bachelor of software development, major in CS and I was thinking of getting into developing APIs. I'm half decent with C++ and Java and have dabbled somewhat in Python as well.
Is there any career what so ever in developing APIs?
Is there some particular skill/knowledge that could be useful?


There sure is, but it's probably not the type of API's you think of. An API is just an interface between a programming language and something else. The Java/Python API you've worked with are implemented as language libraries, but these days, API development is done using client/server web model (The buzzword is REST, which stands for something that is no longer really true). Some examples are:
Twitter's API
Twilio's API

If you make a product, either on the web or a native application, and you want users to be able to interact with the program, you will need an API. If it's a native application, you can either write a plug-in library to implement the API (Think minecraft's plugin system), or run it as a client/server model (think databases). If it's a web service, then it's pretty much all RESTful APIs. This process of exposing an application to an interface that is programmable is how "platforms" are made.

My best example for a "API" that creates a "platform" is the Starcraft Map Editor, which exposed an API for a proprietary mapping language that changed Starcraft from a "game" to a "platform".

After reading this post, if you think "Gee, I think designing a platform is really nifty, and I would really want to make money doing it", then take a look at how Twitter and Twilio are building their API, and work your way in that direction, towards web backend. Try to remember me when you're diving into your Scrooge McDuck piles of gold that (good) web backend developers make.

If you're thinking "I don't know about all that web stuff, but platforms are really neat," then maybe you're just a language nut. That's okay too. There's a way to make money thinking about language definitions and library interfaces all day too. Try a compiler's class or operating system's class and see if you can dig on the Operating System level API, then work at Google or Microsoft (or i guess now Facebook with it's metaverse might be a good bet too).


I guess I mainly was thinking about the platform/interface aspect you described. An interface that lets other programmers communicate with a service or product of some sort. So I basically have to decide whether I want to focus on Operating System APIs or web backends?
I recently made an android application in which I used google play's map API. I think those kinds of API interest me the most, where the API uses the web to communicate with a backend to some sort of hardware.


To be fair, you can use pretty much any language to implement a web backend to serve a RESTful API. You'll want to take a look at how data is transmitted over the internet. A typical way is to use JSON,
and you'll also want to understand the layer the transport layer, OSI Model, and other networking concepts. Web companies tend to use a lot of Javascript to implement their APIs as well, so you may want to look into that.

The reason I point you in this technical direction, instead of in the architectural direction is because you will have to put in your due time to understand the backend of an API before you can grasp the limitations of what you can and can't do with a front end. An architectural decisions is what makes an API good versus bad, and how to make people actually start using your API

For example, I have a set of microchips connected via a low power wireless network. If I design my API to return a measurement of a sensor on these motes, they might get a flood of requests each second. Since it's a low power network, the requests will step on each other causing each request to take longer to get to the mote in the first place, and by then the data may be obsolete. Instead, I might have an POST request to give an address for the mote to stream its data to. Architecturally, this is just "do we poll the mote, or do we have the mote push data to us?" question, but without an understanding of the web, it's easy to think at too high of a level.

As for OS level APIs, its learning hardware and computer engineering instead of networking, and the API's are a good bit more complicated, but you have more room as your users will be understanding.
Any sufficiently advanced technology is indistinguishable from magic
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-03-29 02:59:55
March 29 2014 02:22 GMT
#9177
On March 29 2014 01:55 spinesheath wrote:
Show nested quote +
On March 28 2014 09:11 Blisse wrote:
I think the SO post said that C++ Exceptions were bad because you could throw an exception which broke RAII. I don't find Google's overview satisfactory (like the arguments on SO said).

No, as long as you don't throw exceptions in destructors, you can't break RAII. The problem is that old code doesn't use RAII. That's also what the SO post says.

If you throw in destructors, you deserve the horrible death your program will die.


Someone said if you throw an exception on a dynamically allocated object, you may end up not calling delete on it and that's a memory leak. They mentioned that auto-pointers in C++11 solves this issue. That's how I interpreted the argument against Google.
There is no one like you in the universe.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
March 29 2014 06:46 GMT
#9178
On March 29 2014 07:22 RoyGBiv_13 wrote:
I'd love to do an investigation into Exceptions and their internals, but I probably won't get a chance for a while since it doesn't really come up with embedded stuff (for good reason).
.

blast.
conspired against by a confederacy of dunces.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 29 2014 07:01 GMT
#9179
On March 29 2014 11:22 Blisse wrote:
Show nested quote +
On March 29 2014 01:55 spinesheath wrote:
On March 28 2014 09:11 Blisse wrote:
I think the SO post said that C++ Exceptions were bad because you could throw an exception which broke RAII. I don't find Google's overview satisfactory (like the arguments on SO said).

No, as long as you don't throw exceptions in destructors, you can't break RAII. The problem is that old code doesn't use RAII. That's also what the SO post says.

If you throw in destructors, you deserve the horrible death your program will die.


Someone said if you throw an exception on a dynamically allocated object, you may end up not calling delete on it and that's a memory leak. They mentioned that auto-pointers in C++11 solves this issue. That's how I interpreted the argument against Google.

std::auto_ptr has been in C++ for a long time. And RAII means that you don't use dynamic allocation out in the wild, but always in a controlled environment where there is a destructor of an object on the stack ready to clean up that dynamic allocation if an exception is thrown. auto_ptr can provide that destructor.
If you have a good reason to disagree with the above, please tell me. Thank you.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 29 2014 07:31 GMT
#9180
Ah right I forgot about auto being old since unique succeeded it, but I don't see how that relates to not using C++ exceptions.

Google's explanation seemed to be countered by the fact that you could use smart pointers but Google didn't use them initially so they don't support them when maintaining legacy code. So I still don't see why you shouldn't be using C++ exceptions if you're smart about it.
There is no one like you in the universe.
Prev 1 457 458 459 460 461 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 10m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Bisu 1406
Rain 1088
Jaedong 487
Tasteless 395
Horang2 393
BeSt 356
Soma 220
Leta 171
Hyun 153
Mini 140
[ Show more ]
Zeus 123
Mong 96
ZerO 65
Pusan 61
Killer 60
PianO 51
ToSsGirL 40
Mind 34
sorry 31
Rush 30
Aegong 26
Bale 21
ZergMaN 18
Stork 18
hero 14
Movie 14
NaDa 13
Hm[arnc] 13
JulyZerg 12
yabsab 12
GoRush 11
Noble 8
ajuk12(nOOB) 7
Yoon 6
Terrorterran 6
NotJumperer 5
Dota 2
Fuzer 154
League of Legends
JimRising 442
Counter-Strike
shoxiejesuss759
Other Games
summit1g5643
FrodaN2606
ceh91119
singsing868
Pyrionflax170
Trikslyr23
CosmosSc2 14
ZerO(Twitch)12
Organizations
Other Games
gamesdonequick1132
StarCraft: Brood War
lovetv 10
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH312
• mYiSmile170
• LUISG 7
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2330
Upcoming Events
The PondCast
10m
Kung Fu Cup
1h 10m
OSC
14h 10m
CrankTV Team League
1d 1h
Replay Cast
1d 14h
CrankTV Team League
2 days
Korean StarCraft League
2 days
Afreeca Starleague
2 days
RSL Revival
2 days
Serral vs SHIN
herO vs Solar
Online Event
3 days
[ Show More ]
Replay Cast
3 days
RSL Revival
3 days
Clem vs ByuN
Rogue vs Lambo
WardiTV Weekly
5 days
Sparkling Tuna Cup
6 days
PiGosaur Cup
6 days
Liquipedia Results

Completed

Proleague 2026-07-21
HSC XXIX
Eternal Conflict S2 E3

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

Escore Tournament S3: W4
ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
CSLAN 4
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.