• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 17:17
CET 23:17
KST 07:17
  • 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
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays soO on: FanTaSy's Potential Return to StarCraft BGH Auto Balance -> http://bghmmr.eu/ A cwal.gg Extension - Easily keep track of anyone [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET
Strategy
Game Theory for Starcraft Current Meta How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Clair Obscur - Expedition 33 EVE Corporation [Game] Osu!
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
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
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
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1945 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
Poland17450 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
Poland17450 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
BSL 21
20:00
RO16 TieBreaker - Group A
TerrOr vs Aeternum
HBO vs Kyrie
ZZZero.O284
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 335
Nathanias 135
StarCraft: Brood War
Calm 962
ZZZero.O 284
Dewaltoss 100
NaDa 45
Rock 45
Noble 14
Dota 2
PGG 58
Counter-Strike
fl0m1465
adren_tv111
Heroes of the Storm
Khaldor238
Other Games
Grubby6155
FrodaN3028
Mlord602
Liquid`Hasu349
mouzStarbuck123
KnowMe122
Trikslyr51
Organizations
Other Games
EGCTV1353
gamesdonequick1066
StarCraft: Brood War
lovetv 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Hupsaiya 58
• musti20045 4
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• 80smullet 12
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 7022
• masondota21352
• WagamamaTV615
• Ler114
• lizZardDota278
Other Games
• imaqtpie1489
• Shiphtur315
Upcoming Events
RSL Revival
9h 13m
Classic vs SHIN
Maru vs TBD
herO vs TBD
Wardi Open
15h 43m
IPSL
21h 43m
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
21h 43m
StRyKeR vs Artosis
OyAji vs KameZerg
OSC
1d
OSC
1d 10h
Monday Night Weeklies
1d 18h
OSC
2 days
Wardi Open
2 days
Replay Cast
3 days
[ Show More ]
Wardi Open
3 days
Tenacious Turtle Tussle
4 days
The PondCast
4 days
Replay Cast
5 days
LAN Event
5 days
Replay Cast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-21
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
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
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
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
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.