• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:55
CET 19:55
KST 03: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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly) RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
[ASL20] Ask the mapmakers — Drop your questions BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread ZeroSpace Megathread The Perfect Game 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 TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
I decided to write a webnov…
DjKniteX
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1332 users

The Big Programming Thread - Page 268

Forum Index > General Forum
Post a Reply
Prev 1 266 267 268 269 270 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.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
March 12 2013 23:31 GMT
#5341
On March 12 2013 09:35 fabiano wrote:
HCI is just common sense...

Yes, it's amazing how often you find software with horribly made interfaces (Bnet 2.0 is a great example), but still... it all comes down to common sense.

I like to believe that whenever I see a badly designed interface it was just the team who neglected UI in order to prioritize more important functionalities on a tight schedule.

"Common sense" is not accurate at all. A large majority of issues with UI is that what's obvious to a designer is completely non-obvious to a common user...or likewise, the common user is far more intuitive about something than a designer believes.

For some more extreme examples, think about double clicking icons. Completely obvious to someone who has used a computer. For someone that hasn't, there is absolutely no leap of logic that would ever allow you to reach a conclusion that clicking twice in quick succession activates a button. And after learning that, you will flounder for a long time trying to figure out which buttons need one click, which need two, which need right clicks, etc.

Or conversely, think about the iPod scroll wheel. Lots of designers wouldn't believe that users could easily comprehend having a circular interface for moving every aspect of interface control, yet in actual practice it's incredibly simple to understand.

Not to mention other aspects like how to make sure something is noticed by every user, or how to make a drastic change unnoticeable.

If you go into UI design thinking using common sense, you will fail.
Average means I'm better than half of you.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
March 12 2013 23:49 GMT
#5342
On March 13 2013 08:31 WolfintheSheep wrote:
Show nested quote +
On March 12 2013 09:35 fabiano wrote:
HCI is just common sense...

Yes, it's amazing how often you find software with horribly made interfaces (Bnet 2.0 is a great example), but still... it all comes down to common sense.

I like to believe that whenever I see a badly designed interface it was just the team who neglected UI in order to prioritize more important functionalities on a tight schedule.

"Common sense" is not accurate at all. A large majority of issues with UI is that what's obvious to a designer is completely non-obvious to a common user...or likewise, the common user is far more intuitive about something than a designer believes.

For some more extreme examples, think about double clicking icons. Completely obvious to someone who has used a computer. For someone that hasn't, there is absolutely no leap of logic that would ever allow you to reach a conclusion that clicking twice in quick succession activates a button. And after learning that, you will flounder for a long time trying to figure out which buttons need one click, which need two, which need right clicks, etc.

Or conversely, think about the iPod scroll wheel. Lots of designers wouldn't believe that users could easily comprehend having a circular interface for moving every aspect of interface control, yet in actual practice it's incredibly simple to understand.

Not to mention other aspects like how to make sure something is noticed by every user, or how to make a drastic change unnoticeable.

If you go into UI design thinking using common sense, you will fail.


Yeah, UI design is actually incredibly hard. You have to learn to look at a UI from the perspective of a non-programmer, which is something only few programmers can actually do. It's all about managing expectations and deriving from what most of your userbase is used to, not reinventing the wheel even if it might be easier or more logical.

Then there are lots of tiny details you have to look for that you might not think about. As an example, my last company developed websites and we did a huge redesign where we upgrades the look of all websites and it looked quite fancy with rounded borders, javascript and all that. Noone of us saw anything really wrong with it except for a few bugs that were to fix, the web designers seemed to have done a good job at making it pretty and useable.

Then i showed it to my parents and the first thing they did was to adjust their glasses, moved a lot closer to the screen and said "Why is the text so small?". The web designers had made everything in a clear arial font of similar size as the sidebar here. That is ok for a site like TL where most of the userbase is fairly young and has good eyes but a lot of our userbase was quite a lot older and as such had problems with their eyes, so the small font was actually a real problem noone had thought about. We had spent hours looking at usecases where we tried to figure out what users would expect when they click something and what stuff they would expect to be clickable... but we never thought about the fact that our users might not be able to read it in the first place.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
Last Edited: 2013-03-13 00:14:34
March 13 2013 00:08 GMT
#5343
On March 10 2013 11:22 CptCutter wrote:
Show nested quote +
On March 10 2013 08:31 darkness wrote:
I'm glad I don't have to deal with my C module at university anymore. I'm awaiting C++ which should be much more decent in my opinion because I come from Java background, and I like the concept of object oriented languages. I also like to have rich available libraries instead of starting from scratch.

The bad thing is... the lecturer would only allocate about 1-2 weeks for C++, and then the other 3 would be for Objective-C. I guess I should have a look if I can get XCode and Mac on VMWare as I don't want to go to uni lab that frequently.


drop the notions of ' c++ will be far better than C because i come from a java background ', depending on how much C you have learned, C++ will open your eyes to the amount of complexity and the ways in which computers work compared to java. I too came from java and went into being taught c++ ( not C, but we were first taught procedural programming in c++, and the only thing that separates it is the fact that you allocate memory completely by yourself with malloc and such).

even though i find C++ such a huge pain in the ass, it has taught me far more than java ever would have, which is why i guess that java is the begginer language whilst c++ is not.

on another note, anyone here using D? as far as i can see, the only disadvantage of using it over C++ is the fact that C++ is more widely used in the world?

Love D, but do not have time to spend too much playing with it. There are some quirks I dislike, but in general I find it to be quite awesome language. Shame that Microsoft did not base C# on it or did not just pick D outright.

EDIT: Point being that then there would be plenty libraries for it and I could use it at work
Weson
Profile Blog Joined December 2010
Iceland1032 Posts
Last Edited: 2013-03-13 06:52:41
March 13 2013 06:51 GMT
#5344
Anyone here that is good with java EE?

I wonder if it's possible to somehow fill a transient variable with data through a SQL query. I'm going to try and illustrate what i got.
So i got a Entity called items. It has a primary key called itemid and store data related to stuff that are sold in a store. The entity also have a transient variable that i wish to give data that represent the average rating score. I got the ratings in it's own entity, creating it's own table. It has two foreign keys and those are the itemid from the item table and a userid from a user table. So i wonder are there any way i can give the transient field a value through a SQL query like if i modify the findAllItemById NamedQuery or something?
"!@€#" - as some guy said
Frigo
Profile Joined August 2009
Hungary1023 Posts
March 13 2013 11:08 GMT
#5345
On March 13 2013 07:00 Frigo wrote:
Show nested quote +
On March 13 2013 02:21 ragz_gt wrote:
Does anyone know if there is a JUnit contrib that allow customizable test execution order?

I remember such a feature in a newer JUnit release. It can at least randomize orders I believe, not sure about a user-defined order though.
Can tell you more details tomorrow when I have access to work mail.


http://www.hascode.com/2012/11/new-features-in-junit-4-11/

Yeah, it is possible.
http://www.fimfiction.net/user/Treasure_Chest
WindWolf
Profile Blog Joined July 2012
Sweden11767 Posts
March 13 2013 12:32 GMT
#5346
Visual Studio 2010, C++ question.

When building my program, the build takes time to do this

1>Link:
1> Generating code

Could that be because the project I'm working on is kinda big (~170 code files excluding externals), or is there something I can do to improve that because my group mate, who has the same laptpo and everything doesn't seem to have this "problem" (It builds perfectly, it is just that it takes time to build it)
EZ4ENCE
DertoQq
Profile Joined October 2010
France906 Posts
March 13 2013 13:24 GMT
#5347
Only include what is needed for each .cpp file and use forward declaration when possible for your classes. it should help compile time
"i've made some empty promises in my life, but hands down that was the most generous" - Michael Scott
WindWolf
Profile Blog Joined July 2012
Sweden11767 Posts
March 13 2013 13:46 GMT
#5348
On March 13 2013 22:24 DertoQq wrote:
Only include what is needed for each .cpp file and use forward declaration when possible for your classes. it should help compile time

I only include what I need in each file. Isn't that SOP regardless of what language you're coding in?

And thanks for the FD tips.I'm not the lead programmer on the project and I didn't write the engine, but I'll think of that in the future.
EZ4ENCE
misirlou
Profile Joined June 2010
Portugal3241 Posts
March 13 2013 14:01 GMT
#5349
On March 13 2013 22:46 WindWolf wrote:
Show nested quote +
On March 13 2013 22:24 DertoQq wrote:
Only include what is needed for each .cpp file and use forward declaration when possible for your classes. it should help compile time

I only include what I need in each file. Isn't that SOP regardless of what language you're coding in?

And thanks for the FD tips.I'm not the lead programmer on the project and I didn't write the engine, but I'll think of that in the future.


I think most refactors would do the FD for you if u need it
ragz_gt
Profile Blog Joined April 2012
9172 Posts
Last Edited: 2013-03-13 18:49:25
March 13 2013 18:48 GMT
#5350
On March 13 2013 20:08 Frigo wrote:
Show nested quote +
On March 13 2013 07:00 Frigo wrote:
On March 13 2013 02:21 ragz_gt wrote:
Does anyone know if there is a JUnit contrib that allow customizable test execution order?

I remember such a feature in a newer JUnit release. It can at least randomize orders I believe, not sure about a user-defined order though.
Can tell you more details tomorrow when I have access to work mail.


http://www.hascode.com/2012/11/new-features-in-junit-4-11/

Yeah, it is possible.


It is rather limited that it can only sort by method name (and ascend only, can't descend LOL). But I guess I can name stuff by levels (1000s, 2000s etc) and should work

Kind of silly though
I'm not an otaku, I'm a specialist.
vrmr
Profile Joined November 2009
21 Posts
Last Edited: 2013-03-13 19:48:35
March 13 2013 19:25 GMT
#5351
you could build a custom runner for the junit tests that randomizes or sorts your test order.

Just extend BlockJUnit4ClassRunner Class.

But you would have to add @RunWith(whateverYouNamedYourNewTestRunner.class) before every class TestXYZ{} or else it just takes the default classrunner.
supereddie
Profile Joined March 2011
Netherlands151 Posts
March 13 2013 21:07 GMT
#5352
Unit tests shouldn't be dependant on eachother - problem solved.
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 13 2013 21:22 GMT
#5353
C++

What's the idea behind std::cout instead of cout? Is it because of getting used to using class::function or something? I'm new to C++. ^^
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
March 13 2013 21:30 GMT
#5354
On March 14 2013 06:22 darkness wrote:
C++

What's the idea behind std::cout instead of cout? Is it because of getting used to using class::function or something? I'm new to C++. ^^


std:: is the namespace. You can skip that by writing "using namespace std;" somewhere at the start of the file, though blindly importing namespaces can have bad side effects where you might import more than you can handle.

A namespace is basically a group of classes, functions, variables and other namespaces that all relate to each other in some way without the constraints of a class.
Denar
Profile Blog Joined March 2011
France1633 Posts
Last Edited: 2013-03-13 21:30:32
March 13 2013 21:30 GMT
#5355
On March 14 2013 06:22 darkness wrote:
C++

What's the idea behind std::cout instead of cout? Is it because of getting used to using class::function or something? I'm new to C++. ^^


This is the notion of namespaces : http://www.cplusplus.com/doc/tutorial/namespaces/

Because the standard library uses a namespace (the std:: ), you can also define your own function called "cout" without conflict, it will know which "cout" function you are adressing depending on the namespace identifier.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 14 2013 01:30 GMT
#5356
Alright, thanks for explanation. ^^
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2013-03-14 03:53:28
March 14 2013 03:53 GMT
#5357
On March 14 2013 06:30 Morfildur wrote:
Show nested quote +
On March 14 2013 06:22 darkness wrote:
C++

What's the idea behind std::cout instead of cout? Is it because of getting used to using class::function or something? I'm new to C++. ^^


std:: is the namespace. You can skip that by writing "using namespace std;" somewhere at the start of the file, though blindly importing namespaces can have bad side effects where you might import more than you can handle.

A namespace is basically a group of classes, functions, variables and other namespaces that all relate to each other in some way without the constraints of a class.


std is the namespace and :: is the scope resolution operator, even though it's apparent from your post that std is the namespace and not std::. posting just in case it isn't obvious to darkness.
conspired against by a confederacy of dunces.
ambikalx
Profile Joined September 2011
United States30 Posts
Last Edited: 2013-03-14 07:19:50
March 14 2013 07:11 GMT
#5358
Why can't I figure out how to delete my post? :D I already found the answer to my question.
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
March 14 2013 07:31 GMT
#5359
On March 14 2013 06:22 darkness wrote:
C++

What's the idea behind std::cout instead of cout? Is it because of getting used to using class::function or something? I'm new to C++. ^^

Other people have already covered what std:: is, but here's some advice: If you're making a bigger program with a lot of source files and a lot of imports etc going on, be a bit wary of using "using namespace std;", and if you do, only use it in implementation files (.cpp), not headers (.h). It might feel a bit "wordy" to write std:: before everything, but it's worth it for readability and lowers the risk of hard to find bugs. Obviously, in smaller programs which rely heavily on std:: classes and functions, feel free to use it.
Ilikestarcraft
Profile Blog Joined November 2004
Korea (South)17731 Posts
Last Edited: 2013-03-14 08:31:26
March 14 2013 08:31 GMT
#5360
On March 14 2013 16:11 ambikalx wrote:
Why can't I figure out how to delete my post? :D I already found the answer to my question.

its because you can't, but you can edit it that you already the answer.
"Nana is a goddess. Or at very least, Nana is my goddess." - KazeHydra
Prev 1 266 267 268 269 270 1032 Next
Please log in or register to reply.
Live Events Refresh
OSC
16:00
OSC Elite Rising Star #17
ForJumy vs MindelVKLIVE!
Shameless vs Percival
SteadfastSC183
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 659
SteadfastSC 183
ProTech117
MindelVK 44
StarCraft: Brood War
Britney 18003
Calm 3031
Shuttle 710
Larva 446
BeSt 212
Rush 191
firebathero 133
Dewaltoss 126
yabsab 46
soO 16
[ Show more ]
HiyA 15
scan(afreeca) 14
NaDa 8
SilentControl 6
JulyZerg 5
Dota 2
Gorgc6675
Dendi1071
420jenkins349
XcaliburYe251
Counter-Strike
fl0m5712
zeus3171
chrisJcsgo35
minikerr22
kRYSTAL_7
Heroes of the Storm
Khaldor174
Other Games
Grubby2213
Beastyqt631
ArmadaUGS118
Sick108
KnowMe97
C9.Mang090
Mew2King70
QueenE66
Livibee64
Trikslyr56
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Reevou 12
• StrangeGG 5
• Kozan
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• FirePhoenix4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2708
• WagamamaTV598
• lizZardDota260
Other Games
• imaqtpie719
• Shiphtur232
Upcoming Events
Replay Cast
5h 6m
Korean StarCraft League
1d 8h
CranKy Ducklings
1d 15h
WardiTV 2025
1d 17h
SC Evo League
1d 17h
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
2 days
WardiTV 2025
2 days
OSC
2 days
[ Show More ]
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
3 days
Wardi Open
3 days
StarCraft2.fi
3 days
Monday Night Weeklies
3 days
Replay Cast
4 days
WardiTV 2025
4 days
StarCraft2.fi
4 days
PiGosaur Monday
5 days
StarCraft2.fi
5 days
Tenacious Turtle Tussle
6 days
The PondCast
6 days
WardiTV 2025
6 days
StarCraft2.fi
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
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
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 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.