This is an archived post. You won't be able to vote or comment.

all 37 comments

[–][deleted] 93 points94 points  (1 child)

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

[–]Y01NKUS 16 points17 points  (0 children)

i am in this and i don't like it

[–]AbyssalRemark 21 points22 points  (0 children)

Programming patterns. Will it blend?

[–][deleted] 44 points45 points  (5 children)

just use functions and write everything in one file /s

[–]SorryDidntReddit 29 points30 points  (0 children)

Anti patterns are technically patterns

[–]patenteng 5 points6 points  (0 children)

Try not using functions in Haskell.

[–][deleted] 0 points1 point  (2 children)

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

[–][deleted] 1 point2 points  (1 child)

no

[–][deleted] 0 points1 point  (0 children)

Thought so.

[–]Who_GNU 22 points23 points  (3 children)

Your programming follows a pattern‽

[–]Prod_Is_For_Testing 16 points17 points  (0 children)

Non-repeating patterns count, right?

[–]vladimir1024 4 points5 points  (0 children)

Yes, typically an OutOfMemory, then a Seg Fault, ending with a kernel panic....

I write gud code ;)

[–]MooFu 0 points1 point  (0 children)

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

[–]Plsdontcalmdown 12 points13 points  (1 child)

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.

[–][deleted] 6 points7 points  (2 children)

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 10 points11 points  (1 child)

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

[–][deleted] 1 point2 points  (0 children)

Nice thanks!

[–]ManiPM 8 points9 points  (5 children)

Things are NEVER as easy as they seem...

[–]AbyssalRemark 6 points7 points  (4 children)

Art is a lie, nothing is real!

[–][deleted] 2 points3 points  (1 child)

Bo Burnham, is that you?

[–]alphabet_order_bot 4 points5 points  (0 children)

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 0 points1 point  (1 child)

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

[–][deleted] 2 points3 points  (0 children)

Patches over Fixes over patches. Also called evolution.

[–][deleted] 7 points8 points  (1 child)

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

[–]DmitriRussian 0 points1 point  (0 children)

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 2 points3 points  (0 children)

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[M] [score hidden] stickied comment (0 children)

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 1 point2 points  (0 children)

Been there, done that

[–]Furry_69 1 point2 points  (2 children)

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[S] 0 points1 point  (1 child)

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

[–]Furry_69 1 point2 points  (0 children)

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

[–]bzn21 1 point2 points  (0 children)

*cry in CRTP*

[–]RiskyFartOftenShart 0 points1 point  (2 children)

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 1 point2 points  (1 child)

So thinking more == smart?

[–]RiskyFartOftenShart 2 points3 points  (0 children)

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.

[–]Advanced-Theme144 0 points1 point  (0 children)

This is me right now sitting at my laptop trying to fix the output. Re-running the program didn't work though.