SV650.org - SV650 & Gladius 650 Forum

SV650.org - SV650 & Gladius 650 Forum (http://forums.sv650.org/index.php)
-   Idle Banter (http://forums.sv650.org/forumdisplay.php?f=116)
-   -   Why I hate Microsoft (Techy) (http://forums.sv650.org/showthread.php?t=72934)

timwilky 13-06-06 04:16 PM

Why I hate Microsoft (Techy)
 
OK my boss is insisting I write his new app using C#.net. I have explained that java runs perfectly well on a PC but he is the boss.


I need to read some values off of a sql database. He won't even let me use oracle. one of the values is of type float. So when I then use the appropriate function, ie DbDataReader.GetFloat(), it errors with cannot cast infinity. WTF. so before the call I have a debug line to return the DbDataReader.GetDataTypeName() and it tells me it is of type Float.


So lots of banging of heads against a wall, then I look at the database and check there is appropriate values. yes there are. I then accidently go into the table design. and oh! SQL server allocates 8 bytes to a floating point number.

Change my call to float value = (float) DbDataReader.GetDouble(); and everthing works.

4 hours chasing a bug, to find it is an incompatability between data type definitions in Microsoft ****ty products.


AAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHH

Sorry the above is techy coding. I just need to shout at somebody and Microsoft don't listen

kciN 13-06-06 04:19 PM

Re: Why I hate Microsoft (Techy)
 
Quote:

Originally Posted by timwilky
OK my boss is insisting I write his new app using C#.net. I have explained that jave runs perfectly well on a PC but he is the boss.


I need to read some values off of a sql database. He won't even let me use oracle. one of the values is of type float. So when I then use the appropriate function, ie DbDataReader.GetFloat(), it errors with cannot cast infinity. WTF. so before the call I have a debug line to return the DbDataReader.GetDataTypeName() and it tells me it is of type Float.


So lots of banging of heads against a wall, then I look at the database and check there is appropriate values. yes there are. I then accidently go into the table design. and oh! SQL server allocates 8 bytes to a floating point number.

Change my call to float value = (float) DbDataReader.GetGetDouble(); and everthing works.

4 hours chasing a bug, to find it is an incompatability between data type definitions in Microsoft sh*tty products.


AAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHH

Sorry the above is techy coding. I just need to shout at somebody and Microsoft don't listen

..To all of what you just said!! :wink: :wink:

Carsick 13-06-06 04:20 PM

I always find it amusing when MS stuff doesn't even work together as they should.
I'm almost exclusively a Java coder and I'm quite happy that way. I'm lucky though, the co I work for are very adamant about sticking with Java as long as it's viable.

didge 13-06-06 04:24 PM

what does fload and string mean?

Abyss 13-06-06 04:25 PM

Change is bad.... it = more work :P

Ping 13-06-06 04:26 PM

*stays very very quiet but takes notes in the hopes of one day making a java programmer look stupid*

;)

Xerbraski 13-06-06 04:28 PM

Re: Why I hate Microsoft (Techy)
 
Quote:

Originally Posted by timwilky
4 hours chasing a bug

Wasn't Northwind doing the same the other day, I think he killed his one though and got lots and lots of satisfaction from it.

Somtimes I find it helps if you write down the word Microsoft and then draw little stick men with guns and stuff shooting the word Microsoft with little dots for bullets and stuff.
At the same you can make your own explosion sound effects with your mouth!!
Then just crumple up the piece of paper and set it on fire... Job done!!

timwilky 13-06-06 04:40 PM

Quote:

Originally Posted by didge
what does fload and string mean?

float and string are data types

float is a floating point number as in not an integer, as in contains a decimal point

although I have not made any reference in my post to a string, a string is a simple text object, such as a persons name.

Both these data types have properties and methods etc. I aint in the business of teaching anyone code hacking. suffice to say a method is a way of doing things with a data object, and a property is information about that object such as the number of characters in the string etc.

didge 13-06-06 05:03 PM

ahh i see, i know you didn't say anything about strings but when i have heard them they have been in the same context hence why i asked

kciN 13-06-06 05:55 PM

Quote:

Originally Posted by timwilky
Quote:

Originally Posted by didge
what does fload and string mean?

float and string are data types

float is a floating point number as in not an integer, as in contains a decimal point

although I have not made any reference in my post to a string, a string is a simple text object, such as a persons name.

Both these data types have properties and methods etc. I aint in the business of teaching anyone code hacking. suffice to say a method is a way of doing things with a data object, and a property is information about that object such as the number of characters in the string etc.

I remember when I used to program on my Acorn Electron in Basic *cough* I used to use the string command, known as $, if I recall.
Inkey$ I think, a command to wait for a key to be pressed... :?:

And I think everyone remembers the

10 Print "Whatever";
20 Goto 10

(The ; is there to make it not just scroll down the page but across it too.)

I'll shut up now! :wink:


All times are GMT. The time now is 03:00 AM.

Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.