Are you learning the basics of composition in object-oriented programming?
Read more here:
https://www.devleader.ca/2024/04/04/examples-of-composition-in-csharp-a-simple-guide-for-beginners/
Are you learning the basics of composition in object-oriented programming?
Read more here:
https://www.devleader.ca/2024/04/04/examples-of-composition-in-csharp-a-simple-guide-for-beginners/
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...
https://magicmarcy.de/interfaces-vs-abstrakte-klassen-in-java
#interface #abstrakte-klasse #basisimplementierung #abstrakte-methode #schnittstelle #erweiterung #vertrag #lose-kopplung #abstraktion #oop
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
https://www.reddit.com/r/programming/comments/1qtbi2l/semantic_compression_why_modeling_realworld/
Are you learning the basics of inheritance in object-oriented programming?
Read more here:
https://www.devleader.ca/2024/04/03/examples-of-inheritance-in-csharp-a-simplified-introduction-to-oop/
Breaking into software development isn’t just for CS grads. A trainee program shows how curiosity, grit & communication can turn career changers into #Java developers in 6 months.
Andreas Monschau explains how it works: https://javapro.io/2025/09/16/journey-to-junior/
#Development #Approaches
A web component super power · Done right, inheritance shines in design systems https://ilo.im/169d48
_____
#Inheritance #OOP #Reusability #Maintainability #JavaScript #WebComponents #DesignSystems #WebDesign #WebDev #Frontend
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
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? ....
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.
Hallo liebe #AntiFa
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 #AnsgarHeise zur #noAfD bin, obwohl ich auf der #OOP #oopKonferenz spreche, die von der heise Gruppe organisiert wird.
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, […]
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:
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.
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...
#oop #java #programmier-paradigma #paradigma #kapselung #vererbung #polymorphie #abstraktion #konzept
> Помню, когда деревья были маленькими, а Quake вышел только первый, будущие программеры вместо того, чтобы учиться, часами гоняли по сетке deathmatch в лабе.
И вот однажды препод по объектно-ориентированному программированию, расстроившись отсутствием людей на своей лекции, пошел в лабораторию...
И вместо "всех завалю" сообщил любителям FPS, что внутри Quake есть объектный язык Quake C и встроенный компилятор, и пообещал показать, как сделать самонаводящуюся ракету, реалистичную модель огнемета и джетпак.
"Играть — удел юзеров, творить — привилегия программистов!".
С тех пор у него на лекции был аншлаг, вместо унылых интернет-магазинов мы пилили коммуницирующих ботов, самонаводящиеся пушки, оптимизирующие расход патронов, модель горения стенок и прочее. Естественно, с разделением консернов, компонентизацией, автотестами и т. п. Собственно играть в игру стало не интересно...
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!
#python #pythondisaster #classvariable #sharedstate #ratelimiting #productionbug #pythonshorts #pythonwtf #instanceconfusion #careerending #apithrottling #oop
Leanpub book LAUNCH 🚀 The Other Half of Coding: What they Didn't Teach You by Max Guernsey, III
Watch here: https://youtu.be/lDwuiSwaCf4
#books #leanpublishing #selfpublishing #booklaunch #management #coding #programming #OOP #TDD #softwareengineering #refactoring
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 ...
https://magicmarcy.de/java-interview-fragen-2-objektorientierte-programmierung-oop
#java-interview #oop #kapselung #vererbung #polymorphismus #abstraktion #klassen #objekte #zugriffsmodifikatoren #komposition #konstruktor