The given code will ignore any null substrings. That is, the output resulting from "one,,,,two" is the same as the output resulting from "one,two". I think this differs from the behaviour of String.split().
Fjp
@Fjp
Best posts made by Fjp
Latest posts made by Fjp
-
RE: DecomposeLine
-
RE: Check, check, testing, one, two
So my question was aimed at figuring out if there was a reason why someone would do this based on the behavior of a different language.
Any language in which the loop termination condition is not checked until after the first iteration needs such a pre-check. I haven't used COBOL for over 35 years so I'm unsure whether that applies (and ICBA to go and read a manual).
-
RE: This graph may or may not be plotted on a log scale
@morbiuswilters said:
Where are the numbers for under 15?
Off the top of the chart. Why do you thjink they needed a log scale?
-
RE: Tivo has massive layoff
@Lorne Kates said:
They only had 7 engineers to begin with?
You forgot the 153 salesmen - sorry, sales executives. You know, the people no company can manage without. Plus, of course, the bean counters and "C-suite" people (or whatever the in phrase is, ICBA to keep up these days).
See any DIlbert cartoon.
-
RE: Life at a Japanese PHP Shop
@fish said:
I was strongly reminded that as just a programmer and the youngest in my team, I am to shut up and produce code.
Quite right too. You are not there to turn out high-quality code; you are there to turn out code that conforms to the company's expectations. You have no responsibility for the resulting mess.
If we all adopted your attitude, maintenance programmers would be out of a job.
-
RE: Dis-tract-ed
@OldBrooklyn said:
We have a number of old Access-based "applications" (I use that term loosely). Typically these consist of a database, often with just one gigantic table, with a crude interface to edit the data and view reports. We were having problems with one of these, so I was asked to investigate. I noticed a field called "tract", which often contained a four-digit number, but sometimes held a decimal-like value. (Its data type was set to "text", naturally.) I did a
SELECT DISTINCT tract ORDER BY tract
to see what people had been entering in this field, and I got this:
[...]I'm not sure what to do with this information.
I'd try
SELECT * GROUP BY tract HAVING COUNT(*) = 1
. It might be enlightening. -
RE: FireFox 25: new Find Bar
I'm really disappointed. I thought you'd found something that would locate the nearest place to drink.
-
RE: Obamacare: TRWTF
@Rhywden said:
I still can't wrap my head around this entirely asinine legislative process where you can tack on several distinct and completely unrelated issues to a bill which has nothing to do with the additions.
So, I can create a bill which aims to "protect kittens and orphans" and someone else tacks on "free guns for drug addicts."
Which moron thought this to be a good idea?
A politician, of course. Why do you need to ask?
-
RE: Dates? Dates are no problem!
@Darsithis said:
It's taken me countless hours to remove this ridiculous table and convert all of the queries to avoid it.
In that order? -
RE: Because all software is .NET
@joe.edwards said:
True story: for the first year or so of people buzzing about .NET, I was wondering why people were so excited over a TLD.
If you ever find out, be sure to let the rest of us know.