• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:18
CET 10:18
KST 18:18
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !11Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2
StarCraft 2
General
ComeBackTV's documentary on Byun's Career ! Team TLMC #5: Winners Announced! What's the best tug of war? The Grack before Christmas Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies
Tourneys
OSC Season 13 World Championship $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament Winter Warp Gate Amateur Showdown #1
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement
Brood War
General
BW General Discussion How soO Began His ProGaming Dreams Klaucher discontinued / in-game color settings BGH Auto Balance -> http://bghmmr.eu/ Recommended FPV games (post-KeSPA)
Tourneys
[Megathread] Daily Proleagues [BSL21] LB SemiFinals - Saturday 21:00 CET [BSL21] WB & LB Finals - Sunday 21:00 CET Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Mechabellum Stormgate/Frost Giant Megathread Beyond All Reason Path of Exile
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread 12 Days of Starcraft The Games Industry And ATVI Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced Where to ask questions and add stream?
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Saturation point
Uldridge
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1598 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 States17274 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 States17274 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 42m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Larva 753
Jaedong 596
Mong 418
Stork 400
hero 160
sorry 140
Shuttle 116
Sharp 112
Sacsri 75
Pusan 60
[ Show more ]
NotJumperer 39
ToSsGirL 36
Rush 33
NaDa 23
JulyZerg 12
Terrorterran 11
eros_byul 0
Dota 2
XcaliburYe36
League of Legends
JimRising 597
C9.Mang0468
Counter-Strike
summit1g9642
minikerr64
Other Games
Happy308
mouzStarbuck293
XaKoH 156
trigger12
Organizations
Other Games
gamesdonequick881
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1534
• Jankos679
Upcoming Events
Sparkling Tuna Cup
42m
Krystianer vs Classic
TriGGeR vs SKillous
Percival vs Ryung
ByuN vs Nicoract
OSC
8h 42m
BSL 21
10h 42m
Cross vs Dewalt
Replay Cast
23h 42m
Wardi Open
1d 2h
OSC
2 days
Solar vs MaxPax
ByuN vs Krystianer
Spirit vs TBD
OSC
5 days
Korean StarCraft League
5 days
OSC
6 days
OSC
6 days
Liquipedia Results

Completed

Escore Tournament S1: W1
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL Season 21
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025

Upcoming

CSL 2025 WINTER (S19)
Escore Tournament S1: W2
Escore Tournament S1: W3
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.