Click here to Skip to main content
14,448,242 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: I AM UNSTOPPABLE Pin
#realJSOP27-Nov-19 2:00
mva#realJSOP27-Nov-19 2:00 
JokeRe: I AM UNSTOPPABLE Pin
Richard Deeming27-Nov-19 2:19
communityengineerRichard Deeming27-Nov-19 2:19 
GeneralRe: I AM UNSTOPPABLE Pin
  Forogar  27-Nov-19 4:31
professional  Forogar  27-Nov-19 4:31 
GeneralRe: I AM UNSTOPPABLE Pin
honey the codewitch27-Nov-19 4:32
mvahoney the codewitch27-Nov-19 4:32 
GeneralOne of the very few times I find myself liking Ruby/Rails syntax Pin
Dan Neely26-Nov-19 9:55
MemberDan Neely26-Nov-19 9:55 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
TheGreatAndPowerfulOz26-Nov-19 10:09
MemberTheGreatAndPowerfulOz26-Nov-19 10:09 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Dan Neely26-Nov-19 10:14
MemberDan Neely26-Nov-19 10:14 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Sander Rossel26-Nov-19 10:22
professionalSander Rossel26-Nov-19 10:22 
My first was "reflection" as well, but then I read what you wrote at the end Laugh | :laugh:
I don't think reflection could hurt here though.
It's just a small piece with a clear function.
It wouldn't be much different than how Ruby solves it, which is calling the member using a literal string.
It could go wrong if your naming convention changes or if someone added QuestionXSectionYAnswer (switching Question and Section), but that goes for the Ruby code as well.

GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Dan Neely26-Nov-19 10:52
MemberDan Neely26-Nov-19 10:52 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Sander Rossel26-Nov-19 11:11
professionalSander Rossel26-Nov-19 11:11 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Dan Neely26-Nov-19 11:22
MemberDan Neely26-Nov-19 11:22 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
TheGreatAndPowerfulOz26-Nov-19 10:38
MemberTheGreatAndPowerfulOz26-Nov-19 10:38 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Tim Deveaux26-Nov-19 10:20
MemberTim Deveaux26-Nov-19 10:20 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
TheGreatAndPowerfulOz26-Nov-19 10:39
MemberTheGreatAndPowerfulOz26-Nov-19 10:39 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Marc Clifton26-Nov-19 13:07
communityengineerMarc Clifton26-Nov-19 13:07 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Dan Neely27-Nov-19 3:59
MemberDan Neely27-Nov-19 3:59 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Marc Clifton26-Nov-19 13:16
communityengineerMarc Clifton26-Nov-19 13:16 
JokeRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
Rage26-Nov-19 23:44
professionalRage26-Nov-19 23:44 
GeneralRe: One of the very few times I find myself liking Ruby/Rails syntax Pin
ZurdoDev27-Nov-19 2:59
mveZurdoDev27-Nov-19 2:59 
GeneralCodeDom users, what's your opinion? Pin
honey the codewitch26-Nov-19 9:45
mvahoney the codewitch26-Nov-19 9:45 
GeneralRe: CodeDom users, what's your opinion? Pin
TheGreatAndPowerfulOz26-Nov-19 10:09
MemberTheGreatAndPowerfulOz26-Nov-19 10:09 
GeneralRe: CodeDom users, what's your opinion? Pin
Sander Rossel26-Nov-19 11:39
professionalSander Rossel26-Nov-19 11:39 
GeneralRe: CodeDom users, what's your opinion? Pin
honey the codewitch26-Nov-19 11:44
mvahoney the codewitch26-Nov-19 11:44 
GeneralRe: CodeDom users, what's your opinion? Pin
Nelek26-Nov-19 23:21
protectorNelek26-Nov-19 23:21 
GeneralRe: CodeDom users, what's your opinion? Pin
honey the codewitch26-Nov-19 23:22
mvahoney the codewitch26-Nov-19 23:22 

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.