• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:34
CEST 18:34
KST 01:34
  • 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
[ASL21] Ro8 Preview Pt2: Progenitors0Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists22
Community News
RSL Revival: Season 5 - Qualifiers and Main Event9Code S Season 1 (2026) - RO12 Results02026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Code S Season 1 (2026) - RO12 Results Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 1 (2026) SC2 INu's Battles#15 <BO.9 2Matches> WardiTV Spring Cup SEL Masters #6 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
BW General Discussion Why there arent any 256x256 pro maps? [ASL21] Ro8 Preview Pt2: Progenitors BGH Auto Balance -> http://bghmmr.eu/ ASL21 General Discussion
Tourneys
[Megathread] Daily Proleagues [ASL21] Ro8 Day 2 Escore Tournament StarCraft Season 2 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread Daigo vs Menard Best of 10 Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Movie Stars In Video Games: …
TrAiDoS
ramps on octagon
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1527 users

The Big Programming Thread - Page 57

Forum Index > General Forum
Post a Reply
Prev 1 55 56 57 58 59 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.
Kambing
Profile Joined May 2010
United States1176 Posts
May 30 2011 15:33 GMT
#1121
On May 30 2011 20:09 Tili_us wrote:
Hey guys, I love C++, but I can't ignore the handy stuff that C# gives.

Is there stuff like reflection c++? (maybe in the new version?)

Also, I've being working with Unity3D, and they use Coroutines using the yield command. Is this available in normal C# too ? (or even c++?)


C++ allows you to inspect the type of objects at runtime with typeid. However, this is all you can do with C++ without resorting to other machinery. In particular, you can't natively inspect methods and fields of a C++ class like you can with C# at runtime. See this stackoverflow Q&A for some of the available options if you need this sort of functionality.

C# supports yield in the context of iterator blocks which you can use to develop co-routine like behavior. In C++, there is no innate language support for coroutines but they can be built into a library without much problem. You can check out yet another stack overflow post for more information (in particular, links to boost.coroutine which you can use).
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
Last Edited: 2011-05-30 15:42:20
May 30 2011 15:42 GMT
#1122
C++ is where my heart's at, but that didn't stop me from applying for a PHP Developer position. Nor did it stop me from getting it! Woot!

First real job, what up bitchezzz.
VIB
Profile Blog Joined November 2007
Brazil3567 Posts
May 30 2011 15:56 GMT
#1123
On May 31 2011 00:42 RoTaNiMoD wrote:
C++ is where my heart's at, but that didn't stop me from applying for a PHP Developer position. Nor did it stop me from getting it! Woot!

First real job, what up bitchezzz.
How can you call working as a PHP dev as a real job?

+ Show Spoiler +
lol jk, grats on your job man, and good luck
Great people talk about ideas. Average people talk about things. Small people talk about other people.
xarthaz
Profile Blog Joined August 2010
1704 Posts
May 30 2011 15:57 GMT
#1124
On May 31 2011 00:33 Kambing wrote:
Show nested quote +
On May 30 2011 20:09 Tili_us wrote:
Hey guys, I love C++, but I can't ignore the handy stuff that C# gives.

Is there stuff like reflection c++? (maybe in the new version?)

Also, I've being working with Unity3D, and they use Coroutines using the yield command. Is this available in normal C# too ? (or even c++?)


C++ allows you to inspect the type of objects at runtime with typeid. However, this is all you can do with C++ without resorting to other machinery. In particular, you can't natively inspect methods and fields of a C++ class like you can with C# at runtime. See this stackoverflow Q&A for some of the available options if you need this sort of functionality.

C# supports yield in the context of iterator blocks which you can use to develop co-routine like behavior. In C++, there is no innate language support for coroutines but they can be built into a library without much problem. You can check out yet another stack overflow post for more information (in particular, links to boost.coroutine which you can use).

IMO C++ is kind of obsolete - at least on the windows platform. Basically it has no advantages over C# if youre gonna use the .net environment, just takes more developer time to do things.
Aah thats the stuff..
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
May 30 2011 16:04 GMT
#1125
On May 31 2011 00:56 VIB wrote:
Show nested quote +
On May 31 2011 00:42 RoTaNiMoD wrote:
C++ is where my heart's at, but that didn't stop me from applying for a PHP Developer position. Nor did it stop me from getting it! Woot!

First real job, what up bitchezzz.
How can you call working as a PHP dev as a real job?

+ Show Spoiler +
lol jk, grats on your job man, and good luck


Hah! I kind of agree with you; I mean like I said, C++ is my bread and butter. My company's sweet though and their PHP codebase is mature and very object-oriented, so it's still pretty neat. Plus, to be honest, I was at a point where I probably would've taken an "HTML Developer" position -- money may have been a factor.
Kambing
Profile Joined May 2010
United States1176 Posts
Last Edited: 2011-05-30 18:02:25
May 30 2011 18:00 GMT
#1126
On May 31 2011 00:57 xarthaz wrote:
Show nested quote +
On May 31 2011 00:33 Kambing wrote:
On May 30 2011 20:09 Tili_us wrote:
Hey guys, I love C++, but I can't ignore the handy stuff that C# gives.

Is there stuff like reflection c++? (maybe in the new version?)

Also, I've being working with Unity3D, and they use Coroutines using the yield command. Is this available in normal C# too ? (or even c++?)


C++ allows you to inspect the type of objects at runtime with typeid. However, this is all you can do with C++ without resorting to other machinery. In particular, you can't natively inspect methods and fields of a C++ class like you can with C# at runtime. See this stackoverflow Q&A for some of the available options if you need this sort of functionality.

C# supports yield in the context of iterator blocks which you can use to develop co-routine like behavior. In C++, there is no innate language support for coroutines but they can be built into a library without much problem. You can check out yet another stack overflow post for more information (in particular, links to boost.coroutine which you can use).

IMO C++ is kind of obsolete - at least on the windows platform. Basically it has no advantages over C# if youre gonna use the .net environment, just takes more developer time to do things.


Actually, C++ on Windows is seeing a resurgence of importance that has been brewing since Visual Studio 2008 (e.g., see this zdnet piece on the recent stb re-org and visualc re-branding). There's a clearer distinction now by Microsoft to use C++ for full-fledged desktop apps and .NET for lob and mobile apps.

As for why you would use C++ over C#, there are a variety of reasons including legacy, performance, and interoperability. Many of these reasons are why the developer base has stuck with C++ over the last decade while Microsoft tried to push .NET as the way to do all development on Windows.

(And oddly enough, the resurgence of the importance of C++ isn't just on Windows. Apple is putting a lot of effort into LLVM and it's companion C/C++/Objective-C front-end, Clang, to facilitate native OS X development.)
Tili_us
Profile Joined July 2010
Belgium44 Posts
Last Edited: 2011-05-30 22:36:06
May 30 2011 22:34 GMT
#1127
I really like both languages to be honest. To do get some results as fast as possible I use C#.
But I love C++ when I need to take control.

I honestly don't get all the hate C++ is getting versus C#. Every time this discussion starts is about the JIT compiler stuff for C# and how its faster than C++ (in some cases), etc ... But there is still too much happening behind the scenes with C# that bothers me as a C++ developer.

I for one, really don't like structs is C#, they are just silly. I know why they made them value types, to make sure nothing iffy happens. But why is it then that when you know what you are doing in C++ it's no problem at all to pass these structs by const ref. It's just silly to keep copying them each time you pass them to a function. I'm sure Sutter wrote about this ... "gratuitous pessimization" it was called.

/rant
FinestHour
Profile Joined August 2010
United States18466 Posts
Last Edited: 2011-06-01 03:21:33
June 01 2011 03:19 GMT
#1128
Anyone know anything about Huffman coding? Like a general breakdown of it or anything. My friend is having a hard time with HW and maybe theres someone here I could refer them to
thug life.                                                       MVP/ex-
GrapeD
Profile Blog Joined August 2010
Canada679 Posts
June 01 2011 03:22 GMT
#1129
So yeah my computer science class wrote the Iversons exam today. Did any other alberta highschool people write that?
Some people hurt people. I defenestrate those people.
mafiameower
Profile Blog Joined May 2011
United States61 Posts
June 01 2011 03:24 GMT
#1130
Hey everyone, I would like a tutorial place to go for Net beans begging to intermediate. Thanks and sorry if I broke a rule, Pretty sure I didn't :D
Youtube.com/mafiameower
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
June 01 2011 03:29 GMT
#1131
On June 01 2011 12:19 FinestHour wrote:
Anyone know anything about Huffman coding? Like a general breakdown of it or anything. My friend is having a hard time with HW and maybe theres someone here I could refer them to


This looks helpful:
and


Though if your friend knows of this website called "google" he's probably already come across them. There's a wealth of information out there that I can see. What's his problem with Huffman coding?
xHassassin
Profile Joined November 2010
United States270 Posts
June 01 2011 03:30 GMT
#1132
Anyone here have experience with Apache POI for java?

I'm having a few problems with formatting and other small bugs.
omG.[RaYnE]
Profile Joined October 2007
Philippines100 Posts
June 01 2011 07:36 GMT
#1133
is anyone here has an experiece in xml and php? cause I've been trying to layout all the data of the xml file, been doing this 3 days straight now(18hrs/day) and no effin improvement and it's due is on friday 9AM +8 GMT or my wife and kids would be stoned
omG.[RaYnE] ---> rayne_ph :D
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
June 01 2011 07:39 GMT
#1134
On June 01 2011 16:36 omG.[RaYnE] wrote:
is anyone here has an experiece in xml and php? cause I've been trying to layout all the data of the xml file, been doing this 3 days straight now(18hrs/day) and no effin improvement and it's due is on friday 9AM +8 GMT or my wife and kids would be stoned


You should give information about:
- How the input looks like
- How the output should look like
- The code you currently have (minus unrelated parts)
- The current output

Then we might help you.

Usually parsing XML is as simple as using any of the many XML parsers out there...
Cambium
Profile Blog Joined June 2004
United States16368 Posts
June 01 2011 07:41 GMT
#1135
On June 01 2011 16:36 omG.[RaYnE] wrote:
is anyone here has an experiece in xml and php? cause I've been trying to layout all the data of the xml file, been doing this 3 days straight now(18hrs/day) and no effin improvement and it's due is on friday 9AM +8 GMT or my wife and kids would be stoned

xpath is probably what you are looking for
When you want something, all the universe conspires in helping you to achieve it.
omG.[RaYnE]
Profile Joined October 2007
Philippines100 Posts
June 01 2011 07:48 GMT
#1136
Here's the xml file:
http://www.mediafire.com/?et069f43vzzwssx

..I didn't include my own coding of showing the data cause it effed up
-i did try xpath but with my lil ol brains couldn't handle to make it work
omG.[RaYnE] ---> rayne_ph :D
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
June 01 2011 07:52 GMT
#1137
On June 01 2011 16:48 omG.[RaYnE] wrote:
Here's the xml file:
http://www.mediafire.com/?et069f43vzzwssx

..I didn't include my own coding of showing the data cause it effed up
-i did try xpath but with my lil ol brains couldn't handle to make it work


It's very simple XML, so you can simply use a parser like simplexml:

PHP Manual SimpleXML

The example should give enough information.
omG.[RaYnE]
Profile Joined October 2007
Philippines100 Posts
June 01 2011 08:02 GMT
#1138
I did try that too, I know it's a lot to ask but can you show me an example code showing all the data that are listed in the xml file? I would really appreciate it
omG.[RaYnE] ---> rayne_ph :D
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2011-06-01 08:13:08
June 01 2011 08:12 GMT
#1139
On June 01 2011 17:02 omG.[RaYnE] wrote:
I did try that too, I know it's a lot to ask but can you show me an example code showing all the data that are listed in the xml file? I would really appreciate it


Sorry, i don't do "gimme teh codez". If you can't get from the examples to a working solution, you should get another job. It's not even namespace stuff or anything complicated.

Another (untested) example:

$xml = new SimpleXMLElement('YourXmlFile.xml', null, true);
foreach ($xml->xpath('//Sport') as $sport)
{
foreach ($sport->xpath('/Texts/Text') as $text)
{
echo $text['Language'] . ':' . $text->Value . "\n";
}
}
omG.[RaYnE]
Profile Joined October 2007
Philippines100 Posts
June 01 2011 08:40 GMT
#1140
well that didn't work, thanks for the help though...ot's time for me to die now
omG.[RaYnE] ---> rayne_ph :D
Prev 1 55 56 57 58 59 1032 Next
Please log in or register to reply.
Live Events Refresh
uThermal 2v2 Circuit
14:00
Season 2 - May 2026
RotterdaM818
uThermal438
mouzHeroMarine430
IndyStarCraft 238
SteadfastSC194
elazer86
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 786
uThermal 438
mouzHeroMarine 430
IndyStarCraft 235
SteadfastSC 194
Railgan 119
elazer 75
StarCraft: Brood War
Britney 38367
Horang2 1868
Shuttle 1145
EffOrt 1064
ggaemo 578
Hyuk 286
Soma 276
firebathero 259
Rush 215
Leta 153
[ Show more ]
PianO 129
Dewaltoss 111
Sharp 78
actioN 77
Barracks 61
ToSsGirL 55
Hm[arnc] 41
Pusan 36
Sacsri 28
Rock 20
Terrorterran 19
Shine 7
Dota 2
Gorgc4969
qojqva2773
monkeys_forever220
Fuzer 190
Heroes of the Storm
Khaldor486
Other Games
B2W.Neo1388
Beastyqt1260
Liquid`RaSZi1213
FrodaN299
KnowMe197
Organizations
Other Games
BasetradeTV579
Dota 2
PGL Dota 2 - Main Stream69
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• Adnapsc2 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV662
League of Legends
• Jankos2066
Other Games
• Shiphtur289
Upcoming Events
BSL
2h 26m
IPSL
2h 26m
eOnzErG vs TBD
G5 vs Nesh
Patches Events
7h 26m
Replay Cast
16h 26m
Wardi Open
17h 26m
Afreeca Starleague
17h 26m
Jaedong vs Light
Monday Night Weeklies
23h 26m
Replay Cast
1d 7h
Sparkling Tuna Cup
1d 17h
Afreeca Starleague
1d 17h
Snow vs Flash
[ Show More ]
WardiTV Invitational
1d 18h
GSL
2 days
Classic vs Cure
Maru vs Rogue
GSL
3 days
SHIN vs Zoun
ByuN vs herO
OSC
3 days
OSC
3 days
Replay Cast
4 days
Escore
4 days
The PondCast
4 days
WardiTV Invitational
4 days
Replay Cast
5 days
CranKy Ducklings
5 days
RSL Revival
5 days
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
5 days
BSL
6 days
Replay Cast
6 days
Sparkling Tuna Cup
6 days
RSL Revival
6 days
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
6 days
Liquipedia Results

Completed

Proleague 2026-05-02
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W6
BSL 22 Non-Korean Championship
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.