|
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. |
On March 22 2011 00:45 japro wrote:Show nested quote +On March 22 2011 00:32 Hoon wrote: Hey folks! I'm an Electronical Engineering undergrad. We have to develop a game in C++ as our Programming project. Our teacher suggested using Dev C++ as the compiler and Allegro as the graphical ibrary. I'm wondering if there are any better library that I can use in Visual Studio (would love something easy to use and that doesn't conflict with Threads like Allegro does). Thanks in advance! I'm a big fan of SFML. Does pretty much everything you need in a very straight forward way (no setting up of 13 contexts just to load a picture etc.). Agreed. From my experience it's a lovely little library. If you're using C++ I'd recommend it over SDL.
On March 22 2011 09:05 Manit0u wrote:Hasn't Dev-C++ been obsolete since like 2005 (at least that's the last time it has been supported/released) and replaced with wxDev-C++ later on? Yes, there is no reason to still use it when Code::Blocks, wxDev-C++ and Visual C++ Express exist.
|
I'm looking to create a plugin/extension for browsers (atleast IE OR chrome, but both/more is good) which will perform voice capture and sending/playback of voice streams. I've been looking into creating an applet, since I can just run Java code.
1) Besides an applet, what other technologies can be used? I've looked at Flash, but does it support RTP/RTCP and SIP stacks? That can be found in Java atleast, I'm fairly certain. I've read that HTML 5 has built-in support for audio/video, but that is not available now.
2) What limitations exist for Applets compared to 'regular' Java programs?
3) I'm not sure of the term 'webbrowser plugins'. Just what is it? Javascript? Does each webbrowser have an API for developing plugins? What are the limitations of plugins? Any examples of plugins (toolbars)? Is there any good documentation/resources? I can't find any.
4) what is the technology powering, like, youtube? It must be related.
Webtechnoglogy is painful for a C/C++ programmer
|
YouTube appears to still be Adobe Flash, although I remember hearing about a plan to migrate to HTML 5.
|
Is it all done in flash? What about RTP and SIP, does flash have support for that? If not, is it possible to add it using some kind of plugin or do you HAVE to rely on features native to the Flash Player?
|
|
Hyrule18968 Posts
1. OP Updated 2. Allman is clearly the best, although the space before the opening parenthetical is not something I do.
|
Speaking from a newbies perspective, the Allman style seems easier to on the eyes (and is how i lay mine out)
|
+1 for Allman, brace alignment nightmare.
|
Allman ftw, more space is almost always better in my oppinion.
|
I use 1TBS, since Allman has some unpredictable issues with some of the languages I use. For example, Allman in JavaScript may cause implicit semicolons to do things that are undesirable:
return { "foo":"bar" };
is not the same as
return { "foo":"bar" };
|
Allman It's just so much more clean and easy to read imo.
|
Hyrule18968 Posts
On March 23 2011 04:52 visual77 wrote: I use 1TBS, since Allman has some unpredictable issues with some of the languages I use. For example, Allman in JavaScript may cause implicit semicolons to do things that are undesirable:
return { "foo":"bar" };
is not the same as
return { "foo":"bar" }; In which case you do return { 'foo': 'bar' }; and your problem is solved. Since the curly braces aren't being used to open and close a block of code, but rather to describe a set of parameters, they follow different rules.
|
On March 23 2011 05:43 tofucake wrote:Show nested quote +On March 23 2011 04:52 visual77 wrote: I use 1TBS, since Allman has some unpredictable issues with some of the languages I use. For example, Allman in JavaScript may cause implicit semicolons to do things that are undesirable:
return { "foo":"bar" };
is not the same as
return { "foo":"bar" }; In which case you do return { 'foo': 'bar' }; and your problem is solved. Since the curly braces aren't being used to open and close a block of code, but rather to describe a set of parameters, they follow different rules.
That's true, but in the case of a large object being returned, it can get pretty awkward.
I've also never been that great at knowing exact rules on these well known standards, so I'm not surprised that there are different rules involved.
|
|
Kentor
United States5784 Posts
i get irritated when i read anything but Allman style braces
and i try to avoid braces all together if I can in C
|
Hey, I'm hoping this is allowed, if anyone is looking into getting into some Web Programming and needs a free web host, just sign up here http://www.000webhost.com/429635.html. I have used them since October, and have had no problems, and I will get payed for each sign up and once it hits 20 signups, they will pay me the $100 (They only give money out in $100 increments) which will be donated to TeamLiquid and can be used a their discretion or donated to a charity of their choice. Thanks!
|
Anyone have any other input on the questions I posted?
|
On March 22 2011 23:59 KaiserJohan wrote: I'm looking to create a plugin/extension for browsers (atleast IE OR chrome, but both/more is good) which will perform voice capture and sending/playback of voice streams. I've been looking into creating an applet, since I can just run Java code.
1) Besides an applet, what other technologies can be used? I've looked at Flash, but does it support RTP/RTCP and SIP stacks? That can be found in Java atleast, I'm fairly certain. I've read that HTML 5 has built-in support for audio/video, but that is not available now.
Flash is a big one, PHP is pretty powerful for all things web related but I don't have enough experience to be of any real help with it. I believe that most browsers have some from of API yes, I at least know that you can make FF extensions with javascript...
2) What limitations exist for Applets compared to 'regular' Java programs? Not alot... you have fewer and way more awkward UI options (at least in my opinion). I personally found writing java apps to be a pain but in terms of actual underlying java functionality nothing is missing particularly, at least not on a base level. Awkward though.
3) I'm not sure of the term 'webbrowser plugins'. Just what is it? Javascript? Does each webbrowser have an API for developing plugins? What are the limitations of plugins? Any examples of plugins (toolbars)? Is there any good documentation/resources? I can't find any.
I'm pretty sure that both Mozilla and Google have fairly extensive tutorials on their API's for various things (though you might have to wade your way though the huge number of API's that google has...) If you just go look through the mozilla site I seem to recall that there's a developers corner somewhere in there. Also most if not all add-ons are open source so take a look at some source.
4) what is the technology powering, like, youtube? It must be related. Webtechnoglogy is painful for a C/C++ programmer 
def flash.
|
On March 24 2011 04:48 dogmeatstew wrote:Show nested quote +4) what is the technology powering, like, youtube? It must be related. Webtechnoglogy is painful for a C/C++ programmer  def flash.
I would actually guess that YouTube has more Javascript Code in the Website than Flash (ActionScript) Code in their Player. For anyone doing any Web work, Javascript is a definite must-know. If you work with it for a while and also do OOP you notice that it's actually quite a powerful language, it just has a bad reputation because of some parts that are browser/implementation dependant, but if you combine it with frameworks like jquery, the browser/implementation dependant parts are abstracted away. JavaScript just has a different paradigm than Object-Oriented, Procedural or Functional Languages - it's called a Prototyping Language - and it's hard to wrap your mind around it when you are too used to the classical styles.
On March 23 2011 00:55 Craton wrote: YouTube appears to still be Adobe Flash, although I remember hearing about a plan to migrate to HTML 5.
YouTube has support for HTML5, just google for "YouTube" and "HTML5" and you will find some links that tell you how to reach it. However, since many people still have older browsers - yes, IE6 is still around and sadly at large - YouTube defaults to Flash for compatibility.
|
On March 22 2011 00:32 Hoon wrote: Hey folks! I'm an Electronical Engineering undergrad. We have to develop a game in C++ as our Programming project. Our teacher suggested using Dev C++ as the compiler and Allegro as the graphical ibrary. I'm wondering if there are any better library that I can use in Visual Studio (would love something easy to use and that doesn't conflict with Threads like Allegro does). Thanks in advance! Did your teacher honestly call Dev C++ a 'compiler'? I hope not, that'd shed even worse light on these programming classes than they already have?
I can't answer your Q by the way, I'm just curious if your teacher really doesn't know the difference between an IDE and a compiler. Dev C++ uses a win specific port of the GCC compiler as far as I know but there is no reason it can't be linked to any other compiler.
Dev C++ has somewhat of a bad reputation by the way as some others have noted, I wouldn't know, never used it.
|
|
|
|