13 Matching Annotations
- Aug 2021
-
blog.alexdevero.com blog.alexdevero.com
-
Aside to global and local scope there is also something one could call a “block” scope. This is not an “official” type of scope, but it does exist. Block scope was introduced to JavaScript as a part of the ES6 specification. It was introduced along with two new types of variables let and const.
-
- Apr 2021
-
medium.com medium.com
-
I wish to define methods within the class they belong to. Using class << self demonstrates that approach clearly — we are defining methods within the actual singleton class scope.
-
When we usedef self.method, though, we are defining a method across scopes: we are present in the regular class scope, but we use Ruby’s ability to define methods upon specific instances from anywhere; self within a class definition is the Class instance we are working on (i.e. the class itself). Therefore, usingdef self.method is a leap to another scope, and this feels wrong to me.
-
- Mar 2021
-
trailblazer.to trailblazer.to
-
Please note that the I/O DSL is only providing the most-used requirements. Feel free to use the low-level taskWrap API to build your own variable mapping with different scoping techniques.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
a method that doesn’t have access to variables outside its scope
-
-
dry-rb.org dry-rb.org
-
Another solution is using the Safe Navigation Operator &. introduced in Ruby 2.3 which is a bit better because this is a language feature rather than an opinionated runtime environment pollution
-
-
-
You can rescue at the method level, but more likely you’d want to rescue at the statement level.
-
- Dec 2020
-
thecodebarbarian.com thecodebarbarian.com
-
This pattern can be neater syntactically because declaring a variable in a try block with let scopes the variable to the try block.
-
- Oct 2020
-
docs.docker.com docs.docker.com
-
All containers without a --network specified, are attached to the default bridge network. This can be a risk, as unrelated stacks/services/containers are then able to communicate.
-
-
humanwhocodes.com humanwhocodes.com
-
-
One of the primary tasks of engineers is to minimize complexity. JSX changes such a fundamental part (syntax and semantics of the language) that the complexity bubbles up to everything it touches. Pretty much every pipeline tool I've had to work with has become far more complex than necessary because of JSX. It affects AST parsers, it affects linters, it affects code coverage, it affects build systems. That tons and tons of additional code that I now need to wade through and mentally parse and ignore whenever I need to debug or want to contribute to a library that adds JSX support.
Tags
- implementation complexity
- for-reaching consequences
- avoid complexity
- can't keep entire system in your mind at once (software development) (scope too large)
- syntax
- primary task/job/responsibility
- too complicated
- engineers
- complexity
- high-cost changes
- semantics (of programming language)
- engineering (general)
- fundamental
- mental bandwidth
- unintended consequence
- infectious problem
- the cost of changing something
- mentally filter/ignore
Annotators
URL
-
- Sep 2020
-
svelte.dev svelte.dev
-
Your styles are scoped to the component. No more leakage, no more unpredictable cascade.
-
It's fashionable to dislike CSS. There are lots of reasons why that's the case, but it boils down to this: CSS is unpredictable. If you've never had the experience of tweaking a style rule and accidentally breaking some layout that you thought was completely unrelated — usually when you're trying to ship — then you're either new at this or you're a much better programmer than the rest of us.
-