661 reputation
517
bio website linkedin.com/in/jamespoulson
location Belgium
age
visits member for 4 years, 3 months
seen yesterday

Working on getting a bachelor's degree and specializing in Java.

Email: http://www.google.com/recaptcha/mailhide/d?k=01bAFtpP0H2MRIgFlNka5Lpw==&c=KvU68hI3HAlpXUPSLJ6M822HbkfwWPfvvKZ8eNMtN-k= (reCAPTCHA)

Blog@Developpez.com: http://blog.developpez.com/james-poulson/

MySpace: http://www.myspace.com/jamespoulson

User page at Wikipedia: http://en.wikipedia.org/wiki/User:JamesPoulson

"The older I get, the more I see a straight path where I want to go. If you’re going to hunt elephants, don’t get off the trail for a rabbit." - T. Boone Pickens


Mar
30
comment Multiple threads and single output source
@Blrfl Red herring extirpated :)
Mar
30
comment Multiple threads and single output source
@parfisal Do you have an idea for a more suitable scenario ? I'm interested in how the output could be handled.
Mar
29
comment Multiple threads and single output source
@parsifal this question originates from another one asked at the volunteer-run Java group on Facebook. It was unclear what the person wanted to do but he apparently wanted a series of phone numbers to be saved to separate files. The thought then came to mind on how something like this would be managed if it were a single file. So in short the motivation for this question is just curiosity.
Mar
29
comment Multiple threads and single output source
@Thomas Say we keep track of the line number and also keep a trace of the last line number written to the file. Imagining that the process of transforming a line takes a while, the results could be stored and then fetched then written in order.
Mar
29
comment Multiple threads and single output source
My question was unclear. Sorry about that. Out of curiosity, what was the intent behind using a join with the previous thread ?
Mar
29
comment Multiple threads and single output source
@NiklasH same comment as above. If you can think of a scenario where the multithreading would be useful I'm interested.
Mar
29
comment Multiple threads and single output source
@MichaelT, that would be reversing the characters ("meht esrever"). I understand about the sequence making multithreading impractical. Is there a way to reformulate the exercise such that multithreading would be useful ? I was thinking of a divide-and-conquer approach of a problem here. The focus is on outputting to that single File source in a concurrent context.
Mar
9
comment problem in building my portfolio
If they think you're lying then they're looking at things the wrong way.
Feb
13
comment What is meant by “Now you have two problems”?
What he might mean is that regular expressions might not be suited for solving the problem. Like parsing HTML ?
Jan
31
comment How old is “too old”?
W00T. I just happen to be 37. Thanks for putting a smile on my face :)
Oct
28
comment Selling software instead of on-demand work
That sounds fine. I can handle some stress and doing on-demand on a familiar environment is not a problem. It's the work where stuff has to be done quickly (like yesterday ?) and needs to be flawless that I can't handle. I guess that will come with experience :)
Oct
8
comment What algorithms can I use to detect if articles or posts are duplicates?
If it's an exact match you could simply set a field to unique. If not, you'd need to decide at what point a text can be considered a copy or a closely derived work.
Aug
24
comment Is defining a variable to name a method argument a good practice?
True. It seems unusual at first sight but it's similar to the inline pseudo objects that can exist in some languages.
Aug
23
comment Is defining a variable to name a method argument a good practice?
That's the "downside" to loosely typed languages. You can't really enforce a signature without some validation. I didn't know you could add names like that in JS.
Aug
23
comment Is defining a variable to name a method argument a good practice?
@GlenPeterson A factory is a possibility and is possible in Javascript (mentionned by OP).
Aug
23
comment Is defining a variable to name a method argument a good practice?
@Duopixel I've added some alternatives to consider just to add a bit of "crazy" to the question :)
Aug
23
comment Is defining a variable to name a method argument a good practice?
There are arguments against using enumerations. I'm simply bringing them up for two advantages: readability and restriction to a set of values.
Aug
23
comment Is defining a variable to name a method argument a good practice?
If the language supports it you could use an enumeration such as doSomething( Undo.PREVENT )
Aug
23
comment Is defining a variable to name a method argument a good practice?
Just to add, if you're using OO n°2 could be made into some sort of Builder. Also, if the language has support for enumerations you could add some semantics to the parameter being passed.
Jul
14
comment Designing controller for modular Java architecture
@shinynewbike You could do something similar in concept to Linux pipes. Clearly put, output from each Command could be passed to an object which can control the flow (do nothing, skip, goto, abort...).