|
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. |
810 Posts
On December 03 2014 23:43 Nesserev wrote:"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. 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 ^^
|
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.
|
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.
|
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?
|
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.
|
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.
|
OH he was asking why you would store dates as timestamps sarcastically whoops XD
|
|
|
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.
|
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.
|
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.
|
+ 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.htmlit 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]](http://i.imgur.com/5VFCXxk.jpg) 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
|
After trying out the JetBrains products I find myself unable to go back to Netbeans or Eclipse... They seem so slow and bloated now.
|
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>
|
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.
|
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.
|
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.
|
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
|
|
|
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
|
|
|
|
|
|