#dnswire v0.5.0 released!
- Updated DNSTAP, new HTTP Protocol Message attribute
- Fixed pkg-config dependencies
- Fixed missing decode checks
- Fixed enum unknown
- Fixed examples, packages and CI
#DNS #Encapsulation #Library #DNSTAP #OpenSource
https://codeberg.org/DNS-OARC/dnswire/releases/tag/v0.5.0
Release 0.5.0 - DNS-OARC/dnswire

This release updates DNSTAP's protobuf to include the recently added HTTP Protocol attribute in Message along with a few bug fixes. Bug fixes: - Add libprotobuf-c to pkg-config dependencies to correctly build on some platforms - Fix missing decode checks for Message type and and socket proto...

Codeberg.org
Reference Target: having your encapsulation and eating it too

How reference target allows us to improve accessibility when using shadow DOM

Today is the day we're getting our front (worst) crawlspace done here in Western North Carolina. A messy job, but the guys say they do it every day, and it won't take a full day to finish. Putting in a small vent fan and a large dehumidifier. Will see if removing humidity from this space helps with the newly finished basement, or if we'll need to duct the dehumid into that space as well.

Sigh. Why in the world do they build houses with these stupid spaces?

#IAQ #Humidity #Encapsulation

A Production-Ready Web Component Starter Template :: Aaron Gustafson

Creating a new web component from scratch involves a lot of boilerplate—testing setup, build configuration, linting, CI/CD, documentation structure, and more. After building — and refining/rebuilding — numerous web components, I’ve distilled all that work into a starter template that lets you focus on your component’s functionality rather than project setup.

Private Fields Use # Symbol?!

Private fields are HIDDEN! The # symbol makes properties truly private. You can't access them from outside, even with bracket notation. This is REAL privacy!

#javascript #javascripttricks #privatefields #symbol #encapsulation #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #classprivacy #advancedjavascript

https://www.youtube.com/watch?v=ycxs4Sb_7Eo

Private Fields Use # Symbol?! #codingchallenge

YouTube
Brent’s Encapsulated C Programming Rules

A bunch of tips and rules I’ve created for myself for developing programs in the C programming language

Brent’s Website

After thought (thought I didn’t plan to put into it), I don’t think "NULL coalescing" and "NULL chaining" needs to be built in to the #ProgrammingLanguage, and here’s why:

* If you’re getting just one thing, the getter can take an optional default result value. #Python works like this in `getattr`, `.get`, and things of that nature. Having an operator for this is fine, but it seems obvious you don’t **need** the language to do it for you.
* If you’re walking down a long uncertain chain, I have two arguments:
* Knowing the path that leads down into the object to the specific thing you want kinda sounds like an #Encapsulation violation. Why do you know so much about the internals of this object. If this deep property is important, maybe it’s part of the interface of the top-level thing. Maybe this is just bad design.
* Diving deeply involves lots of possibilities: possible defaults, actual methods of finding the named thing (allow inheritance? Is it an attribute? Is it an element of an array? Etc), did you want to just stop or raise an exception?Does saying what you want really come out to a simple, clean, understandable, one-line, expression?

Maybe I’m biased because I don’t have these operators in my day-to-day language; and also can’t remember hitting this situation. And I can certainly see such operators could be helpful. I’m not a language designer. But from my actual experience, in this case, the juice just isn’t worth the squeeze.

#NullCoalescing #NullChaining #LanguageDesign

Một bài viết từ /u/EgregorAmeriki thảo luận về đóng gói (encapsulation) trong lập trình không cần dùng từ khóa private, thay vào đó áp dụng thiết kế dựa trên giao diện (interface-based design) để tối ưu tính bảo mật và tính linh hoạt của code.

#Lập_trình #Object_Oriented #Design_Pattern #Công_nghe #Thiet_ke_phan_mem #Programing #OOP #SoftwareDesign #Encapsulation #InterfaceDesign

https://www.reddit.com/r/programming/comments/1o934q9/encapsulation_without_private_a_case_for/

📜 Behold, a relic from the distant past—2013! Back when "Page Object" was the new black in the world of #testing, because clearly, nobody knew that UIs change. 🤯 Marvel at the revolutionary idea of not frying your tests with a side of HTML spaghetti, as if #encapsulation wasn't already a thing. 🍝
https://martinfowler.com/bliki/PageObject.html #HackerNews #PageObject #HTMLSpaghetti #UITrends #HackerNews #ngated
bliki: Page Object

A page object wraps an HTML page, or fragment, with an application-specific API, allowing you to manipulate page elements for testing without digging around in the HTML.

martinfowler.com