#Encapsulation

IB Teguh TMteguhteja
2024-09-21

Dive into the world of in ++! Discover how to protect your data, create flexible code, and master . Learn to use access specifiers, private members, and public methods for better software design.

teguhteja.id/encapsulation-in-

IB Teguh TMteguhteja
2024-09-21

Discover the power of encapsulation in C++! Learn how to protect your data, improve code flexibility, and master object-oriented programming. Dive into practical examples and boost your C++ skills.

teguhteja.id/encapsulation-in-

Pankaj Chouhanpankaj_str
2024-04-12

Discover the power of encapsulation in C++! 🚀 Learn how this cornerstone principle makes software robust and manageable. Dive into practical examples and unravel its essence with us at p4n.in.

p4n.in/2024/04/07/encapsulatio

2023-12-09

#decoupling #encapsulation
#thatmomentwhen you realize your OOP structure was worth it when you have to replace one class with another*, and when you swap in the new code for the old code... EVERYTHING STILL WORKS.

* I mean 3. THREE classes.

#codejoy

2023-11-13

Are You tired of Your IT departments blocking essential services(your self-hosted wireguard) on eduroam WiFi? Try encapsulating it with http/websockets !

sdr.li/post/chisel0/
sdr.li/post/chisel2/

#eduroam #firewall #chisel #sysop #admin #encapsulation #wireguard #bofh

2023-10-08

Private constants & breaking private functions in Clojure

youtu.be/kzAOEqlbapM

#Clojure #Programming #Software #Encapsulation

2023-08-15

New article:

⚠️Why you should avoid import * in Python 🐍
pybit.es/articles/why-you-shou

Covering:
- Why modules are great and namespacing explained
- Why import * is a problem
- A practical example where a function gets overriden
- The recommended way to do imports
- What PEP8 has to say about this
- Protection workaround, use __all__ to define your module's public interface

#python #pythonprogramming #modules #encapsulation #namespacing #zenofpython #bestpractices #pitfalls #imports #dundermethods

2023-08-15

People newer to Python often get confused by the statement:

if __name__ == "__main__":

That's many underscores ("dunders"), right?

In essence it lets you put code in your module that ONLY should execute when the module is called directly. So not when you import from it.

I explain this further with a practical example in this 3 minute video:
youtube.com/watch?v=ubpFY7_dAW

#python #pythonprogramming #encapsulation #pythoncoding

2023-05-02

It's good to see my favourite WPF feature isn't dead:

class StamperBase {
  constructor(o) { return o; }
}

class MyAttachedProperty extends StamperBase {
  #name;
  static getName(o) { return o.#name; }
  static setName(o, v) { return o.#name = v; }
}

const hostInit = Host.prototype.initialize;
Host.prototype.initialize = function() {
  new MyAttachedProperty(this);
  return hostInit.apply(this, arguments);
};

export const attachedNames = {
  get: MyAttachedProperty.get,
  set: MyAttachedProperty.set,
};

#JavaScript #encapsulation #pluginDev #shitpost #mildlyCursedCode

2023-04-12

Always fun when I get to break out this graphic 😆

#php #encapsulation

A simple line art graphic showing a street view with someone outside a fence being indicated with an arrow that says public, a child within the fenced area kicking a ball across their yard with an arrow indicating protected, and finally a baby visible through the window inside the house with an arrow pointing at them that reads: private
2023-02-05

Yes.

"cd.buy()" makes perfect sense.

@jasongorman
explains why you're probably thinking about OOP all wrong.

The takeaway: Encapsulation is the goal. The function is encapsulated upon the object.

Yes, you could try 'customer.Buy()' but then you end up with low-level coupling.

"Objects should encapsulate the details of HOW they work."

#oop #programming #design #encapsulation

youtube.com/watch?v=YG2qztxsmE

berkes 🐝 🚐 🏄 🌱berkes@bitcoinhackers.org
2023-01-04

I once was hired as consultant to guide a team who wanted move their monolith to #microservices. We got only halfway. And it was good!

The route to microservices goes via #DomainModeling, #decoupling, and #encapsulation. Bounded contexts, decoupling and modules was enough to put the team back on track and moving again. We never built a single microservice.

This week, Ted Neward wrote about this idea in a post that I now no longer have to write:

blogs.newardassociates.com/blo

#SoftwareArchitecture

:hacker_z: :hacker_o: :hacker_d: :hacker_s: :hacker_e: :hacker_c: 0xD :verified:zodmagus@infosec.exchange
2022-12-09
Niels Pflaegingnielspflaeging
2022-11-30

@leonid
Oh, that's interesting. Please send your former boss my regards!
I also think that Beta transformation at VW as a whole is not about to happen next year. ;-)
But here is the good news (so to speak) - and it is manifold:
- The company is suffering, and has been suffering for years. It needs substantial change
- Any group like VW consists of many many entities that could do , regardless of what the holding does. For this, , is necessary. But it is feasible

2020-11-10

main reason for using a Data Transfer Object is to batch up what would be multiple remote calls into a single call and #encapsulation of #serialization mechanism

2020-11-10

main reason for using a Data Transfer Object is to batch up what would be multiple remote calls into a single call and #encapsulation of #serialization mechanism

Client Info

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