• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:55
CET 14:55
KST 22:55
  • 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
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation4Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
[TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle Terran 1:35 12 Gas Optimization BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals [Megathread] Daily Proleagues
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Dawn of War IV
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1347 users

The Big Programming Thread - Page 573

Forum Index > General Forum
Post a Reply
Prev 1 571 572 573 574 575 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.
Manit0u
Profile Blog Joined August 2004
Poland17429 Posts
Last Edited: 2015-01-28 19:59:56
January 28 2015 19:38 GMT
#11441
On January 29 2015 04:04 darkness wrote:
Show nested quote +
On January 29 2015 04:03 bangsholt wrote:
On January 29 2015 03:56 darkness wrote:
On January 29 2015 02:18 Manit0u wrote:
On January 29 2015 02:08 bangsholt wrote:
And here all I do is just C, C# and the occasional Java when it's unavoidable. I seem to be missing out on so much


You're not. C++ is scrapcode. Nothing like glorious C or elegant C#

If you want truly elegant metaprogramming you need to look no further than Lisp, which is ahead of any other programming language since 1958


I disagree. C++ is really cool but some people do their best to make their code unreadable. "Glorious C" - good luck with that unsafe language. :D


I'm interpolating a bit here, but are you trying to say that C is unsafe and C++ is... safe?


Well, I've recently started learning C++ and I can say it looks safer so far. Provided that you use the right tools, of course.

Edit: C's macros immediately come to mind.

I'm also not saying C++ is completely safe, it obviously has a lot of undefined behaviour (e.g. dangling raw pointers) but I think it's safer than C.


Define "safe". The biggest plague of C++ is that it lets people who don't know any better do horrible things (mostly unknowingly), like overloading a comma operator or something. Not a big issue if you're working alone on some project, but if you have many contributors of vastly varying skill level you have the skilled guys painstakingly hunting down and fixing errors done by the less skilled people, which are much harder to track in the entire class hierarchy than a piece of C code. Also, STL and Boost, which provide you with nice features aren't the most stable, portable or optimized (even simple stuff like string concatenation can easily get out of hand).

Also relevant:

*hidden complexity*
(1) it's hard to say what code will compile down to. viz., constructors can
be elided, but there is no fitness warranty; profiling your compiler to find out
whether it is elided is tedious and "searching for secrets" that should be
_explicit_
(2) people don't understand static polymorphism and compile-time dispatch;
people are used to objects sending messages dynamically (run-time dispatch)
(3) coercion
(4) networks of objects are not explicitly laid out, hiding quadratically
complex patterns of communication between objects
(5) data structure and data flow come before algorithms. Sometimes, data
structure dictates data flow (ad-hoc networks of objects); sometimes, data flow
dictates data structure (one of life's most disagreeable tasks - waiting in line
- is characterized as FIFO). This, I feel, is the most important point, because
the first rule of programming is to figure out what you want to say before you
figure out how to say it. In C++, ad-hoc networks of objects with cyclic
message paths are all too easy to create [see (4)] which means _code_ _is_ _not_
_explicit_ and as a result _code_ _is_ _not_ _fast_.

*transfer semantics on objects are not robust*
this ties into (1) in hidden complexity
the code author needs to specify a lot of boilerplate to achieve desired
transfer semantics on objects. Similarly, the code audience, be it reviewer,
maintainer or merger, needs to read a lot of boilerplate to understand how
objects get moved around in memory. Moreover, most of these concepts are
intuitively declarative in nature, such as a parent object/child object relation.

*poor re-use of effort*
"code re-use" is a misnomer; when programmers speak of code-reuse they mean
re-use of effort. There is no benefit to polymorphism if effort cannot be
consolidated easily.

*C++ Standard iffy*
Some things just disappear quickly for *frantic* reasons (strstream was
removed for aesthetics), indicating not enough foresight into what is important.
I do not want to pick a language where I have to worry about features in it's
"standard library" becoming deprecated mainly for aesthetics. As Dijkstra
preached, programming is _not_ supposed to be a frantic exercise.

--
Z-Bo



[...]
The problem with C++ is that every C++ developer has his own style,
and reuse is an illusion within that style. Take a look at classes
implementing matrix arithmetic: there are as many around as the day is
long, and all of them are incompatible with one another.

With regard to programming styles, C++ does not support multiple
inheritance. For a single project grown from a single start, you can
get reasonable solutions. But combining stuff is creating maintenance
messes.

With C, the situation is not dissimilar, but you spent less time
fighting the illusion that you don't need to reimplement, anyway.

The difference is that you can pass structures from one library into
another with tolerable efficiency. Because there are only basically 2
ways to lay out a two-dimensional array of floats.
[...]

Care to explain why there are still not two numerical C++ libraries
with compatible matrix classes?

What use is talking about portability and high level when a basic
interoperability feature that has been available since the sixties
(more than 4 decades ago) in Fortran has not yet managed to make it
into C++? C++ by now more or less offers a (somewhat deficient)
standardized way to work with complex numbers, but matrices are still
not standardized in any manner, and libraries won't interoperate.

So C++ should get its head wrapped around the _low_ level problems
first. It is a bloody shame that it still has not caught up with
Fortran IV (or even Fortran II) with regard to usefulness for
numerical libraries.

It is not a matter of "hating high level" to see that C++ is mostly
focused about addressing the wrong kinds of problems in the wrong
ways. The pain/gain ratio is just bad.
[...]

Making a language huge and bloated in order to be able to use the
language itself for defining a set of basic data types is just
masturbation. C++ has the most complicated set of implicit
conversions from any language in the world, and what for? It is
modeled for being able to create a user-defined "complex" type which
behaves almost as well as Fortran's. Too bad that this mostly means
everybody will define his own type (well, at least we have seen two or
three different library "standards" by now), and that the implicit
conversion rules and chains are appallingly wrong for a number of
other possible user-defined arithmetic types.

--
David Kastrup
Time is precious. Waste it wisely.
BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
January 28 2015 20:50 GMT
#11442
Question for you guys coming from someone that does mainly webdev and .NET stuff.

I'm looking to create some mobile app (ideally and eventually for both the Android and iOS markets).

Is my understanding that for Android you use Java and for iOS either swift or objective-c correct?

If I have a choice between learning swift versus objective-c, which would you say is the better path?

And any generally recommendations for a newbie wanting to learn mobile app development would be pretty sweet!
WHAT'S HAPPENIN
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-01-28 21:08:41
January 28 2015 21:05 GMT
#11443
Even with a Computer Science degree, I cannot appreciate Dijkstra's programming views, so I can only sympathise with ill souls who believe and quote him. That said, he is right about goto's but that's it. Other than that, I'm not going into language religious wars. I'm happy with the programming languages I use at work, and you may continue to use whatever language you use. Just note that "varying levels" of programming skills applies to all languages not just C++ or any particular.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
January 28 2015 21:15 GMT
#11444
Swift because Objective-C is going to be outdated. Unless you need to release in the next 3 months, no point in learning that mess.
There is no one like you in the universe.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-01-28 21:28:09
January 28 2015 21:26 GMT
#11445
@manitou
your ignorance will always reveal itself
when you attempt to give insights into
a language you know little about.

try to keep it constructive, and
focus on the languages you know and like.
conspired against by a confederacy of dunces.
bangsholt
Profile Joined June 2011
Denmark138 Posts
January 28 2015 21:29 GMT
#11446
On January 29 2015 05:50 BlueRoyaL wrote:
Question for you guys coming from someone that does mainly webdev and .NET stuff.

I'm looking to create some mobile app (ideally and eventually for both the Android and iOS markets).

Is my understanding that for Android you use Java and for iOS either swift or objective-c correct?

If I have a choice between learning swift versus objective-c, which would you say is the better path?

And any generally recommendations for a newbie wanting to learn mobile app development would be pretty sweet!


Xamarin. Costs money but saves effort in the sense that it's write the core once, port to Windows Mobile/Android/iOS. If you look into Xamarin.Forms you can even make the interfaces look cool with the same pieces of code.

Best of all Xamarin is C#.
bangsholt
Profile Joined June 2011
Denmark138 Posts
January 28 2015 21:38 GMT
#11447
On January 29 2015 06:05 darkness wrote:
Even with a Computer Science degree, I cannot appreciate Dijkstra's programming views, so I can only sympathise with ill souls who believe and quote him. That said, he is right about goto's but that's it. <snip generic stuff about languages>


You disagree with his programming views?

I mean, as an example, the goto paper is about using structured programming instead of using goto as control structures, to make code easier to write and to debug because you won't be jumping all over the place ^_^

Or do you dislike his algorithms? I really don't follow what you mean :D
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-01-28 21:49:06
January 28 2015 21:44 GMT
#11448
On January 29 2015 06:38 bangsholt wrote:
Show nested quote +
On January 29 2015 06:05 darkness wrote:
Even with a Computer Science degree, I cannot appreciate Dijkstra's programming views, so I can only sympathise with ill souls who believe and quote him. That said, he is right about goto's but that's it. <snip generic stuff about languages>


You disagree with his programming views?

I mean, as an example, the goto paper is about using structured programming instead of using goto as control structures, to make code easier to write and to debug because you won't be jumping all over the place ^_^

Or do you dislike his algorithms? I really don't follow what you mean :D


His algorithms aren't exactly programming related, so I didn't mean that. However, his hatred towards OOP is a prime example why I don't agree with his programming views. I also said I agree with goto's criticism.

Edit:

Object-oriented programming is an exceptionally bad idea which could only have originated in California.
-Edsger Dijkstra
Manit0u
Profile Blog Joined August 2004
Poland17429 Posts
January 28 2015 21:52 GMT
#11449
On January 29 2015 06:26 nunez wrote:
@manitou
your ignorance will always reveal itself
when you attempt to give insights into
a language you know little about.

try to keep it constructive, and
focus on the languages you know and like.


All in good faith I never was much into Language Wars so don't take my views on it very seriously. Also, I quoted some stuff I've found interesting (without the over-used Torvalds' C++ bashing) in hopes that perhaps someone can clarify that or post counter-arguments.
Time is precious. Waste it wisely.
TMG26
Profile Joined July 2012
Portugal2017 Posts
Last Edited: 2015-01-28 21:59:01
January 28 2015 21:57 GMT
#11450




Object-oriented programming is an exceptionally bad idea which could only have originated in California.
-Edsger Dijkstra




I agree with that statement.
Supporter of the situational Blink Dagger on Storm.
slmw
Profile Blog Joined October 2010
Finland233 Posts
January 28 2015 21:59 GMT
#11451
On January 29 2015 06:15 Blisse wrote:
Swift because Objective-C is going to be outdated. Unless you need to release in the next 3 months, no point in learning that mess.


That is simply not true. Objective-C will stay and be the main platform of iOS development for a long long time. Swift however is not even 'complete' yet - it has plenty of deficiencies and incomplete features.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
January 28 2015 22:00 GMT
#11452
if you think you are man enough
to make a meaningful critique,
go ahead and make it, instead of
spamming vacuous nonsense.

however if you are having problems
coming to terms with operator overloading,
then i suggest you leave it be.
conspired against by a confederacy of dunces.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
January 29 2015 02:34 GMT
#11453
--- Nuked ---
MichaelEU
Profile Joined February 2011
Netherlands816 Posts
January 29 2015 03:33 GMT
#11454
An example of a good non-programming book I personally recommend would be Coders at Work. It's interviews with known programmers (Joshua Bloch, Knuth, Ken Thompson, etc.), a lot of history and anecdotes. Very interesting read.
世界を革命する力を!― znf: "Michael-oniichan ( *^▽^*)ノ✩キラ✩"
ZenithM
Profile Joined February 2011
France15952 Posts
January 29 2015 04:27 GMT
#11455
I never can't know if nunez is trying to write poetry or if he's just writing TL posts with emacs.
Prillan
Profile Joined August 2011
Sweden350 Posts
January 29 2015 06:07 GMT
#11456
On January 29 2015 13:27 ZenithM wrote:
I never can't know if nunez is trying to write poetry or if he's just writing TL posts with emacs.

It all makes sense now!
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Manit0u
Profile Blog Joined August 2004
Poland17429 Posts
Last Edited: 2015-01-29 06:22:19
January 29 2015 06:20 GMT
#11457
Just to warn you:

https://community.qualys.com/blogs/laws-of-vulnerabilities/2015/01/27/the-ghost-vulnerability
Time is precious. Waste it wisely.
iNsaNe-
Profile Joined January 2005
Finland5201 Posts
January 29 2015 15:22 GMT
#11458
On January 29 2015 06:44 darkness wrote:
Object-oriented programming is an exceptionally bad idea which could only have originated in California.
-Edsger Dijkstra



Well, according to Google he never even said that. There is this though:


(For those who have wondered: I don't think object-oriented programming is a structuring paradigm that meets my standards of elegance.)
It takes a fool to remain sane.
Manit0u
Profile Blog Joined August 2004
Poland17429 Posts
Last Edited: 2015-01-29 22:02:16
January 29 2015 17:10 GMT
#11459
Guys, can you help? Have you encountered such a thing before?

-- nevermind, it's the easiest things that get you (as usual), should have thought about not using the wrappers included in the project by previous programmers and go for the basic thing instead --
Time is precious. Waste it wisely.
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
January 29 2015 17:25 GMT
#11460
Yesterday I implemented UDP in Ada in a stupid way(by using streams). What would be the best way to do this?
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Prev 1 571 572 573 574 575 1032 Next
Please log in or register to reply.
Live Events Refresh
Kung Fu Cup
12:00
2025 Monthly #3: Day 1
Reynor vs GuMihoLIVE!
ByuN vs ShoWTimE
RotterdaM523
TKL 182
Rex146
IntoTheiNu 103
SteadfastSC88
Liquipedia
OSC
11:30
Mid Season Playoffs
Cure vs SpiritLIVE!
Krystianer vs Percival
WardiTV446
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 523
Reynor 227
TKL 182
Rex 146
SteadfastSC 88
StarCraft: Brood War
Calm 4495
Rain 2923
Bisu 2701
Hyuk 2015
Horang2 1304
Flash 797
Soma 464
Backho 369
Stork 340
Rush 261
[ Show more ]
Pusan 197
Last 133
Soulkey 115
JulyZerg 104
Barracks 79
hero 58
sSak 33
zelot 31
Aegong 28
sas.Sziky 24
Killer 23
Terrorterran 11
Noble 9
Hm[arnc] 7
Dota 2
Gorgc2155
qojqva1591
Dendi1136
XcaliburYe181
BananaSlamJamma86
Counter-Strike
olofmeister911
allub158
Super Smash Bros
Mew2King127
Other Games
B2W.Neo990
hiko295
DeMusliM285
Pyrionflax260
Sick170
Fuzer 164
Hui .86
QueenE46
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 9
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1641
• WagamamaTV400
League of Legends
• Nemesis1689
• TFBlade702
Upcoming Events
Tenacious Turtle Tussle
9h 5m
The PondCast
20h 5m
RSL Revival
20h 5m
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
22h 5m
WardiTV Korean Royale
22h 5m
PiGosaur Monday
1d 11h
RSL Revival
1d 20h
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
1d 22h
CranKy Ducklings
2 days
RSL Revival
2 days
herO vs Gerald
ByuN vs SHIN
[ Show More ]
Kung Fu Cup
2 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
3 days
RSL Revival
3 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Wardi Open
4 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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.