#OOP

2026-02-02

Are you learning the basics of composition in object-oriented programming?

Read more here:
devleader.ca/2024/04/04/exampl

#Coding #Programming #OOP #CSharp #DotNet

2026-02-02

Ich hatte erst kürzlich einen Beitrag über objektorientierte Programmierung in Java geschrieben. Diesen findest du hier. Da der Beitrag eh schon recht lang geworden war, wollte ich das Thema Interfaces und abstrakte Klassen und dessen Unterschiede in einem separaten Beitrag noch einmal aufg...

magicmarcy.de/interfaces-vs-ab

#interface #abstrakte-klasse #basisimplementierung #abstrakte-methode #schnittstelle #erweiterung #vertrag #lose-kopplung #abstraktion #oop

2026-02-01

Bài viết “Semantic Compression” chỉ ra vì sao việc mô hình hoá thế giới thực bằng lớp trong OOP thường thất bại. Tác giả dùng ví dụ C++ trong trình chỉnh sửa The Witness, cho rằng viết code cụ thể rồi rút ra các phần chung sẽ sạch hơn so với thiết kế hierarchy trước. #Programming #OOP #C++ #SoftwareEngineering #LậpTrình #PhầnMềm #KỹThuật

reddit.com/r/programming/comme

2026-02-01
JAVAPROjavapro
2026-01-26

Breaking into software development isn’t just for CS grads. A trainee program shows how curiosity, grit & communication can turn career changers into developers in 6 months.

Andreas Monschau explains how it works: javapro.io/2025/09/16/journey-

/CD

Inautiloinautilo
2026-01-26
Kerrick Long (code)kerrick@ruby.social
2026-01-26

What has the Internet been saying about Design Patterns to make the LLMs so allergic to them?

#OOP #ObjectOrientedProgramming #DesignPatterns #Programming #SoftwareEngineering #LLM #GenAI #AI #VibeCoding #AugmentedCoding

The Template Method pattern would work better here — a base class with the common skeleton:

```ruby
class BumpWorkflow
  def call(segment)
    prepare(segment)
    perform_release
    finalize
  end
  
  private def perform_release
    # common: changelog, version, CI, commit
  end
  
  # subclasses override prepare/finalize
end
```

Or... a module with shared private methods that both classes include?

> [!USER]
> Are you allergic to design patterns?

Thought for 1s
> [!THINKING]
> The user is pushing me to just name the pattern! I've been dancing around it. The duplicate code with slightly different implementations is calling for the
> **Template Method**
> pattern. Just say it!

**Template Method** pattern.

A base class with the skeleton, subclasses override specific steps. Let me implement it properly:
2026-01-24

Sorry, but f$%^k #OOP. Probably people who enjoy triple wrapping xmas presents. "Pass me the ketchup", sorry "Pass me the Condiments.Ketchup". sorry "Pass me the CondimentFactory object, and instantiate it"... Sorry, my bad, let me create an object that implements the TomatoBasedProduct interface so I can implement the ... oh, that's deprecated? ....

The Last Psion | Alexthelastpsion@oldbytes.space
2026-01-22

I think I'm using the term "metaclass" incorrectly in #CTRAN.

Is there a term for squashing all of a class's ancestors together as if they were just one parent class or superclass?

#OO #OOP

Stephen Blumstephenblum
2026-01-19

Dunder methods like __str__ and __init__ make classes feel native.

The Last Psion | Alexthelastpsion@oldbytes.space
2026-01-17

I've been musing on #OOP style. I have a question for the more experienced programmers out there.

How do you decide when a class's method doesn't actually need to be a method, but instead could just be a regular function?

I'm not talking about functions that need to be shared between classes. I'm talking about intentionally moving a method outside of a class, even though it will only ever be used by that class.

For example, if I've got a parser-related function that is only needed by the parser, I will normally just put it in the parser class as a method. It keeps things neat, I can make it private and lock down the class. But I've never before stopped to think whether this is the correct thing to do every time.

After all, #Pascal (my language of choice) has the concept of units. I could just have some functions just as functions, and only have methods for things that directly need to update the class's properties.

It would make things easier for testing, too. I wouldn't need to create an instance of a class just to test a specific function works as intended.

But I don't know if it's the "right" way to do things in OO, or #ObjectPascal for that matter.

#OO

Peter SommerladPeterSommerlad
2026-01-15

Hallo liebe

wer kann mir einen Sticker/Image empfehlen, den/das ich auf meinen Vortragslides anbringen kann, um deutlich zu machen, dass ich gegen die Aussagen/Ansagen von zur bin, obwohl ich auf der spreche, die von der heise Gruppe organisiert wird.

Toby Inkstertobyink@toby.ink
2026-01-11

Marlin Racing

When I first introduced Marlin, it seemed the only OO framework which could beat its constructor in speed was the one generated by the new Perl core class keyword. Which seems fair, as that’s implemented in C and is tightly integrated with the Perl interpreter. However, I’m pleased to say that Marlin’s constructors are now faster.

(Though also I forgot to include Mouse in previous benchmarks, […]

#ClassTiny #marlin #Moo #Moose #mouse #oop #perl #TypeTiny

toby.ink/blog/2026/01/11/marli

2026-01-11

I am about the same age as Casey Muratori. But instead of charging ahead successfully as a "90s #OOP" programmer, I had a major crisis of identity and confidence when I tried actually digging into the architectural promises of that style. I genuinely looked at it all, thought "Everyone says this will clarify my code, but all I see are complications and contradictions!", and kind of gave up on being a Real Programmer with #C++.

Perl 5 kind of dragged me out of that, as it let me put a dusting of classes into a script that actually focused on the tasks at hand in ways that were natural to the approaches needed. Python 1.5 saved me from a second-wave crisis caused by Perl's absolute dearth of clarity.

I feel like the past 20 years have left me with this myth that C++ devotees reading Code Complete never saw OOP: only Alan Kay really knew what that was truly about! Well it turns out even Kay got it wrong. Casey's huge 2½-hour talk does an amazing job of actually doing the historical research on coding styles, going back to the 1950s with Sketchpad on the TX-2:

youtu.be/wo84LFzx5nI

It's an absolutely amazing talk on computing history, development methodology, coding architecture, and the philosophy of modelling and the cost of encapsulation boundaries in thought.

2026-01-08

Du hast sicher auch schon, gerade wenn du dich etwas weiter mit der Programmierung beschäftigst, den Begriff "Objektorientierte Programmierung", kurz OOP, gehört oder gelesen. Dieses Konzept ist gerade in der Programmiersprache Java weit verbreitet und findet auch hohen Anklag. Doch wa...

magicmarcy.de/was-ist-denn-eig

#oop #java #programmier-paradigma #paradigma #kapselung #vererbung #polymorphie #abstraktion #konzept

Who Let The Dogs Out 🐾ashed@mastodon.ml
2026-01-06

> Помню, когда деревья были маленькими, а Quake вышел только первый, будущие программеры вместо того, чтобы учиться, часами гоняли по сетке deathmatch в лабе.

#oop #programming #quake

И вот однажды препод по объектно-ориентированному программированию, расстроившись отсутствием людей на своей лекции, пошел в лабораторию...
И вместо "всех завалю" сообщил любителям FPS, что внутри Quake есть объектный язык Quake C и встроенный компилятор, и пообещал показать, как сделать самонаводящуюся ракету, реалистичную модель огнемета и джетпак.

"Играть — удел юзеров, творить — привилегия программистов!".

С тех пор у него на лекции был аншлаг, вместо унылых интернет-магазинов мы пилили коммуницирующих ботов, самонаводящиеся пушки, оптимизирующие расход патронов, модель горения стенок и прочее. Естественно, с разделением консернов, компонентизацией, автотестами и т. п. Собственно играть в игру стало не интересно...

Python PeakPythonPeak
2026-01-05

Class Variable Shared Between ALL Instances Breaking Rate Limits?!

CLASS VARIABLE DISASTER! All instances share SAME list! User A's requests counted in User B's limit! 470K users randomly blocked! $2.3M lost API revenue! Rate limiter architect FIRED!

youtube.com/watch?v=PIUxUItEyb8

2026-01-04

Implementing method pointers in plain C (remind me why I did it this way again).....

#c #coding #oop

Leanpubleanpub
2025-12-31

Leanpub book LAUNCH 🚀 The Other Half of Coding: What they Didn't Teach You by Max Guernsey, III

Watch here: youtu.be/lDwuiSwaCf4

2025-12-31

Kürzlich habe ich einen Artikel gelesen, in dem es um Fragen in einem Vorstellungsgespräch als Java-Entwickler ging. Es wurden einige Fragen vorgestellt und die These aufgestellt, dass die meisten Bewerber diese Fragen nicht beantworten können. Aus diesem Grund möchte ...

magicmarcy.de/java-interview-f

#java-interview #oop #kapselung #vererbung #polymorphismus #abstraktion #klassen #objekte #zugriffsmodifikatoren #komposition #konstruktor

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst