• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:08
CEST 08:08
KST 15:08
  • 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
[ASL22] Finals Preview: Sweet Victory!9[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
Evil Geniuses - shutting down13ISSL (IntoTheTV x SOOP SC2 League): Premier5Weekly Cups (October 12-18): 5.0.17 era begins1[$1250] International ShieldBattery League55Weekly Cups (October 5-11): Farewell to 5.0.167
StarCraft 2
General
REPORT: StarCraft 2: Remastered In Development Evil Geniuses - shutting down How do you feel about the mass reverts in the 5.0.17 PTR? No more SC2 streamers on team liquid? Daily SC2 Player Grid - feedback wanted
Tourneys
ScienceCraft (October 24-25) - Live Event RSL goes to London! 2026 Offline Finals Nov 21-22 ISSL (IntoTheTV x SOOP SC2 League): Premier Sparkling Tuna Cup - Weekly Open Tournament WORTEX Challenger Series — Open SC2 LAN in Budapes
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps [A] Nemrods 1/4 players [M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
Mutation # 548 Shining Bright The PondCast: SC2 News & Results Mutation # 547 Temple Of Terror Mutation # 546 Catch the Train
Brood War
General
Starcraft player cRuZa Passed away. Young Players Tournament Announced by SOOP Rollback Netcode in Brood War SCHNAIL now supports Remastered BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 2v2v2v2 Tournament [ASL22] Grand Finals [Megathread] Daily Proleagues
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) 50,000-Word Terran Builds Memo 2026-10-22 Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Armies of Exigo - YesYes? General RTS Discussion Thread Dawn of War IV
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Artificial Intelligence Thread US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion!
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
How Much Genes Contribute to…
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 9662 users

The Big Programming Thread - Page 285

Forum Index > General Forum
Post a Reply
Prev 1 283 284 285 286 287 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.
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
April 16 2013 20:31 GMT
#5681
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?
LukeNukeEm
Profile Joined February 2012
31 Posts
April 16 2013 20:40 GMT
#5682
On April 17 2013 05:21 scudst0rm wrote:
Show nested quote +
On April 17 2013 05:09 LukeNukeEm wrote:
Hi guys.
I have a problem with tuples and vectors in c++.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::get<0>(tuple);
this works fine.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::vector<std::tuple<unsigned int, unsigned int, unsigned int>> vector;
vector.push_back(tuple);
std::get<0>(vector[0]);
this does not.
Error	10	error C2784: 'const _Ty &std::get(const std::array<_Ty,_Size> &) throw()' : could not deduce template argument for 'const std::array<_Ty,_Size> &' from 'std::tuple<<unnamed-symbol>,_V0_t,_V1_t>'
this is the errormessage on the last line. i'm not really that experienced with templates to understand all of it - any help?


This compiles fine for me. What compiler and version are you using?

#include <tuple>
jesus ..
halvorg
Profile Blog Joined October 2010
Norway717 Posts
April 16 2013 21:14 GMT
#5683
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


Well, I started learning haskell to broaden my horizon so to speak as I am a bit tired of java/.net object oriented EE bullshit. It is not like it is objectively superior to all other languages, but haskell is very fast (not as fast as C), succinct very easy to develop bug free code with. Whenever a haskell program/module compiles I am much more confident that it is bug free than when I compile a java or c program/module.

In my opinion, if you are familiar with the languages you mentioned, you have no reason to learn a new language unless you find it enjoyable.

On April 17 2013 05:26 iaretehnoob wrote:
Working fine in VS2012, FWIW. They fixed that operator >> ambiguity thing in C++11. See if it works with a typedef'd tuple type and/or with explicitly typecasting the result of the vector access.


Oops, my bad!

CptCutter
Profile Joined September 2010
United Kingdom370 Posts
April 16 2013 21:17 GMT
#5684
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


there are plenty of logical reasons to keep learning languages, although perhaps im the only one who keeps searching for improvement?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2013-04-16 21:55:46
April 16 2013 21:51 GMT
#5685
Although you're perhaps the only one fishing for a compliment? What was the point of the rest of that statement?


You learn new languages because you're interested in learning the nuances of the language that open your eyes to the limitations of other languages. But in most cases for most programmers, at least relatively new ones, there's a lot more to be learned from continuing to learn and program in a very broad and common language like Java, Python, C/C++, Ruby, etc. and going really deep into projects there, because you'll be getting concrete experience with a bunch of different, and likely more advanced projects.

And on the same vein, learning like that really only matters for computer scientists - theorists. You only learn different ways of thinking and approaching the problem. It's not really improvement if few of those nuances would be ever even be slightly relevant in your daily programming. In some cases it's detrimental because now you want to apply your new knowledge so much that instead of getting shit done, you keep looking for the "best way" to do it.

Learning is always recommended, but you definitely do not have to do that by constantly learning new languages, and you should definitely not feel like you are superior because you learn more languages than other people have learned.




On a side rant, I also dislike how hardcore they're trying to make programmers feel by calling some hackers or ninjas or superstars or something... and it's kinda worked.
There is no one like you in the universe.
Craton
Profile Blog Joined December 2009
United States17303 Posts
Last Edited: 2013-04-16 22:13:50
April 16 2013 22:12 GMT
#5686
On April 17 2013 06:17 CptCutter wrote:
Show nested quote +
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


there are plenty of logical reasons to keep learning languages, although perhaps im the only one who keeps searching for improvement?

Lateral knowledge isn't necessarily improvement. His question is more "what does this do better than the others."

If I can do the same thing three ways, who cares? If one of those ways does it faster / uses fewer resources / etc, THEN someone cares.
twitch.tv/cratonz
Kambing
Profile Joined May 2010
United States1176 Posts
April 17 2013 01:40 GMT
#5687
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


You already know Scheme, so you have an understanding of why functional programming is an essential programming paradigm that all computer scientists should understand. Fundamentally, what Haskell brings to the table over Scheme is that its strong type system bridges the gap between regular software development and formal verification and mathematical reasoning that your CS undergrad will teach you.

Pragmatically, the Haskell ecosystem is incredibly rich for a non-mainstream language. There are a ton of resources to help you get started (http://www.haskell.org) and the library/package system (cabal) is robust.
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
April 17 2013 02:39 GMT
#5688
On April 17 2013 07:12 Craton wrote:
Show nested quote +
On April 17 2013 06:17 CptCutter wrote:
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


there are plenty of logical reasons to keep learning languages, although perhaps im the only one who keeps searching for improvement?

Lateral knowledge isn't necessarily improvement. His question is more "what does this do better than the others."

If I can do the same thing three ways, who cares? If one of those ways does it faster / uses fewer resources / etc, THEN someone cares.


yes, this was precisely my question. My apologies if it wasn't clear.

I'm much more interested in learning how to program rather than learning a specific language, but if there's practical use in programming in a particular language, I'm interested now (rather than later, when I can learn leisurely)

On April 17 2013 10:40 Kambing wrote:
Show nested quote +
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


You already know Scheme, so you have an understanding of why functional programming is an essential programming paradigm that all computer scientists should understand. Fundamentally, what Haskell brings to the table over Scheme is that its strong type system bridges the gap between regular software development and formal verification and mathematical reasoning that your CS undergrad will teach you.

Pragmatically, the Haskell ecosystem is incredibly rich for a non-mainstream language. There are a ton of resources to help you get started (http://www.haskell.org) and the library/package system (cabal) is robust.


Alright cool, makes sense. I'd heard Haskell is popular in academia but never really knew why, apart from the lazy evaluation aspect.

And what about Ruby? Is it mostly just because of Rails and web development? Why Ruby over other languages?
DeltaX
Profile Joined August 2011
United States287 Posts
April 17 2013 04:18 GMT
#5689
On April 17 2013 11:39 wherebugsgo wrote:
And what about Ruby? Is it mostly just because of Rails and web development? Why Ruby over other languages?


I think Rails is the biggest part. Someone can correct me if I am wrong, but rails allows you to get going with a product sooner
which reduces costs at the start, but has issues with large products being slow if they get popular. This makes it attractive to more risky projects and startups since if the product does well, you should have enough money to do something about the weaker performance, but if it does not work out it cost much less to develop.
WindWolf
Profile Blog Joined July 2012
Sweden11767 Posts
April 17 2013 04:18 GMT
#5690
On April 17 2013 05:17 halvorg wrote:
Show nested quote +
On April 17 2013 05:09 LukeNukeEm wrote:
Hi guys.
I have a problem with tuples and vectors in c++.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::get<0>(tuple);
this works fine.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::vector<std::tuple<unsigned int, unsigned int, unsigned int>> vector;
vector.push_back(tuple);
std::get<0>(vector[0]);
this does not.
Error	10	error C2784: 'const _Ty &std::get(const std::array<_Ty,_Size> &) throw()' : could not deduce template argument for 'const std::array<_Ty,_Size> &' from 'std::tuple<<unnamed-symbol>,_V0_t,_V1_t>'
this is the errormessage on the last line. i'm not really that experienced with templates to understand all of it - any help?


Hey, I'm not all too strong in c++, but as far as I know you need to add a space between your last two >'s, the c++ compiler thinks you are using the '>>' operator.

I've been using Visual Studio 2010, and that hasn't been a problem for me when I've done stuff like

std::map<std::string, std::vector<sf::Sound*>>
EZ4ENCE
Kambing
Profile Joined May 2010
United States1176 Posts
April 17 2013 04:29 GMT
#5691
On April 17 2013 13:18 DeltaX wrote:
Show nested quote +
On April 17 2013 11:39 wherebugsgo wrote:
And what about Ruby? Is it mostly just because of Rails and web development? Why Ruby over other languages?


I think Rails is the biggest part. Someone can correct me if I am wrong, but rails allows you to get going with a product sooner
which reduces costs at the start, but has issues with large products being slow if they get popular. This makes it attractive to more risky projects and startups since if the product does well, you should have enough money to do something about the weaker performance, but if it does not work out it cost much less to develop.


Pretty much this. Ruby isn't fundamentally different from Python so preference over one versus the other (at least from a pure language perspective) is a matter of taste. Rails is a good web framework and what many people use Ruby for (and then consequently become Ruby converts down the road).
BritishPizza
Profile Joined April 2013
United States10 Posts
April 17 2013 14:06 GMT
#5692
Does hacking into someone else's computer require a lot of programming knowledge/skills?
ComaDose
Profile Blog Joined December 2009
Canada10357 Posts
April 17 2013 14:10 GMT
#5693
On April 17 2013 23:06 BritishPizza wrote:
Does hacking into someone else's computer require a lot of programming knowledge/skills?

No you just stand behind them when they put their password in....
BW pros training sc2 is like kiss making a dub step album.
Yoshi-
Profile Joined October 2008
Germany10227 Posts
April 17 2013 14:29 GMT
#5694
On April 17 2013 23:06 BritishPizza wrote:
Does hacking into someone else's computer require a lot of programming knowledge/skills?

Only an Axe
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
April 17 2013 14:37 GMT
#5695
On April 17 2013 23:06 BritishPizza wrote:
Does hacking into someone else's computer require a lot of programming knowledge/skills?


Well first you need to write a spline detector to comb the VHDL for the appropriate interface to allow you to successfully override a pointer to a pointer. You can then traverse the ether until you find the appropriate API and take over the keyboard.

Easy.
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
Last Edited: 2013-04-17 16:59:42
April 17 2013 16:59 GMT
#5696
On April 17 2013 23:06 BritishPizza wrote:
Does hacking into someone else's computer require a lot of programming knowledge/skills?

Well if you know of a pre-existing backdoor and can have the steps written out for you, then no.

If you want to come up with your own way of doing things you'll need an understanding of: networking, low level programming, hardware, and the inner-workings of whatever OS/software you're trying to gain malicious access to.

So either, "hacking another computer" is so unrealistic that it's not a thing or you have years of study.
Kambing
Profile Joined May 2010
United States1176 Posts
April 17 2013 18:43 GMT
#5697
On April 17 2013 13:18 WindWolf wrote:
Show nested quote +
On April 17 2013 05:17 halvorg wrote:
On April 17 2013 05:09 LukeNukeEm wrote:
Hi guys.
I have a problem with tuples and vectors in c++.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::get<0>(tuple);
this works fine.
std::tuple<unsigned int, unsigned int, unsigned int> tuple;
std::vector<std::tuple<unsigned int, unsigned int, unsigned int>> vector;
vector.push_back(tuple);
std::get<0>(vector[0]);
this does not.
Error	10	error C2784: 'const _Ty &std::get(const std::array<_Ty,_Size> &) throw()' : could not deduce template argument for 'const std::array<_Ty,_Size> &' from 'std::tuple<<unnamed-symbol>,_V0_t,_V1_t>'
this is the errormessage on the last line. i'm not really that experienced with templates to understand all of it - any help?


Hey, I'm not all too strong in c++, but as far as I know you need to add a space between your last two >'s, the c++ compiler thinks you are using the '>>' operator.

I've been using Visual Studio 2010, and that hasn't been a problem for me when I've done stuff like

std::map<std::string, std::vector<sf::Sound*>>


Yep. Parsing >> correctly (i.e., as the closing brackets of a template rather than left shift) is a C++ 11 feature. I believe several compilers already did this as a (non-compliant) language extension. But now it is standardized as it should be.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
April 17 2013 19:27 GMT
#5698
On April 17 2013 23:06 BritishPizza wrote:
Does hacking into someone else's computer require a lot of programming knowledge/skills?

Why are you guys misleading this poor fellow? As scholars, we have to assume his intentions are purely educational and help him.

You just need to write up a short script using visual basic that bypasses the hypervisor and then unhashes the md5 password on the computer before you set up a persistent server trojan on the hacked machine to remote into it using openssh. Of course the details will vary on what OS you're trying to hack.
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.
CptCutter
Profile Joined September 2010
United Kingdom370 Posts
April 17 2013 22:53 GMT
#5699
On April 17 2013 07:12 Craton wrote:
Show nested quote +
On April 17 2013 06:17 CptCutter wrote:
On April 17 2013 05:31 wherebugsgo wrote:
Can someone explain briefly, why are Haskell and Ruby popular/useful? I know Haskell is non-strict/features lazy evaluation and is a functional language but beyond that I'm pretty clueless. (undergrad CS so fairly newbie on this front)

My familiarity with programming languages is limited to Scheme, Python, Java, and C. What reasons are there to pick up others?


there are plenty of logical reasons to keep learning languages, although perhaps im the only one who keeps searching for improvement?

Lateral knowledge isn't necessarily improvement. His question is more "what does this do better than the others."

If I can do the same thing three ways, who cares? If one of those ways does it faster / uses fewer resources / etc, THEN someone cares.


soooo, you completely misunderstand what i said, and then state essentially what i said?

"His question is more "what does this do better than the others." " is that not a search for improvement? that he seems to be asking whether its worth it?

again: "If I can do the same thing three ways, who cares? If one of those ways does it faster / uses fewer resources / etc, THEN someone cares." is this not a search for improvement? which requires exploring new languages?

The exact question is stated to every single believer of religion from an aetheist, proove it. how do you know that C is among the quickest, if not the quickest, language out there? its because you can proove it. but being able to proove it to someone means that you have explored that language. One thing this does not tell you is whether it truly is the fastest.

Besides on another note, since when has 'ways does it faster / uses fewer resources / etc' ever been the only way of measuring a language? there are plenty of languages created for design problems, that are not as quick as C.

I see plenty of reasons to use and not use Java over C++, same could be said about C, python and scheme. There are other languages that could be given the same reason.
Craton
Profile Blog Joined December 2009
United States17303 Posts
April 18 2013 00:11 GMT
#5700
It was a nice way of not directly saying you post like a total douche.
twitch.tv/cratonz
Prev 1 283 284 285 286 287 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 52m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Leta 1630
Larva 236
Dota 2
NeuroSwarm231
LuMiX1
League of Legends
JimRising 668
Other Games
summit1g10323
C9.Mang0297
Livibee159
Sick87
Organizations
Other Games
gamesdonequick793
[ Show 10 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2179
Other Games
• Shiphtur583
Upcoming Events
FEL
2h 52m
Patches Events
6h 52m
AI Arena Tournament
10h 52m
FEL
1d 3h
Sparkling Tuna Cup
1d 3h
Replay Cast
1d 16h
WardiTV Weekly
2 days
IntoTheTV X SOOP
3 days
ByuN vs Lambo
MaxPax vs Bunny
PiGosaur Cup
3 days
The PondCast
4 days
[ Show More ]
Kung Fu Cup
4 days
IntoTheTV X SOOP
5 days
SHIN vs GuMiho
Clem vs Classic
WardiTV Invitational
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Acropolis #5 - GSC
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
BSL Season 23
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

IPSL Winter 2026-27
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
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.