51 Matching Annotations
  1. Jan 2024
    1. A variable is considered dependent if it depends on an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function), on the values of other variables. Independent variables, in turn, are not seen as depending on any other variable in the scope of the experiment in question.[a]

      Dependent variables depend upon independent variables (whereas independent variables are independent).

  2. Jun 2023
    1. Are protected members/fields really that bad? No. They are way, way worse. As soon as a member is more accessible than private, you are making guarantees to other classes about how that member will behave. Since a field is totally uncontrolled, putting it "out in the wild" opens your class and classes that inherit from or interact with your class to higher bug risk. There is no way to know when a field changes, no way to control who or what changes it. If now, or at some point in the future, any of your code ever depends on a field some certain value, you now have to add validity checks and fallback logic in case it's not the expected value - every place you use it. That's a huge amount of wasted effort when you could've just made it a damn property instead ;) The best way to share information with deriving classes is the read-only property: protected object MyProperty { get; } If you absolutely have to make it read/write, don't. If you really, really have to make it read-write, rethink your design. If you still need it to be read-write, apologize to your colleagues and don't do it again :) A lot of developers believe - and will tell you - that this is overly strict. And it's true that you can get by just fine without being this strict. But taking this approach will help you go from just getting by to remarkably robust software. You'll spend far less time fixing bugs.

      In other words, make the member variable itself private, but can be abstracted (and access provided) via public methods/properties

    2. Public and/or protected fields are bad because they can be manipulated from outside the declaring class without validation; thus they can be said to break the encapsulation principle of object oriented programming.
    3. Using a property or a method to access the field enables you to maintain encapsulation, and fulfill the contract of the declaring class.
    4. Exposing properties gives you a way to hide the implementation. It also allows you to change the implementation without changing the code that uses it (e.g. if you decide to change the way data are stored in the class)
  3. May 2023
  4. Nov 2022
    1. Remember there are two kinds of variable. Internal Variables and Environment Variables. PATH should be an environment variable.

      In my case, I was trying to debug which asdf not finding asdf, in a minimal shell.

      I had checked bash-5.1$ echo $PATH|grep asdf /home/tyler/.asdf/bin

      but ```

      The PATH environment variable

      env | /bin/grep PATH `` being empty was the key discovery here. Must have forgotten theexport`.

    2. All shells should tell you that your path is the same thing with BOTH of the two commands: # The PATH variable echo "$PATH" # The PATH environment variable env | /bin/grep PATH
  5. Oct 2022
    1. But what if we’ve more elements to ignore? people = { "Alice" => ["green", 34, "alice@example.com"], "Bob" => ["brown", 27, "bob@example.com"] } No problem. Just re-use the underscore: people.map { |name, (_, _, email)| [name, email] } You can’t do it with any variable, though, at least in Ruby 1.9. It only works with variables that are called _: people.map { |name, (x, x, email)| [name, email] } # SyntaxError: (eval):2: duplicated argument name
  6. Jun 2022
  7. Dec 2021
    1. . Indicators of influence




  8. Nov 2021
    1. We also need at least something in our CSS that can be set from outside. CSS custom properties are a great fit for this!
  9. Oct 2021
    1. Two other controls having to do with the socioeconomic level of the resident pop- ulation are used

      Control variable (alternative explanations) **Socioeconomic level of residents: When controlling for High socioeconomic factors (such as high education and high income in relationship to median income).

      **Region Assumes there may be regional difference between cities, such as how old they are, their state of disrepair)_ Categorized regions northeast, north central, south and west.

    2. Since the significance of the number of functions varies with the number of all other functions (i.e., the size of the employed labor force), it should be ex- pressed as a ratio to the latter. Hence the lower the ratio of managers, proprietors, and officials7 to the employed labor force the greater is the concentration of power. (This measure will hereafter be called the MPO ratio.

      Sub: The ability to mobilize community people and resources requires a management class.

      Independent Variable: Managers, Proprietors and officals/ to employed labor force. Census data, number of managers

      Dependent Variable: Success in Urban Renewal: Stages: Planning, Execution, Completion She classifies cities by: Those that exectued Those the abandoned the problem (for whatever reason) Those who never tried urban renewal - although they quality..

      Intervening variables:



  10. Aug 2021
    1. With JavaScript, you can actually calculate the width of the scrollbar and whether it’s visible by comparing two properties—window.innerWidth and document.body.clientWidth. If these are equal, the scrollbar isn’t visible. If these are different, we can subtract the body width from the window width to get the width of the scrollbar:const scrollbarWidth = window.innerWidth - document.body.clientWidthWe’ll want to perform this both on page load and on resize, in case someone resizes the window vertically and changes the overflow. Then, once we have the scrollbar width, we can assign it as a CSS variable:document.body.setProperty("--scrollbarWidth", `${scrollbarWidth}px`)

      missing feature: vw/vh can't be used "directly" because doesn't account for scrollbars

  11. Jun 2021
  12. May 2021
  13. Feb 2021
    1. STATSD_SAMPLE_RATE: (default: 1.0)

      It's recommended to configure this library by setting environment variables.

      The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).

      If you try to, you get:

      config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
  14. Jan 2021
    1. We need to pick a name for that value to be remembered and we can use that symbolic name to retrieve the value later

      Why do we need variables?

  15. Nov 2020
    1. let root = document.documentElement; root.addEventListener("mousemove", e => { root.style.setProperty('--mouse-x', e.clientX + "px"); root.style.setProperty('--mouse-y', e.clientY + "px"); });
    2. Here’s a CSS variable (formally called a “CSS custom property“)
    1. A great thing about CSS variables is their reactive nature. As soon as we update them, whatever property has the value of the CSS variable gets updated as well.
    2. The standard cascade rules also apply to the CSS Variables.So, if a custom property is declared multiple times, the lowermost definition in the css file overwrites the ones above it.
  16. Oct 2020
  17. Sep 2020
  18. May 2020
    1. Some GitLab features can behave differently for each environment. For example, you can create a secret variable to be injected only into a production environment.
  19. Apr 2020
  20. Jan 2020
    1. the literature can be categorized accordingto the learner and the extent to which self-directedness is an a priori personalcharacteristic and associated with other variables such as educational level, cre-ativity, learning style, and so on.

      Variables: education level, personality traits, learning styles, etc.



  21. Dec 2019
    1. neutrino build --require dotenv/config You can then tell Neutrino to inject these environment variables in your neutrinorc: ['@neutrinojs/env', [ 'NODE_ENV', 'APPLICATION_NAME', 'LOGIN_STRATEGIES', 'TASKCLUSTER_ROOT_URL', ]],
  22. Oct 2019
  23. Aug 2019
  24. Jul 2019
  25. Apr 2019
  26. Mar 2019
    1. This is associated with the e-learning development tool "Articulate Storyline." There are frequent blog posts and they are not limited to or exclusive to the Articulate products. Posts are brief and not all of the content will be new, but there are worthwhile tips to be had and they combine theory (not to the extent that an academic would) with practice. rating 3/5

  27. Dec 2017
    1. Testing and Confinement - source that utilizes globals is somewhat more difficult to test because one cannot readily set up a 'clean' environment between runs. More generally, source that utilizes global services of any sort (e.g. reading and writing files or databases) that aren't explicitly provided to that source is difficult to test for the same reason. For communicating systems, the ability to test system invariants may require running more than one 'copy' of a system simultaneously, which is greatly hindered by any use of shared services - including global memory - that are not provided for sharing as part of the test.

      Important limitation to understand.

  28. Nov 2017
    1. Heteroscedasticity

      Heteroscedasticity is a hard word to pronounce, but it doesn't need to be a difficult concept to understand. Put simply, heteroscedasticity (also spelled heteroskedasticity) refers to the circumstance in which the variability of a variable is unequal across the range of values of a second variable that predicts it.

  29. Sep 2017
    1. ocial networks is relational data

      This is different than traditional social science which focuses on independent and dependent variables. For SNA, all data is related to all other data; no variables are mutually exclusive. This is why SNA is fundamentally descriptive.

    1. descriptive analysis

      The challenge of descriptive research for traditional social scientists is the change in how questions are asked. Questions should focus on describing something in a deep and informative way. Traditional social science relies more on predictive and inferential analysis. Can I predict what will happen if this variable changes in this way? Research questions identify the independent and dependent variables. SNA does not have IV and DV so questions are more about revealing what is going on underneath; i.e. how do the members of corporations know each other?

    1. tudies the relationships we have

      I am a bit confused here...SNA focuses directly on the space between individuals. Our relationships live in this space. Traditional social science looks at the characteristics of individuals to see if they vary according to another variable, i.e. independent and dependent variables. There are no IV and DV in SNA, at least in basic SNA. More advanced SNA blends statistics and SNA data.

    1. how they influence our lives, and how individual behavior is shaped by these networks.

      Networks are what sociologists talk about all the time but our methods don't fully 'see' them. We find relationships between variables--i.e. race and class--and then discuss how this relationship is due to social forces. Networks are the way in which social forces exert power!