Click here to Skip to main content
12,763,515 members (31,552 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

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, no programming questions and please don't post ads.
 
GeneralSasha+Oculus Rift v RiftCoaster Pin
DaveAuld25-Jan-14 2:21
protectorDaveAuld25-Jan-14 2:21 
GeneralRe: Sasha+Oculus Rift v RiftCoaster Pin
OriginalGriff25-Jan-14 2:33
protectorOriginalGriff25-Jan-14 2:33 
GeneralRe: Sasha+Oculus Rift v RiftCoaster Pin
DaveAuld25-Jan-14 2:38
protectorDaveAuld25-Jan-14 2:38 
GeneralRe: Sasha+Oculus Rift v RiftCoaster Pin
Gary R. Wheeler25-Jan-14 3:15
memberGary R. Wheeler25-Jan-14 3:15 
GeneralRe: Sasha+Oculus Rift v RiftCoaster Pin
DaveAuld25-Jan-14 5:02
protectorDaveAuld25-Jan-14 5:02 
GeneralI'd love to help with your SQL problem...after the revolution Pin
JMK8925-Jan-14 1:46
professionalJMK8925-Jan-14 1:46 
GeneralRe: I'd love to help with your SQL problem...after the revolution Pin
OriginalGriff25-Jan-14 1:50
protectorOriginalGriff25-Jan-14 1:50 
GeneralIs it just me? Pin
OriginalGriff25-Jan-14 1:39
protectorOriginalGriff25-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? Pin
harold aptroot25-Jan-14 1:46
memberharold aptroot25-Jan-14 1:46 
JokeRe: Is it just me? Pin
Joan Murt25-Jan-14 1:55
professionalJoan Murt25-Jan-14 1:55 
GeneralRe: Is it just me? Pin
Marco Bertschi25-Jan-14 2:09
professionalMarco Bertschi25-Jan-14 2:09 
GeneralRe: Is it just me? Pin
Richard MacCutchan25-Jan-14 2:33
mvpRichard MacCutchan25-Jan-14 2:33 
JokeRe: Is it just me? Pin
d@nish 25-Jan-14 4:03
member d@nish 25-Jan-14 4:03 
GeneralRe: Is it just me? Pin
Jörgen Andersson25-Jan-14 6:38
professionalJörgen Andersson25-Jan-14 6:38 
GeneralRe: Is it just me? Pin
BillWoodruff25-Jan-14 6:42
memberBillWoodruff25-Jan-14 6:42 
GeneralRe: Is it just me? Pin
OriginalGriff25-Jan-14 7:06
protectorOriginalGriff25-Jan-14 7:06 
GeneralRe: Is it just me? Pin
jschell25-Jan-14 14:15
memberjschell25-Jan-14 14:15 
GeneralRe: Is it just me? Pin
H.Brydon25-Jan-14 18:33
mvpH.Brydon25-Jan-14 18:33 
GeneralPenguin at the bar Pin
Shameel25-Jan-14 0:07
memberShameel25-Jan-14 0:07 
GeneralRe: Penguin at the bar Pin
Sanmayce25-Jan-14 7:06
memberSanmayce25-Jan-14 7:06 
GeneralRe: Penguin at the bar Pin
Richard Deeming27-Jan-14 3:26
professionalRichard Deeming27-Jan-14 3:26 
GeneralRe: Penguin at the bar Pin
Shameel27-Jan-14 3:45
memberShameel27-Jan-14 3:45 
GeneralOh great - another DDoS... Pin
OriginalGriff24-Jan-14 23:43
protectorOriginalGriff24-Jan-14 23:43 
GeneralRe: Oh great - another DDoS... Pin
Nagy Vilmos25-Jan-14 0:15
professionalNagy Vilmos25-Jan-14 0:15 
GeneralRe: Oh great - another DDoS... Pin
OriginalGriff25-Jan-14 0:46
protectorOriginalGriff25-Jan-14 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web01 | 2.8.170217.1 | Last Updated 27 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid