mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#objectorientedprogramming

0 posts0 participants0 posts today

kitfucoda.medium.com/the-versa

Python's __call__ dunder offers a closure alternative. It manages state in a class, callable like a function, opening new code structuring possibilities.

In complex scenarios, __call__ enhances readability and maintainability. Encapsulating logic and data promotes cleaner code, improving clarity and debugging.

For pre-filling arguments, consider __call__ over functools.partial, especially with methods needing internal state. It creates a state-holding object for robust operations.

This is beneficial in large projects with complex logic. Using __call__ improves organization and maintainability, leading to efficient development.

Medium · The Versatility of __call__: A Python Developer’s Secret WeaponBy KitFu Coda

I hope everyone's having a good day or night. It's after 2:00 AM here, but I have no sleep schedule because #sleepDisorders. I'm sitting at my desk munching on apple slices and fruit dip, listening to music, and studying and playing #incremental #games on my computer. I'm working on lesson 9 of the Literary #Braille #Proofreading course from #NLS and #NFB and studying object oriented #programming with #JavaScript on #freeCodeCamp. What's everyone else up to?
#BrailleProofreading #technology #tech #coding #learnToCode #learningToCode #objectOrientedProgramming #incrementalGames #idleGames #gaming

Object.freeze() and Object.seal() in JavaScript

This article explains the differences between `Object.freeze()` and `Object.seal()`.

➡️ `Object.freeze()` makes an object completely immutable, preventing any changes to its properties
➡️`Object.seal()` allows modifications to existing properties but prevents adding or removing properties

Examples and use cases are provided for both methods too.

#JavaScript Programming #OOP #ObjectOrientedProgramming

jsdev.space/howto/freeze-seal-

JavaScript Development BlogObject.freeze() and Object.seal() in JavaScriptLearn the key differences between Object.freeze() and Object.seal() in JavaScript. Discover how these methods control object mutability and prevent unwanted changes to your code.

David A. Moon was one of the founders of Symbolics and one of the chief architects of its Lisp machines. In 1991, after he left Symbolics and joined Apple, he wrote this retrospective of Genera, "the world's first commercial object-oriented operating system": archive.org/details/genera-ret

Internet ArchiveGenera Retrospective : Apple : Free Download, Borrow, and Streaming : Internet ArchiveA paper on Symbolics Genera by David A. Moon.Symbolics Genera was the world's first commercial object-oriented operating system. This paper describes a few...

Is it possible to get the benefits of functional programming without going all in?

This post presents "functional foundations", a set of functional programming concepts that I have found helpful in everyday programming, even for programmers not trained in functional programming.

henko.net/blog/functional-foun

Henrik Jernevad · Functional foundations ⚙️A selection of functional programming concepts that I feel are helpful to all developers.

Found an interesting article through Manuel Simoni: w3.org/People/Connolly/9703-we

"HTTP was design[ed] as a distributed realization of the Objective C (originally Smalltalk) message passing infrastructure [...]
Uniform Resource Locator is just the result of squeezing the term _object reference_ through the IETF standardization process."

www.w3.orgFrom the Editor -- Web Apps, Issue 2 Mar/Apr 1997

Java will be getting value classes openjdk.org/jeps/8277163 in short it’s classes where instances don‘t have a unique identity. In other words == and equals() will behave the same way. It took me so long to understand the difference for traditional classes. In wonder whether this will make things more confusing because now you need to look up a class definition when you see == somewhere. Also records can be value classes…
#java #jep #confused #oop #objectorientedprogramming

openjdk.orgJEP draft: Value Objects (Preview)