• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:46
CEST 08:46
KST 15:46
  • 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
[ASL20] Ro24 Preview Pt2: Take-Off6[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax5Maestros of The Game—$20k event w/ live finals in Paris30Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
Weekly Cups (Aug 18-24): herO dethrones MaxPax What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : A Eulogy for the Six Pool Geoff 'iNcontroL' Robinson has passed away 2v2 & SC: Evo Complete: Weekend Double Feature
Tourneys
WardiTV Mondays Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
No Rain in ASL20? BW General Discussion Flash On His 2010 "God" Form, Mind Games, vs JD BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ro24 Preview Pt2: Take-Off
Tourneys
[ASL20] Ro24 Group E [ASL20] Ro24 Group F [Megathread] Daily Proleagues [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV 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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1954 users

The Big Programming Thread - Page 201

Forum Index > General Forum
Post a Reply
Prev 1 199 200 201 202 203 1031 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2012-11-22 22:46:27
November 22 2012 22:46 GMT
#4001
On November 23 2012 06:51 phar wrote:
Show nested quote +
On November 22 2012 16:09 Craton wrote:I would definitely never assume others are right, though. That's always a disaster waiting to happen. You should take what anyone says with a many grains of salt and do more research on it.

Yea, I meant assume other people at my work are right, not in some random online forum. At work I'm surrounded by people who are significantly better than me at programming and smarter in general, so it's a pretty safe bet. Even if they do end up being wrong, I stand by what I initially said. It works more often than not to start from their position and go from there, working through the logic.


No.
Other people are always wrong.
You are also always wrong.

With those 2 rules, you will find it a 100 times easier to fix problems.
I don't know how often i had to debug the code of some coworker and he said "here, this part is wrong" and by ignoring him and stepping through everything properly myself, i found out that the error was a hundred lines before the point he called wrong. If i had accepted that he was right, i would have spent hours more checking for the problem at the wrong place instead of checking the whole process for the right spot.

Accept that everyone makes mistakes - great programmer or not - and triple-check every assumption, your own as well as those of others. Every assumption will turn out being wrong.
phar
Profile Joined August 2011
United States1080 Posts
November 23 2012 00:50 GMT
#4002
Debugging code is a whole different ballgame, in which all bets are off, up is down, left is right, and heisenbugs rape your sleep.

For context, I was just talking about design decisions, at the level of how to structure systems or which libraries are appropriate. You're entirely correct about debugging actual code.
Who after all is today speaking about the destruction of the Armenians?
Craton
Profile Blog Joined December 2009
United States17250 Posts
Last Edited: 2012-11-23 00:54:44
November 23 2012 00:54 GMT
#4003
Years back when I was interning we had an ASP.NET solution that had a custom-built library that handled all of the database interactions (it was a really cool system, but way above my head at the time). I worked with one other intern.

One day I'm working on something and getting bizarre results from the DB (iirc the library was returning things as the wrong kind of object) and I couldn't figure out why. I went and got some help from a veteran developer and he's sitting down at my machine, manages to reproduce the bug, but can't figure out why it's being weird. After 10 minutes or so of trying different things, everything starts working correctly. The code was never changed, but suddenly it went from unexpected errors to a-okay. Yes, cleaning and rebuilding was the first thing we tried.

It's that kind of thing that drives you mad. The absolute worst kind of bug is one you know existed and you never fixed because you know at some point down the road it's gonna be back.
twitch.tv/cratonz
JeanLuc
Profile Joined September 2010
Canada377 Posts
November 23 2012 01:25 GMT
#4004
This is not a well thought out question but I was wondering about this:

in C++ when a compiler optimizes a loop does it sometimes translate it to a bunch of inline statements with && and || ?
If you can't find it within yourself to stand up and tell the truth-- you don't deserve to wear that uniform
Fyodor
Profile Blog Joined September 2010
Canada971 Posts
November 23 2012 01:39 GMT
#4005
On November 23 2012 10:25 JeanLuc wrote:
This is not a well thought out question but I was wondering about this:

in C++ when a compiler optimizes a loop does it sometimes translate it to a bunch of inline statements with && and || ?

The Compiler often translates stuff in structures that are not even intelligible to humans.
llllllllllllllllllllllllllllllllllllllllllll
Fyodor
Profile Blog Joined September 2010
Canada971 Posts
November 23 2012 01:49 GMT
#4006
On November 23 2012 07:46 Morfildur wrote:
Show nested quote +
On November 23 2012 06:51 phar wrote:
On November 22 2012 16:09 Craton wrote:I would definitely never assume others are right, though. That's always a disaster waiting to happen. You should take what anyone says with a many grains of salt and do more research on it.

Yea, I meant assume other people at my work are right, not in some random online forum. At work I'm surrounded by people who are significantly better than me at programming and smarter in general, so it's a pretty safe bet. Even if they do end up being wrong, I stand by what I initially said. It works more often than not to start from their position and go from there, working through the logic.


No.
Other people are always wrong.
You are also always wrong.

With those 2 rules, you will find it a 100 times easier to fix problems.
I don't know how often i had to debug the code of some coworker and he said "here, this part is wrong" and by ignoring him and stepping through everything properly myself, i found out that the error was a hundred lines before the point he called wrong. If i had accepted that he was right, i would have spent hours more checking for the problem at the wrong place instead of checking the whole process for the right spot.

Accept that everyone makes mistakes - great programmer or not - and triple-check every assumption, your own as well as those of others. Every assumption will turn out being wrong.

That advice contradicts itself lol
llllllllllllllllllllllllllllllllllllllllllll
Pawsom
Profile Blog Joined February 2009
United States928 Posts
November 23 2012 01:56 GMT
#4007
On November 23 2012 10:25 JeanLuc wrote:
This is not a well thought out question but I was wondering about this:

in C++ when a compiler optimizes a loop does it sometimes translate it to a bunch of inline statements with && and || ?

http://en.wikipedia.org/wiki/Loop_optimization
Mstring
Profile Joined September 2011
Australia510 Posts
November 23 2012 02:04 GMT
#4008
On November 23 2012 10:25 JeanLuc wrote:
This is not a well thought out question but I was wondering about this:

in C++ when a compiler optimizes a loop does it sometimes translate it to a bunch of inline statements with && and || ?


It comes down to the specific compiler and its configuration. Some compilers have an 'unroll loops' switch which does what you might be thinking about here.
phar
Profile Joined August 2011
United States1080 Posts
November 23 2012 06:01 GMT
#4009
On November 23 2012 09:54 Craton wrote:I went and got some help from a veteran developer and he's sitting down at my machine, manages to reproduce the bug, but can't figure out why it's being weird. After 10 minutes or so of trying different things, everything starts working correctly.

One of my co-workers used to be a professor of theoretical physics, so whenever that happened with him around we'd blame it on the negation field:

http://www.phdcomics.com/comics/archive.php?comicid=821
Who after all is today speaking about the destruction of the Armenians?
zatic
Profile Blog Joined September 2007
Zurich15343 Posts
November 23 2012 09:16 GMT
#4010
On November 22 2012 22:18 tec27 wrote:
You shouldn't need to poll. The change event should do everything you need.

You are most likely right. This gig is so wrong ... I am hired for close to $10k to write like 20 lines of code.
ModeratorI know Teamliquid is known as a massive building
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
November 23 2012 09:40 GMT
#4011
On November 23 2012 18:16 zatic wrote:
Show nested quote +
On November 22 2012 22:18 tec27 wrote:
You shouldn't need to poll. The change event should do everything you need.

You are most likely right. This gig is so wrong ... I am hired for close to $10k to write like 20 lines of code.

That's the awesome part of this job. A few years back, I was hired to move data between excel files or something like that, I got like 2 weeks paid to do this... did it in 1-2 hours using normal sorting and copy+paste. When the people who pay the money don't understand something enough to make reasonable estimates, it's a good day to make money.
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
November 23 2012 09:54 GMT
#4012
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...
England will fight to the last American
heishe
Profile Blog Joined June 2009
Germany2284 Posts
November 23 2012 10:14 GMT
#4013
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
November 23 2012 10:19 GMT
#4014
On November 23 2012 19:14 heishe wrote:
Show nested quote +
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.

Hmm, it's not a problem where I'm working... it's a big company though and the business part and the developer part are kept seperate, the business part can't make proper estimations for us developers, we make the estimations and then they decide if they are willing to pay for it, internally.
Fyodor
Profile Blog Joined September 2010
Canada971 Posts
November 23 2012 10:30 GMT
#4015
On November 23 2012 19:14 heishe wrote:
Show nested quote +
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.

you're funny... game development isn't exactly known to be laid-back, slacker-friendly work.
llllllllllllllllllllllllllllllllllllllllllll
zatic
Profile Blog Joined September 2007
Zurich15343 Posts
November 23 2012 10:37 GMT
#4016
On November 23 2012 19:19 Tobberoth wrote:
Show nested quote +
On November 23 2012 19:14 heishe wrote:
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.

Hmm, it's not a problem where I'm working... it's a big company though and the business part and the developer part are kept seperate, the business part can't make proper estimations for us developers, we make the estimations and then they decide if they are willing to pay for it, internally.

If it's all in house that should work. In consulting it's more like:

Customer: Hey, we need this and this.
Sales rep: No problem! We can do ANYTHING! And it'll cost you less than getting the same from Consultancy X!
Customer: Great! It's a wrap!

Sales rep: Sup, here are the business specs for a 2 year project. You have 6 weeks.
Consultant: ...
ModeratorI know Teamliquid is known as a massive building
heishe
Profile Blog Joined June 2009
Germany2284 Posts
November 23 2012 10:52 GMT
#4017
On November 23 2012 19:30 Fyodor wrote:
Show nested quote +
On November 23 2012 19:14 heishe wrote:
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.

you're funny... game development isn't exactly known to be laid-back, slacker-friendly work.


But it doesn't rely on external estimations of your work! Being indie you have no limitation (except until you and your companions run out of food) and with a publishers you have a budget (that can possibly even be extended) that you know about beforehand. In both cases, you're the one who has the last say in what's doable and what's not, and you're not handed three months to complete a project which would be more fit for a year

In other words, if you fuck up, it's most likely your fault for wanting to do too much.
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
PandaCore
Profile Blog Joined September 2010
Germany553 Posts
Last Edited: 2012-11-23 14:02:07
November 23 2012 13:54 GMT
#4018
On November 23 2012 19:14 heishe wrote:
+ Show Spoiler +
On November 23 2012 18:54 KaiserJohan wrote:
On the other hand it sucks when they who do not understand how things work tend to underestimate the amount of time it takes to make it work...


Which is unfortunately the majority of the time for business app developers, according to every story I've ever heard from business-devs.

Good thing I'm going to be in research or game development forever.

I just know that too well. I've been working as an app developer for almost 10 years now, mainly on customer specific solutions. There's a huge lack of consulting between sales and development, so I never really get the time I need. Often when you finished the first version of the software according to specification the customer starts to get ideas which may look simple to him, but more often than not required complete reworking of integral parts.

It's often a vicious circle, not enough time, not enough information, customer does not know what he wants, sales always wants to sell and makes compromises.

Also can't even count how many times I've made total switches between programming languages and right now regularely have to switch between different ones, because most of our projects aren't in the same language (currently C, C++, C#(.NET), Visual Basic (legacy software support, ugh), Delphi, Java).

Is anyone else in a similar situation and how do you cope with that? When I have to switch between 3 languages and 3 different projects in one day I always need a few minutes to adjust to the syntax again and often catch myself trying to use Delphi syntax in C or something like that. Quite straining sometimes to be honest...
I has a flavor
Craton
Profile Blog Joined December 2009
United States17250 Posts
Last Edited: 2012-11-23 18:17:28
November 23 2012 18:17 GMT
#4019
We don't really have a "sales" team where I work (we are government contractors). Government puts out RFPs and then we have a project manager and technical manager write the proposal, which includes doing the time estimations.

It's really stupid for any company to have someone doing time, labor, and material estimations that isn't an experienced project/technical manager.
twitch.tv/cratonz
chindy
Profile Joined September 2011
82 Posts
November 24 2012 23:38 GMT
#4020
Hi everyone,
I was programming a few programms about 2 years ago. I was trying Java back then.
But the my school and everything came together and i stopped doing anything in this direcion.
Now i want to start again maybe with C#. But i cant get an idea neither can i get any help...
I wanted to know if i could help anybody with a project he´s working on... or anything like this to get me in touch with programming again.
Prev 1 199 200 201 202 203 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 3h 15m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 96
StarCraft: Brood War
Sea 2684
Horang2 2152
Backho 464
Stork 283
ggaemo 270
Tasteless 225
Larva 198
PianO 151
Pusan 150
Nal_rA 109
[ Show more ]
Icarus 10
Dota 2
NeuroSwarm81
Counter-Strike
m0e_tv1259
Stewie2K745
semphis_34
Other Games
summit1g8315
tarik_tv7449
singsing639
WinterStarcraft495
C9.Mang0292
SortOf80
Organizations
Other Games
gamesdonequick637
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH355
• Sammyuel 20
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1253
• Lourlo975
• Stunt477
Upcoming Events
Afreeca Starleague
3h 15m
hero vs Alone
Royal vs Barracks
Replay Cast
17h 15m
The PondCast
1d 3h
WardiTV Summer Champion…
1d 4h
Clem vs Classic
herO vs MaxPax
Replay Cast
1d 17h
LiuLi Cup
2 days
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
2 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
2 days
Team Hawk vs Team Dewalt
BSL Team Wars
2 days
Team Hawk vs Team Bonyth
SC Evo League
3 days
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
[ Show More ]
Maestros of the Game
3 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
3 days
SC Evo League
4 days
Maestros of the Game
4 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
4 days
Team Bonyth vs Team Sziky
BSL Team Wars
4 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

CSLAN 3
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 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.