Home > Net >  Do you have Microsoft? Buggy. Some people say that String IsNullOrEmpty function has not yet been re
Do you have Microsoft? Buggy. Some people say that String IsNullOrEmpty function has not yet been re

Time:10-04

. Some people say that String IsNullOrEmpty has a BUG, I don't believe no BUG and ask how to write?

He said that with the IF write bug-free
If xx isnot nothing andalso xx. Length & lt;> 0


And then I look at the String. IsNullOrEmpty source is confused, how BUG?


CodePudding user response:

You want to express the trim this meaning?

You can try IsNullOrWhiteSpace

Words trim the many great things ah, have you never been trim??

CodePudding user response:

String. IsNullOrEmpty itself should not BUG, it should be his terms there are Spaces, is: "";
Don't know if this reason

CodePudding user response:

reference 1st floor wanghui0380 response:
that you want to express the trim mean
?
You can try IsNullOrWhiteSpace

Words trim the many great things ah, have you never been trim??

See screenshots ah...... ...

CodePudding user response:

Trim is normal operation, the normal data base need to trim, not trim data is not necessarily right, such as search conditions, such as the underlying database (unless you have special requirements, he must be strictly reserved)

When it comes to this problem, tell you a joke
XXX product manager one day suddenly in a large group of goat, connect a caption "the development of a group of ex1, user login, user name display is null, such a big bug with n day nobody reason"
XXX boss say "yes, this is a serious problem, must be taken seriously and immediately solve"

Two hours later, "said development after verification, there is no problem, the user login name is called null"

CodePudding user response:

Ps: even the js jquery, all designed specifically for you make a $. The trim (), do you think? How long did that javascript this bug?

CodePudding user response:

The question of why would say to the trim? ~ ~ ~ ~ ~ ~ ~ focus drift yo

CodePudding user response:

I haven't heard of any bugs, more can't yet repair
He thinks not repair, you let him to reflect to the giant hard is not good

CodePudding user response:

refer to 6th floor New jia jia's reply:
the question of why would say to the trim? ~ ~ ~ ~ ~ ~ ~ yo focus drift the


No drift, drift, you don't want to say, he has written a somebody else a Microsoft diao samples, is a 2 b, don't trim for no reason,

CodePudding user response:

I think he probably test the not visible characters
In fact, he directly compare two string length, also can know,

CodePudding user response:

In general, there are bugs, also not been fixed yet,

CodePudding user response:

I only care about this function if there is a BUG, he said I am not believe

CodePudding user response:

I don't believe the

CodePudding user response:

Examples of the people in the screenshot doesn't prove that a bug, just mouth say,,,
I also suspect that is a question that code,

CodePudding user response:

refer to 7th floor stherix response:
I haven't heard of any bugs, yet and it is impossible to repair
He thinks not repair, you let him to reflect to the giant hard not good

He said let me go and ask the Microsoft, I can't believe this bug have asked to BBS

CodePudding user response:

A two said they have not submitted, buggy, are open mouth to, also do not have what to say, he felt it was yes, early in the Java and leave the best, the work with him I feel tired,

CodePudding user response:

The reason he wrote so he just don't want to trim
Like sometimes I don't want to introduce the jquery also directly use length
But the problem is that this is the front end code, a lazy and another one in the backend authentication, no big problem

We have always said that the trim, it is said it should be processed, behind a lazy you, or to deal with the

Such as finding a "computer", you like "a % % computer" and the like "a % % computer" (the space)
?
Basic data validation is province, don't do division to verify the denominator is zero? Int in the database, you don't check this number?

Said in a practical things

Just half a month ago, needed a Marketing Department statistics, data needs to be from two database statistics, the results of statistics, marketing greatly made a fire, stab to the above, the above greatly die command, 2 hours must be out of the data, do statistical development of performance at the same time, regarding the 500 piece,

Know finally find out the data what is wrong? Is lazy not trim B system, leading to an associated serial number one more Spaces, data correlation

CodePudding user response:

Trim, determine the back is normal logic

Decide before, and trim back also ok, but you can't forget

This is not a bug, Microsoft can help you determine such as IsNullOrWhiteSpace together, but you also have to ensure logic, really forget is to dig a hole,

So, personal habits don't dig a hole, the trim first, if you dig a hole to fill, you remember to fill in

CodePudding user response:

Oh, I have been in use

CodePudding user response:

refer to 17th floor wanghui0380 response:
trim, decision is in the normal logical

Decide before, and trim back also ok, but you can't forget

This is not a bug, Microsoft can help you determine such as IsNullOrWhiteSpace together, but you also have to ensure logic, really forget is to dig a hole,

So, personal habits don't dig a hole, the trim first, if you dig a hole to fill, you remember to fill the


The old driver, is excuse me this BUG?
The select ISNUMERIC (' \ ')
Some versions return is 0 some versions return is 1, what is?

CodePudding user response:

This is a bug? Don't know if there is a string. IsNullOrWhiteSpace method? Response to a string. IsNullOrEmpty deficiencies

CodePudding user response:

He mixed so badly, not to submit a BUG take money?

CodePudding user response:

This have what good arguments, he said there are bugs you let him out of a test case out ah, if he give not to come out, says that in some cases, the light that he doesn't know what circumstances will the BUG, then don't know to blame the function is also too brother,

CodePudding user response:

Only and document title grandstanding, written, and the document is not a slip of the pen, then to calculate the bug

CodePudding user response:

Let him return
Don't come out when fart

CodePudding user response:

Null or "" and" "

CodePudding user response:

Null or "" and" "nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related