• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:35
CEST 15:35
KST 22:35
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Weekly Cups (June 30 - July 6): Classic Doubles1[BSL20] Non-Korean Championship 4x BSL + 4x China7Flash Announces Hiatus From ASL64Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event22
StarCraft 2
General
Weekly Cups (June 30 - July 6): Classic Doubles Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form?
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
SC uni coach streams logging into betting site BGH Auto Balance -> http://bghmmr.eu/ ASL20 Preliminary Maps Flash Announces Hiatus From ASL Player “Jedi” cheat on CSL
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2024! Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 718 users

The Big Programming Thread - Page 43

Forum Index > General Forum
Post a Reply
Prev 1 41 42 43 44 45 1031 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.
dvide
Profile Joined March 2010
United Kingdom287 Posts
March 22 2011 00:44 GMT
#841
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.
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
Last Edited: 2011-03-22 15:11:50
March 22 2011 14:59 GMT
#842
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
England will fight to the last American
Craton
Profile Blog Joined December 2009
United States17247 Posts
March 22 2011 15:55 GMT
#843
YouTube appears to still be Adobe Flash, although I remember hearing about a plan to migrate to HTML 5.
twitch.tv/cratonz
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
Last Edited: 2011-03-22 16:15:24
March 22 2011 16:07 GMT
#844
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?
England will fight to the last American
TheBB
Profile Blog Joined July 2009
Switzerland5133 Posts
Last Edited: 2011-03-22 18:37:51
March 22 2011 18:36 GMT
#845
Did we do this yet?

Relevant reading material.

Poll: Indentation style

Allman (430)
 
55%

K&R (332)
 
42%

Whitesmith (24)
 
3%

786 total votes

Your vote: Indentation style

(Vote): K&R
(Vote): Allman
(Vote): Whitesmith



BTW OP: Here are some Haskell links for the OP.
http://book.realworldhaskell.org/read/
http://learnyouahaskell.com/chapters
http://aligulac.com || Barcraft Switzerland! || Zerg best race. || Stats-poster extraordinaire.
tofucake
Profile Blog Joined October 2009
Hyrule19031 Posts
March 22 2011 19:00 GMT
#846
1. OP Updated
2. Allman is clearly the best, although the space before the opening parenthetical is not something I do.
Liquipediaasante sana squash banana
Valenius
Profile Joined September 2010
United Kingdom1266 Posts
March 22 2011 19:00 GMT
#847
Speaking from a newbies perspective, the Allman style seems easier to on the eyes (and is how i lay mine out)
Disregard
Profile Blog Joined March 2007
China10252 Posts
March 22 2011 19:07 GMT
#848
+1 for Allman, brace alignment nightmare.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
sidesprang
Profile Joined January 2009
Norway1033 Posts
March 22 2011 19:46 GMT
#849
Allman ftw, more space is almost always better in my oppinion.

Float like a butterfly, sting like a bee.
kingcoyote
Profile Blog Joined May 2010
United States546 Posts
March 22 2011 19:52 GMT
#850
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"
};
sur_reaL
Profile Joined April 2010
Canada278 Posts
March 22 2011 19:55 GMT
#851
Allman
It's just so much more clean and easy to read imo.
http://www.youtube.com/watch?v=lH3hrtp1T84
tofucake
Profile Blog Joined October 2009
Hyrule19031 Posts
March 22 2011 20:43 GMT
#852
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.
Liquipediaasante sana squash banana
kingcoyote
Profile Blog Joined May 2010
United States546 Posts
March 22 2011 21:03 GMT
#853
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.
Oracle
Profile Blog Joined May 2007
Canada411 Posts
March 22 2011 21:04 GMT
#854
A CS/Programming Blog I posted a while ago. Maybe some of you will enjoy it.
Kentor *
Profile Blog Joined December 2007
United States5784 Posts
March 22 2011 21:22 GMT
#855
i get irritated when i read anything but Allman style braces

and i try to avoid braces all together if I can in C
astroorion
Profile Blog Joined September 2010
United States1022 Posts
March 22 2011 23:26 GMT
#856
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!
MLG Admin | Astro.631 NA
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
March 23 2011 19:31 GMT
#857
Anyone have any other input on the questions I posted?
England will fight to the last American
dogmeatstew
Profile Joined April 2010
Canada574 Posts
March 23 2011 19:48 GMT
#858
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.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2011-03-24 07:30:19
March 24 2011 07:27 GMT
#859
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.
Silmakuoppaanikinko
Profile Joined November 2010
799 Posts
March 24 2011 07:55 GMT
#860
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.
Workers and town centres are the ultimate counter to turtles.
Prev 1 41 42 43 44 45 1031 Next
Please log in or register to reply.
Live Events Refresh
Wardi Open
11:00
#43
WardiTV1322
OGKoka 522
Harstem427
IndyStarCraft 169
Rex167
CranKy Ducklings122
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 522
Harstem 427
Hui .184
IndyStarCraft 169
Rex 167
StarCraft: Brood War
Bisu 2963
Flash 2112
Jaedong 1818
Hyuk 1166
firebathero 688
EffOrt 645
ZerO 538
Larva 508
actioN 436
Soulkey 387
[ Show more ]
Stork 378
Snow 308
Soma 275
GuemChi 168
Mind 132
sSak 113
Pusan 111
Light 98
PianO 80
hero 77
Sharp 74
JulyZerg 72
TY 55
Barracks 46
Sea.KH 44
Yoon 38
Aegong 35
sorry 32
Free 30
GoRush 26
soO 24
zelot 23
Movie 22
JYJ20
HiyA 20
yabsab 19
IntoTheRainbow 11
Terrorterran 10
Shine 8
ivOry 4
Dota 2
qojqva3148
Gorgc2576
XaKoH 621
XcaliburYe297
syndereN293
League of Legends
singsing2548
Counter-Strike
byalli263
markeloff128
Super Smash Bros
Mew2King169
Other Games
hiko1144
B2W.Neo1138
crisheroes383
Beastyqt345
Lowko310
ArmadaUGS128
Liquid`VortiX84
ZerO(Twitch)24
Organizations
Other Games
gamesdonequick37693
StarCraft: Brood War
UltimateBattle 889
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2960
• WagamamaTV335
League of Legends
• Nemesis5594
Upcoming Events
RotterdaM Event
2h 25m
Replay Cast
10h 25m
Sparkling Tuna Cup
20h 25m
WardiTV European League
1d 2h
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
1d 10h
The PondCast
1d 20h
WardiTV European League
1d 22h
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
2 days
Replay Cast
2 days
RSL Revival
2 days
ByuN vs SHIN
Clem vs Reynor
[ Show More ]
Replay Cast
3 days
RSL Revival
3 days
Classic vs Cure
FEL
4 days
RSL Revival
4 days
FEL
4 days
FEL
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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 © 2025 TLnet. All Rights Reserved.