• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:57
CET 15:57
KST 23:57
  • 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 (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)15Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1833
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Stellar Fest "01" Jersey Charity Auction Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list?
Tourneys
OSC Season 13 World Championship SC2 AI Tournament 2026 Sparkling Tuna Cup - Weekly Open Tournament $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) $25,000 Streamerzone StarCraft Pro Series announced
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
[ASL21] Potential Map Candidates How Rain Became ProGamer in Just 3 Months BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Soma's 9 hatch build from ASL Game 2 Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
Awesome Games Done Quick 2026! Beyond All Reason Nintendo Switch Thread Mechabellum Stormgate/Frost Giant Megathread
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Trading/Investing Thread
Fan Clubs
Innova Crysta on Hire
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1151 users

The Big Programming Thread - Page 554

Forum Index > General Forum
Post a Reply
Prev 1 552 553 554 555 556 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.
Cynry
Profile Blog Joined August 2010
810 Posts
December 03 2014 15:06 GMT
#11061
On December 03 2014 23:43 Nesserev wrote:
Show nested quote +
On December 03 2014 19:26 Manit0u wrote:
http://www.gotw.ca/gotw/005.htm

C++ and why I'm happy I don't have to code in it

"Ignorance is a bliss" <3

Seriously, exception handling in C++ is not that bad... it's just that most people don't know what the fuck they're doing, or what they should be doing. C++ is evil and will f*ck you over if it can, and that's why you need to grow a pair of balls and study it all the way, know most of the stuff in-depth. It's not a language that you should use if you just know the basics.

Show nested quote +
On December 03 2014 11:43 Khalum wrote:
I'd also like to contribute my favourite stackoverflow topic: http://stackoverflow.com/questions/22780466/why-cant-my-program-compile-under-windows-7-in-french

This is comedy gold... I think I'm gonna tease my French friends with this

Especially the "return should be surrender" part. Loved that one ^^
Manit0u
Profile Blog Joined August 2004
Poland17605 Posts
Last Edited: 2014-12-04 15:07:35
December 04 2014 15:02 GMT
#11062
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-12-04 20:58:41
December 04 2014 20:55 GMT
#11063
Has anyone had experience with drawing images in C# by utilising GPU? I have to use Win Forms and GDI+ doesn't seem too nice when it has to draw frequently on a bitmap. The problem is CPU usage is higher than acceptable, and I think GPU should do the heavy lifting here.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
December 04 2014 21:03 GMT
#11064
On December 05 2014 00:02 Manit0u wrote:
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.


how else do you store dates?
There is no one like you in the universe.
LaNague
Profile Blog Joined April 2010
Germany9118 Posts
December 04 2014 21:31 GMT
#11065
has anyone here used WIX toolset for creating a windows installer before?

i wanted to use their heat.exe to collect my files and filestructure automatically, but it gave me a 3Mb textfile with super-spam in it.
Now i did it by hand for now, but i would prefer an automatic process because that was an hour not well spend.
Shenghi
Profile Joined August 2010
167 Posts
December 05 2014 06:00 GMT
#11066
On December 05 2014 06:03 Blisse wrote:
Show nested quote +
On December 05 2014 00:02 Manit0u wrote:
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.


how else do you store dates?

In a DATETIME, DATETIME2 or LONG as (milli)seconds since epoch. When storing as DATETIME or LONG you might want to add a second column for storing timezone information, depending on specs.
People are not born stupid, they choose to be stupid. If you made that choice, please change your mind.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
December 05 2014 06:07 GMT
#11067
OH he was asking why you would store dates as timestamps sarcastically whoops XD
There is no one like you in the universe.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
December 05 2014 13:01 GMT
#11068
--- Nuked ---
Khalum
Profile Joined September 2010
Austria831 Posts
December 05 2014 15:03 GMT
#11069
On December 05 2014 15:00 Shenghi wrote:
Show nested quote +
On December 05 2014 06:03 Blisse wrote:
On December 05 2014 00:02 Manit0u wrote:
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.


how else do you store dates?

In a DATETIME, DATETIME2 or LONG as (milli)seconds since epoch. When storing as DATETIME or LONG you might want to add a second column for storing timezone information, depending on specs.


The way I see it all times/dates should always be stored as UTC only.
Shenghi
Profile Joined August 2010
167 Posts
December 05 2014 19:17 GMT
#11070
On December 06 2014 00:03 Khalum wrote:
Show nested quote +
On December 05 2014 15:00 Shenghi wrote:
On December 05 2014 06:03 Blisse wrote:
On December 05 2014 00:02 Manit0u wrote:
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.


how else do you store dates?

In a DATETIME, DATETIME2 or LONG as (milli)seconds since epoch. When storing as DATETIME or LONG you might want to add a second column for storing timezone information, depending on specs.


The way I see it all times/dates should always be stored as UTC only.

I am inclined to agree with you there. In practice I have always done so. But I think that if I tried, I could come up with situations where storing the timezone information along with a date could be useful.
People are not born stupid, they choose to be stupid. If you made that choice, please change your mind.
Rotodyne
Profile Blog Joined July 2005
United States2263 Posts
Last Edited: 2014-12-06 07:48:48
December 06 2014 07:35 GMT
#11071
Today at work I had to modify the shittiest Drupal plugin ever created. The funny thing is that I was the one that created it a few weeks ago! It was my first Drupal module ever, and it was a super rush job (bad idea!) to get a project out the door immediately. Writing good maintainable code and using best practices was the absolute last thing on my mind. It then turns out we didn't get what we needed done in time, so it is put on hiatus for about three weeks.

Today I paid the price of writing shitty code.

I needed to make some modifications to this module, and it is just an absolute unmaintainable shit show, I am completed appalled every time I look at this code even though it is now working fine. It absolutely had to be working today, which meant even more rushing and made it exponentially worse.

I can't wait to rewrite the entire thing, may even do it on a weekend because I am so disgusted with myself. I am relatively new to programming which is why when I rush things turn to shit, but I do understand what maintainable code looks like, and I know I am capable of it.

Remember guys and gals, writing kinda bad code is fine. But don't write absolutely horrific spaghetti with feces all over it.
I can only play starcraft when I am shit canned. IPXZERG is a god.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-12-06 16:04:00
December 06 2014 10:11 GMT
#11072
+ Show Spoiler +
hey guyz, how do i install java EE after installing netbeans+java sdk?

the download page is http://www.oracle.com/technetwork/java/javaee/downloads/index.html

it downloads a folder which has glassfish folder inside (not an executable installer)

do i just stick it in my C:\Program Files\Java\jdk1.8.0_25 folder and its done??

thanks :/

[image loading]


i want to have java EE and be able to go in netbeans new project->web application like https://netbeans.org/kb/docs/web/quickstart-webapps.html describes "Choose File > New Project (Ctrl-Shift-N) from the main menu. Under Categories, select Java Web. Under Projects, select Web Application then click Next."

at the moment in netbeans i just have new project->java-> java application (no "web application")


ehh, i just installed netbeans+EE from the netbeans website instead of java website after installing java SE and it worked. idk how many stuff i have downloaded now -_- ill just do a complete uninstall and reinstall of everything....again...

while im here, anyone happen to be able to rec an uptodate tutorial for java web application/database? ill be on netbeans tutorial site. actually these look pretty comprehensive

whyh every version of mysql i download is bugged T_T


nice so i finally got it working. im up to the part where you design then forwards-engineer a database schema using mysql workbench to be stuck into netbeans. is this normal way to make database for web application? design it in mysql workbench then forwards engineer into netbeans
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17605 Posts
December 06 2014 16:05 GMT
#11073
After trying out the JetBrains products I find myself unable to go back to Netbeans or Eclipse... They seem so slow and bloated now.
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-12-07 04:38:59
December 07 2014 04:38 GMT
#11074
in this is it convention to /> instead of just > ?
+ Show Spoiler +


<a href="#">
<img src="#" id="logo" alt="Affable Bean logo">
</a>

<img src="#" id="logoText" alt="the affable bean">
</div>
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
December 07 2014 04:58 GMT
#11075
On December 07 2014 13:38 FFGenerations wrote:
in this is it convention to /> instead of just > ?
+ Show Spoiler +


<a href="#">
<img src="#" id="logo" alt="Affable Bean logo">
</a>

<img src="#" id="logoText" alt="the affable bean">
</div>

HTML5 doesn't care about closed tags anymore.

But I'd recommend doing it anyway, because you still have to support the crappy versions of web browsers.
Average means I'm better than half of you.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
Last Edited: 2014-12-07 08:11:45
December 07 2014 08:09 GMT
#11076
Wasn't HTML 5 supposed to be strict XML?
In which case you need to close your tags, even if it's just a single tag:
<img src="#" id="logo" alt="Affable Bean logo"/>


And you really should write proper XML. Everything else is just bound to cause problems.
If you have a good reason to disagree with the above, please tell me. Thank you.
delHospital
Profile Blog Joined December 2010
Poland261 Posts
December 07 2014 10:51 GMT
#11077
On December 07 2014 17:09 spinesheath wrote:
Wasn't HTML 5 supposed to be strict XML?
In which case you need to close your tags, even if it's just a single tag:
<img src="#" id="logo" alt="Affable Bean logo"/>


And you really should write proper XML. Everything else is just bound to cause problems.

What... no... HTML is HTML. XHTML is XHTML. Don't do "/>" in HTML (that is, when you send documents as text/html), do do "/>" in XHTML (application/xhtml+xml). Simple as that.
xtorn
Profile Blog Joined December 2013
4060 Posts
Last Edited: 2014-12-07 11:15:26
December 07 2014 11:09 GMT
#11078
On December 05 2014 00:02 Manit0u wrote:
Damn, I truly hate those "smart" programmers who add 15 unnecessary levels of abstraction... Like, why the hell would you store date in the database as a timestamp? That's stupid right? It's instead better to store it as some strange object (not DateTime, that would be too easy) that has a field which is another object (still not DateTime) and then use helper class to retrieve the date via the date() method, which takes the same arguments as built-in date() function but produces different results... And there is no doumentation or comments in the code for that, obviously.

Seriously, sometimes I'm truly amazed by the way people do things. And it pissess me to no end when I'm forced to spend 4-6 hours on something that should've taken no more than 10 minutes because I have to trace all this bullshit.

i feel your pain


//handle with care
var date = DateTime.ParseExact(GetDateFromUserInput(txtDate.jsonDate.ConvertToDateTimeFromJson()).ConvertToUTCFormatWithTimezone().AddDays(1).AddTicks(-1).ToFormattedUTCStringWithTimestamp().RemoveTimestampIfNotUTC(), format, Cultureinfo.Currentculture);


spot the bug in 10mins, cuz we have to deploy before lunch
you done yet mate
Life - forever the Legend in my heart
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
December 07 2014 11:10 GMT
#11079
So they didn't actually fix anything with HTML5. Good that I don't really do that stuff.
Just comparing the size of these two pages says everything...
http://www.w3.org/TR/html5/syntax.html#syntax
http://www.w3.org/TR/html5/the-xhtml-syntax.html
If you have a good reason to disagree with the above, please tell me. Thank you.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
December 07 2014 16:36 GMT
#11080
On December 07 2014 20:10 spinesheath wrote:
So they didn't actually fix anything with HTML5. Good that I don't really do that stuff.
Just comparing the size of these two pages says everything...
http://www.w3.org/TR/html5/syntax.html#syntax
http://www.w3.org/TR/html5/the-xhtml-syntax.html

what is in an easy way to compare besides downloading them?

im having to make a full featured chat plugin for wordpress with node js with 0 js experiance, its confusing as fuck0o
The harder it becomes, the more you should focus on the basics.
Prev 1 552 553 554 555 556 1032 Next
Please log in or register to reply.
Live Events Refresh
OSC
12:00
Season 13 World Championship
NightMare vs TriGGeRLIVE!
YoungYakov vs Babymarine
SKillous vs TBD
WardiTV1007
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko513
LamboSC2 157
BRAT_OK 62
StarCraft: Brood War
Britney 34554
Shuttle 1991
EffOrt 970
Soma 640
Larva 543
Stork 527
BeSt 483
hero 289
firebathero 284
Rush 267
[ Show more ]
Snow 141
Mong 110
Hyun 103
Barracks 80
Leta 57
Terrorterran 26
910 20
ivOry 18
Rock 16
Free 16
yabsab 16
HiyA 15
GoRush 14
scan(afreeca) 13
Shine 12
Bale 9
Sacsri 6
Dota 2
syndereN235
Counter-Strike
fl0m836
kennyS437
markeloff117
Other Games
B2W.Neo1241
DeMusliM419
Liquid`RaSZi337
crisheroes306
Happy211
QueenE92
Mew2King69
KnowMe50
Organizations
Other Games
gamesdonequick2466
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• HappyZerGling 105
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV565
League of Legends
• Jankos3429
• TFBlade884
Upcoming Events
All-Star Invitational
11h 18m
INnoVation vs soO
Serral vs herO
Cure vs Solar
sOs vs Scarlett
Classic vs Clem
Reynor vs Maru
uThermal 2v2 Circuit
21h 3m
AI Arena Tournament
1d 5h
All-Star Invitational
1d 11h
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
1d 19h
OSC
1d 21h
Replay Cast
2 days
Wardi Open
2 days
Monday Night Weeklies
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-01-14
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
Escore Tournament S1: W4
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
SC2 All-Star Inv. 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.