• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:29
CEST 08:29
KST 15:29
  • 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
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun12[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists22[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
RSL Revival: Season 5 - Qualifiers and Main Event4Code S Season 1 (2026) - RO12 Results02026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15
StarCraft 2
General
Code S Season 1 (2026) - RO12 Results Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 1 (2026) SC2 INu's Battles#15 <BO.9 2Matches> WardiTV Spring Cup SEL Masters #6 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
Pros React To: Leta vs Tulbo (ASL S21, Ro.8) [BSL22] RO16 Group A - Sunday 21:00 CEST [BSL22] RO16 Group B - Saturday 21:00 CEST RepMastered™: replay sharing and analyzer site BW General Discussion
Tourneys
[BSL22] RO16 Group Stage - 02 - 10 May Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro8 Day 2
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Daigo vs Menard Best of 10 Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1426 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
Poland17741 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
Poland17741 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
Next event in 2h 31m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech135
StarCraft: Brood War
Shine 295
firebathero 264
PianO 198
Backho 177
Aegong 89
ZergMaN 17
scan(afreeca) 10
JulyZerg 7
Dota 2
NeuroSwarm190
League of Legends
JimRising 773
Counter-Strike
Stewie2K1150
Other Games
summit1g7341
WinterStarcraft578
C9.Mang0578
monkeys_forever368
Sick125
ToD23
Organizations
Other Games
gamesdonequick791
Dota 2
PGL Dota 2 - Main Stream82
StarCraft: Brood War
UltimateBattle 56
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• Response 14
• Sammyuel 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt527
Upcoming Events
Replay Cast
2h 31m
RSL Revival
3h 31m
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
4h 31m
Percival vs Shameless
ByuN vs YoungYakov
SC Evo League
7h 31m
IPSL
9h 31m
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
12h 31m
Replay Cast
17h 31m
RSL Revival
1d 3h
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
1d 7h
BSL
1d 12h
[ Show More ]
IPSL
1d 12h
eOnzErG vs TBD
G5 vs Nesh
Patches Events
1d 17h
Replay Cast
2 days
Wardi Open
2 days
Afreeca Starleague
2 days
Jaedong vs Light
Monday Night Weeklies
2 days
Replay Cast
2 days
Sparkling Tuna Cup
3 days
Afreeca Starleague
3 days
Snow vs Flash
WardiTV Invitational
3 days
GSL
4 days
Classic vs Cure
Maru vs Rogue
GSL
5 days
SHIN vs Zoun
ByuN vs herO
OSC
5 days
Replay Cast
5 days
Escore
6 days
The PondCast
6 days
WardiTV Invitational
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S2: W5
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.