Skip to main content
10 events
when toggle format what by license comment
Jan 5, 2018 at 18:31 comment added cHao @ABravoDev: Not "specific to the language". "Baked into the language". Patterns, i'd argue, require something extra that the language doesn't provide. (The only reason patterns exist is to solve problems the language hasn't already solved for you.) Early return (and guard clauses, which are a very closely related concept) might more properly be called an idiom.
Jan 5, 2018 at 12:21 comment added A Bravo Dev @BoristheSpider You are absolutely right! But I dont know what FindDataById does... perhaps we are running in circles.
Jan 5, 2018 at 12:18 comment added A Bravo Dev @cHao Interesting... then my "pattern" matches that definition (it's a common problem, you need to take it step by step; and conditional statements and return is not specific to this language, though they are language that don't have them)
Jan 5, 2018 at 11:04 comment added interphx @Bergi Probably a code style pattern, not software design pattern.
Jan 5, 2018 at 9:43 comment added Boris the Spider This is crying out for a method to call some DAO with an id. You can the same code 3 times.
Jan 4, 2018 at 21:56 comment added cHao @ABravoDev: Multiple steps/parts that commonly appear together to solve a common problem, but are not baked into the language.
Jan 4, 2018 at 19:52 comment added A Bravo Dev What is actually needed to be called a pattern?
Jan 4, 2018 at 19:40 comment added Bergi Are early returns a "pattern" now?
Jan 4, 2018 at 6:59 vote accept someone
Jan 3, 2018 at 18:41 history answered A Bravo Dev CC BY-SA 3.0