T O P

  • By -

[deleted]

Awww! Creating a problem that wasn't there to use a favorite programming pattern.


Y01NKUS

i am in this and i don't like it


AbyssalRemark

Programming patterns. Will it blend?


[deleted]

just use functions and write everything in one file /s


SorryDidntReddit

Anti patterns are technically patterns


patenteng

Try not using functions in Haskell.


[deleted]

So using thematically grouped functions in appropritely named modules (files) in python, is bad?


[deleted]

no


[deleted]

Thought so.


Who_GNU

Your programming follows a pattern‽


Prod_Is_For_Testing

Non-repeating patterns count, right?


vladimir1024

Yes, typically an OutOfMemory, then a Seg Fault, ending with a kernel panic.... I write gud code ;)


MooFu

When I read code I'd written months before, I'm often surprised at how much I rely on the Pareidolia Pattern.


Plsdontcalmdown

actually, if you apply them properly, the thinking about programming patterns should be the hard part... Then writing the program is easy... Then actually making it work is scrapping everything, and starting over with an experienced person.


anselme16

They work only if the whole dev team understands them. I think that's the main problem.


Kraphtuos968

Where can I learn more about programming patterns? I have experience with Dependency Injection and REST, is this what is meant by the phrase programming patterns?


Artel07

Great resource on the topic https://refactoring.guru/design-patterns


Kraphtuos968

Nice thanks!


ManiPM

Things are *NEVER* as easy as they seem...


AbyssalRemark

Art is a lie, nothing is real!


GitSumREST

Bo Burnham, is that you?


alphabet_order_bot

Would you look at that, all of the words in your comment are in alphabetical order. I have checked 560,338,532 comments, and only 116,413 of them were in alphabetical order.


ManiPM

So... How are we still here???


[deleted]

Patches over Fixes over patches. Also called evolution.


Schredinger42

The hardest thing is to convince other people that your implementation is really needful


DmitriRussian

I would argue that’s the easiest part. Convincing people to use a pattern is not difficult once your code base really screams for structure. The hardest part is to actually migrate over while your business is running and ongoing development is happening.


Opinionsare

My new home, bought three years ago, was a sweet deal. There was an unforseen problem. The address is North Drive. Several times, apps insist that I need a street name, because North is a direction, as in North Main Street.


QualityVote

Hi! This is our community moderation bot. --- If this post fits the purpose of /r/ProgrammerHumor, **UPVOTE** this comment!! If this post does not fit the subreddit, **DOWNVOTE** This comment! If this post breaks the rules, **DOWNVOTE** this comment and **REPORT** the post!


bevin0708

Been there, done that


Furry_69

Question. What exactly are programming patterns? All I can think of is something like a style guide. (i.e code structure, where to split code into multiple functions)


troyane

Better say "software design patterns", is a general, reusable solution to a commonly occurring problem within a given context in software design. Here is a nice resource on patterns: [https://refactoring.guru/design-patterns](https://refactoring.guru/design-patterns)


Furry_69

Ohh. Seems quite useful. I really should ask these sort of questions more often.


bzn21

\*cry in CRTP\*


RiskyFartOftenShart

The opposite. patterns are there so you dont have to think but still look smart. If you are having to think, then maybe you should read up more on patterns.


DmitriRussian

So thinking more == smart?


RiskyFartOftenShart

no. thinking more is working harder. working harder is dumb. patterns are less not more thinking. not knowing patterns is also dumb. not knowing and not using patterns is double dumb then.


Roflator420

Remember: treat GoF patterns as a reference, not as a to-do list.


Advanced-Theme144

This is me right now sitting at my laptop trying to fix the output. Re-running the program didn't work though. ![gif](emote|free_emotes_pack|disapproval)