Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
AnswerRe: tablet with multiple accounts PinprofessionalMarco Bertschi25-Jan-14 3:20 
AnswerRe: tablet with multiple accounts Pinmembertgrt25-Jan-14 4:11 
GeneralRe: tablet with multiple accounts PinsubeditorWalt Fair, Jr.25-Jan-14 8:12 
AnswerRe: tablet with multiple accounts PinmemberMike Hankey25-Jan-14 4:15 
GeneralRe: tablet with multiple accounts PinprofessionalMarco Bertschi25-Jan-14 4:45 
GeneralRe: tablet with multiple accounts PinmemberMike Hankey25-Jan-14 4:54 
GeneralSasha+Oculus Rift v RiftCoaster PinprotectorDaveAuld25-Jan-14 2:21 
GeneralRe: Sasha+Oculus Rift v RiftCoaster PinprotectorOriginalGriff25-Jan-14 2:33 
GeneralRe: Sasha+Oculus Rift v RiftCoaster PinprotectorDaveAuld25-Jan-14 2:38 
GeneralRe: Sasha+Oculus Rift v RiftCoaster PinmemberGary R. Wheeler25-Jan-14 3:15 
GeneralRe: Sasha+Oculus Rift v RiftCoaster [modified] PinprotectorDaveAuld25-Jan-14 5:02 
GeneralI'd love to help with your SQL problem...after the revolution PinprofessionalJMK8925-Jan-14 1:46 
GeneralRe: I'd love to help with your SQL problem...after the revolution PinprotectorOriginalGriff25-Jan-14 1:50 
GeneralIs it just me? PinprotectorOriginalGriff25-Jan-14 1:39 
...or are the generation that are coming though being taught not to think?
 
I'm increasingly noticing in QA that (not only is the standard of questions still dropping) but the thinking element of working with answers is getting less.
For example, a question asking how to remove the spaces between numbers without removing them at the start or end of the string. Understandably, String.Replace and String.Trim don't work. So I suggested a Regex, using his example as an input:
string input = "   2365    2365    ";
string output = Regex.Replace(input, @"(?<=\d+)\s+(?=\d+)", "");
What surprised me was getting a response saying that it didn't work because I had hard coded the string.
Now, you, I, everyone I know would look at the code above and see an example of the input to show where it goes in the regex - wouldn't you? I can't think that anyone who has got far enough to realise that Replace and Trim don't do what he wants, and use Google to find us here should have a problem with using the example to create exactly the code they need. OK, the Regex itself may be a little impenetrable - they do tend to be - but the code around it should be self explanatory, shouldn't it?
 
Now, I don't want anyone rushing off and downvoting or insulting the OP - hence no link to the question - but I can't help thinking that the next generation as a rule are just not thinking, even when given a solution that needs a tiny bit of input.
 
Is it just me? Am I getting too old for this? Or is anyone else noticing as well?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Is it just me? Pinmemberharold aptroot25-Jan-14 1:46 
JokeRe: Is it just me? PinprofessionalJoan Murt25-Jan-14 1:55 
GeneralRe: Is it just me? PinprofessionalMarco Bertschi25-Jan-14 2:09 
GeneralRe: Is it just me? PinmvpRichard MacCutchan25-Jan-14 2:33 
JokeRe: Is it just me? Pinmember d@nish 25-Jan-14 4:03 
GeneralRe: Is it just me? PinprofessionalJörgen Andersson25-Jan-14 6:38 
GeneralRe: Is it just me? PinmemberBillWoodruff25-Jan-14 6:42 
GeneralRe: Is it just me? PinprotectorOriginalGriff25-Jan-14 7:06 
GeneralRe: Is it just me? Pinmemberjschell25-Jan-14 14:15 
GeneralRe: Is it just me? PinmvpH.Brydon25-Jan-14 18:33 
GeneralPenguin at the bar PinmemberShameel25-Jan-14 0:07 
GeneralRe: Penguin at the bar PinmemberSanmayce25-Jan-14 7:06 
GeneralRe: Penguin at the bar PinprofessionalRichard Deeming27-Jan-14 3:26 
GeneralRe: Penguin at the bar PinmemberShameel27-Jan-14 3:45 
GeneralOh great - another DDoS... [modified] PinprotectorOriginalGriff24-Jan-14 23:43 
GeneralRe: Oh great - another DDoS... PinprofessionalNagy Vilmos25-Jan-14 0:15 
GeneralRe: Oh great - another DDoS... PinprotectorOriginalGriff25-Jan-14 0:46 
GeneralRe: Oh great - another DDoS... PinprofessionalNagy Vilmos25-Jan-14 0:52 
GeneralEOTDs Revealed PinprofessionalCraigDJ24-Jan-14 22:24 
GeneralLarval form of Leonard DiCaprio identified PinmemberBillWoodruff24-Jan-14 21:17 
GeneralRe: Larval form of Leonard DiCaprio identified PinprotectorOriginalGriff24-Jan-14 22:01 
GeneralRe: Larval form of Leonard DiCaprio identified PinprofessionalNagy Vilmos25-Jan-14 0:48 
GeneralRe: Larval form of Leonard DiCaprio identified PinmemberGary R. Wheeler25-Jan-14 1:35 
GeneralRe: Larval form of Leonard DiCaprio identified PinmemberBillWoodruff25-Jan-14 5:58 
GeneralRe: Larval form of Leonard DiCaprio identified PinprofessionalJörgen Andersson25-Jan-14 6:44 
GeneralRe: Larval form of Leonard DiCaprio identified PinmemberGary R. Wheeler26-Jan-14 0:26 
GeneralAwards and nominations Pinmvpthatraja24-Jan-14 18:44 
GeneralRe: Awards and nominations PinmemberPIEBALDconsult24-Jan-14 19:18 
GeneralIdiotic stand up comics Pinmember d@nish 24-Jan-14 12:15 
GeneralRe: Idiotic stand up comics PinmemberMark_Wallace25-Jan-14 1:35 
GeneralRe: Idiotic stand up comics Pinmember d@nish 25-Jan-14 4:05 
GeneralSeveral Things You Didn't Know About... PinmemberRoger Wright24-Jan-14 11:47 
GeneralRe: Several Things You Didn't Know About... PinmvpDave Kreskowiak24-Jan-14 15:11 
GeneralRe: Several Things You Didn't Know About... PinmemberRoger Wright24-Jan-14 15:49 
GeneralRe: Several Things You Didn't Know About... PinmvpDave Kreskowiak24-Jan-14 17:19 
GeneralRe: Several Things You Didn't Know About... PinmemberRoger Wright24-Jan-14 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 19 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid