It’s been over two years since I reviewed any Cornell Woolrich, which seems incredible when you consider how completely I loved his work when he first started appearing on The Invisible Event. But, well, behind the scenes I’ve struggled through some of his stuff — the doom-drenched but ooooooverlong The Black Alibi (1942) and the … Continue reading #1338: The Black Angel (1943) by Cornell Woolrich| The Invisible Event
Graphic::Toolkit::Color 1.9 brought several big new features which I will write about when 2.0 comes out - just to sum up what changed since 1.0. This time I want to describe the internal changes, since this release completed an in-depth rewrite. So this will be about software engineering, architecture and coding style. TLDR: simple, clear, DDD, OO by composition and arg and a color space DSL!| blogs.perl.org
Creational patterns were first described in the famous Gang of Four’s Design Patterns. The book presents each pattern in a dedicated chapter and follows a strict structure for each one: intent, motivation, applicability, structure, participants, collaborations, consequences, implementation, sample codes, known uses, and related patterns. The intent pattern presents a succinct goal of the pattern, while the applicability tells when you should use it. For example, here’s an excerpt fo| A Java geek
Type annotations are a workaround for compiler limitations, not a feature—a well-designed language should infer all types automatically, forcing programmers to write smaller, cleaner modules.| www.yegor256.com
The twelfth published novel from Erle Stanley Gardner under his A.A. Fair nom de plume, Bedrooms Have Windows (1949) finds L.A. P.I.s Bertha Cool and Donald Lam once more skirting the law in pursuit of a case whose precise shape is obscured by the sheer number of actions dragged across its trail. And while this … Continue reading #1326: Bedrooms Have Windows (1949) by A.A. Fair| The Invisible Event
MP 44: Providing different ways to represent instances of a class.| Mostly Python
In software development, dealing with null values is a common source of bugs and errors. The Optional object, popularized by Java 8, offers a way to handle null values gracefully, reducing the risk of NullPointerException. While we do not have the risk of a NullPointerException in PHP, the optional still provides benefits. This guide adapts the concept for PHP, demonstrating how to use an Optional class to improve code safety and readability.| Florian Krämer
Delegating behavior to objects rather than invoking utility methods leads to cleaner, more extensible, and properly encapsulated object-oriented design.| www.yegor256.com
Implémentation de "méthodes gardées" en utilisant des témoins d'égalités de types| xvw.lol
Implementation of "guarded methods" using type equality witnesses| xvw.lol
One of my favourite discoveries of recent years has been the character of Captain Duncan Maclain, the blind protagonist of a baker’s dozen of books by Baynard Kendrick. Having enjoyed The Odor of Violets (1941) and Blind Man’s Bluff (1943) as part of the American Mystery Classics range, I’ve been keeping an eye out for … Continue reading #1293: The Whistling Hangman (1937) by Baynard Kendrick| The Invisible Event
An interesting problem which I've seen come up decently often in C++ code generators is how to deal with what I'm calling "partially generated classes". We want to generate methods and members for a class which call other methods on that class added by the implementation. Potential Solutions I'm not …| Nika's Box
What’s the difference?| Alexandru Nedelcu - Blog
This is the 1st article of a series that explores the difference between OOP design, and parametric polymorphism with Type Classes, as both are possible in Scala.| Alexandru Nedelcu - Blog
Scala is considered a multi-paradigm language, for better or worse, being one of the best OOP languages, which is why it’s so versatile. Let’s do a design exercise, going from OOP to static FP, and back. Let’s understand the various techniques promoted in the community, and understand why the OOP design isn’t just “idiomatic” for Scala, but can be superior to alternatives.| Alexandru Nedelcu - Blog
I just refactored a piece of code. I deleted 6 source code files, and rebuilt the functionality with a bunch of dirty OOP classes shoved in a single file 😱| Alexandru Nedelcu - Blog
Snippet of code discussing Tagless Final vs OOP-style dependency injection.| Alexandru Nedelcu - Blog
How do you go about discussing a book you couldn’t even be bothered to finish? The tempting thing is not to review it at all, but I’m committed to certain undertakings on this blog R…| The Invisible Event
After my last post and generally the kind of indirect advertising I’m doing to the Go programming language for a few months now, I heard about and talked with a lot of people who started being interested in the language, so for once I decided to write what I don’t like about it instead, to provide a more balanced perspective of what’s my experience so far and maybe let some of those people realize that Go is not the right choice for their projects after all. NOTE 1 It’s important to s...| evilsocket
I have in the past referred to The Punch and Judy Murders, a.k.a. The Magic Lantern Murders (1936) — the fifth book to feature Sir Henry ‘H.M.’ Merrivale under John Dickson Carr&#…| The Invisible Event
Han pasado un par de meses desde que entré en el mundo de AWS Lambda. Condensé mi pequeña experiencia en este tutorial para todos aquellos que no estén familiarizados con él.| 10Pines | Blog
You either instantiate an object first and then check its qualities, or you check the quality and only then make an object; which way is better?| www.yegor256.com
I wrote a previous post on Class-Like Structures for usage in C, in order to create objects that would allow for both inheritance and polymorphism. However, it's annoying to keep a pointer to each type of required function for each type of object, and often times you'll need fancy typecasting in multiple locations in order to avoid compiler warnings.| Randy Gaul's Game Programming Blog
During my second semester while attending DigiPen IT I had to create a game in C. Since I wasn't allowed to use C++ until my Sophomore year for this game project I had to come up with a way of having strong organization during development. Class-like structures in C that allowed for polymorphism and inheritance were implemented! Virtual functions were also used to organize the functionalities of each type of object into a universal format!| Randy Gaul's Game Programming Blog
Use a real example to illustrate how to achieve good design by applying polymorphism from the database to the UI.| zenstack.dev
What is it good for?| blogs.perl.org
First, there is the question of “what is a Service?” W3C defines a web service as: “a software system designed to support interoperable machine-to-machine interaction over a network.”[1]...| Beth Andres-Beck
An immutable object is an object whose state cannot be modified after it is created. Immutable objects have several desirable properties, of which the two most important ones relevant to this post …| whatheco.de
Moose is great, but it does introduce a slight performance hit to your code. In the more than 15 years since it was first released, hardware improvements have made this less of a problem than it once was. Even so, if performance is a concern for your project, Moose might not be what you want. It also has a fairly big collection of non-core dependencies.| blogs.perl.org
Recently I came across a blog post whose author claims, from the perspective of good coding practices, polymorphism is strictly superior to branching. In the...| pkolaczk.github.io
In this article Emilio told us how to achieve an elegant and expressive desing in Elixir with polymorphic protocols.| 10Pines | Blog
People keep claiming that modern OOP languages aren’t “really OOP” because they don’t follow Alan Kay’s definition of “OOP”. I can see the logic here, even if I disagree the conclusion. More recently I’ve seen people start claiming that Kay invented objects entirely. This is factually incorrect. Alan Kay did not invent objects. They come from Simula, which the Smalltalk-72 manual cites as a major inspiration (pg 117). The famous 1981 Byte magazine issue that popularized Smallt...| Hillel Wayne