Skip to main content
245 votes

Are design patterns frowned upon?

These are the words of someone who has found success and ignores people that try to tell him what to do in pattern jargon that he doesn't understand. Design patterns and best practices are not the ...
candied_orange's user avatar
97 votes

Are design patterns frowned upon?

Many design patterns, of the kind that you and your friend are describing, are really just workarounds for deficiencies in programming languages. Use a more expressive programming language, and most ...
Robert Harvey's user avatar
86 votes

Are design patterns frowned upon?

Stackoverflow.SE and Programmers.SE mostly encourage people to follow best practices like SOLID, not industry standards. And believe it or not, the de facto industry standard is often the "big ball of ...
Doc Brown's user avatar
  • 209k
45 votes

Are design patterns frowned upon?

Design patterns are just names used to communicate ideas. I often found myself doing things which later I found that have a name. Thus, there is no "design pattern way" as opposed to a "non-design ...
Paul92's user avatar
  • 2,591
30 votes

Are design patterns frowned upon?

To add another metaphor to the soup, design patterns are Clippy the Microsoft Office helper. "You seem to be doing the same thing to a whole bunch of stuff. Can I help you with that by offering you ...
Steve Jessop's user avatar
  • 5,111
20 votes

Are design patterns frowned upon?

Your colleague seems to suffer from the NIH syndrome ("Not Invented Here"). It's perfectly plausible that his code makes it easier to add new fields: I'm also much faster to update my own code than ...
Christophe's user avatar
  • 78.4k
16 votes

Are design patterns frowned upon?

A key insight many people miss is that software design is contextual. It exists to reach business goals, and different goals may require different approaches. Put differently, there is no design that ...
meriton's user avatar
  • 4,100
10 votes
Accepted

Avoiding Arrow Anti-Pattern in MISRA-C

Upgrade to MISRA C:2012. MISRA C:2012 does not contain Required Rule 14.9: "An if(expression) construct must be followed by a compound statement." or Required Rule 14.10: "All if/elseif must be ...
Robert Harvey's user avatar
8 votes

Are design patterns frowned upon?

Design patterns aren't really called design patterns because they prescribe what to do. Design patterns are design patterns because they describe what has been done before. Some developer or ...
Jeremy Holovacs's user avatar
7 votes

What is the name for the non-extension part of a filename?

I believe that's just called the "filename" as well, which makes thing fairly confusing: Discussions of filenames are complicated by a lack of standardisation of the term. Sometimes "filename" is ...
FirstLastname's user avatar
6 votes

Are design patterns frowned upon?

I usually like to think of it in the way of - say - "navigation" using the GPS. When learning 'best practices' and 'design patterns' - you learn to take the GPS navigation route. But when you know ...
Allan S. Hansen's user avatar
6 votes

Is there some standard or virtually standard way to document code in a language agnostic and IDE agnostic fashion?

There is no standard. It all depends on the specific tool that you use for generating the documentation. On one hand, you have language-specific tools like Javadoc for Java, Scaladoc for Scala, rdoc ...
Thomas Owens's user avatar
  • 83.3k
5 votes
Accepted

Any standard expansions to RFC 4122 for generating a name based UUID using SHA256

Creating UUIDs of version 3 or 5 is not a cryptographic act, thus the cryptographic strength of the hashing method is pretty much irrelevant. The fact, that SHA1 has been (partially!) broken in the ...
Mecki's user avatar
  • 2,340
5 votes
Accepted

is it okay to use negative numbers to extend an industry standard data model

From a practical point of view, the only thing which really matters is: is it guaranteed that every code accessing the Animal table will handle those negative IDs correctly? Do you have the code ...
Doc Brown's user avatar
  • 209k
5 votes

Are design patterns frowned upon?

Adding a new field to the UI/database/Data layer takes 2-3 hours to do, where as in his code it takes 30 minutes. If you want to "optimize" a design you need to say what you're trying to optimize. ...
ChrisW's user avatar
  • 3,417
4 votes

Are design patterns frowned upon?

Design patterns are tools. Like tools, there's two ways to use them: the correct way, and the incorrect way. For example, if I give you a screwdriver and a nail, and ask you to join two pieces of wood ...
phyrfox's user avatar
  • 539
4 votes

Current industry standard with regards to C macros

You see an absolute rule, and things don't work that way. You also seem to be focussed on macros vs. inline functions which is very rarely the question. Macros can be extremely useful if you know how ...
gnasher729's user avatar
  • 45.9k
4 votes
Accepted

How relevant is DSDM nowadays?

It depends on what you consider "relevant" to mean. Arie van Bennekum is one of the authors of the Manifesto for Agile Software Development and was (maybe still is?) actively involved with DSDM. DSDM ...
Thomas Owens's user avatar
  • 83.3k
4 votes
Accepted

What is standard/considered best practice for the media used for different documentation?

The best practice for documentation is the newbie is the expert on how readable it is. You're new. You're looking at the code and the documentation with the best critical eye. You can see what's been ...
candied_orange's user avatar
3 votes

What to consider in choosing an approach to dev environment creation for existing production system?

It might help to think of it as two different tasks - (a) the creation of a new development test environment and alteration of deployment practices, and (b) testing and implementing an OS upgrade of ...
Steve's user avatar
  • 9,022
3 votes

is it okay to use negative numbers to extend an industry standard data model

You are working with two data sets. Any attempt to hide this and merge them into one is going to have weird side effects and will most likely lead to problems later on. Much better to have a ...
Wilbert's user avatar
  • 1,703
2 votes

Are design patterns frowned upon?

You can't 'avoid design patterns', except I guess by avoiding designing any two parts of your system the same way (which I don't recommend and I doubt your senior developer is doing). What he ...
Jonathan Cast's user avatar
2 votes

Are design patterns frowned upon?

Design patterns are not antithetical to agile practices. What is antithetical to agile practices is using design patterns for the sake of using design patterns, the common practice among fresh ...
jwenting's user avatar
  • 9,871
2 votes

is it okay to use negative numbers to extend an industry standard data model

It's not a great idea. The best way is to have your own id and link that to the external data id. Lets say you have a string id for your Animal table MyAnimals MyId, ...
Ewan's user avatar
  • 77k
2 votes

How to manage model(s) between web client (DMZ) and web API?

Yes you should split them. Why? Security and Privacy Backwards Compatibility Security and Privacy Imagine that you have a User and that user has a password: do you wish to return that password ...
Kain0_0's user avatar
  • 16.2k
2 votes

How relevant is DSDM nowadays?

I'm with the Agile Business Consortium, and can update you on DSDM. DSDM has now evolved to encompass our projects, programmes and portfolios methodologies, and the qualifications that cover those ...
Tamsin Fox-Davies's user avatar
1 vote

Is there some standard or virtually standard way to document code in a language agnostic and IDE agnostic fashion?

This has interested me as well ever since I discoverede first "literate programs" and then Bird Style first in Miranda and then Haskell. See https://wiki.haskell.org/Literate_programming#...
Thorbjørn Ravn Andersen's user avatar
1 vote

How relevant is DSDM nowadays?

I can verify that certain teams at Lockheed Martin and Vanguard use the MoSCoW (Must have, Should have, Could have, Will not have) method. As you may know, MoSCoW came from DSDM. I learned about ...
Matt Messersmith's user avatar
1 vote

is it okay to use negative numbers to extend an industry standard data model

Does the documentation for their standard discuss this? In the financial services industry, it is quite normal to see documented standards that allow for proprietary extensions. Some examples of ...
Karl Nicoll's user avatar
1 vote

Industry Prevalence of JML Specification

Design by Contract is not commonly done, so such annotations would be quite uncommon. This doesn't mean they wouldn't be used at all! Instead, Design by Contract is most useful when correctness is of ...
amon's user avatar
  • 135k

Only top scored, non community-wiki answers of a minimum length are eligible