58 Matching Annotations
  1. Sep 2021
    1. At the same time, details about programming language semantics are quite precise and when articles like this get things sort of wrong, it just leads to more confusion.
  2. Aug 2021
    1. Complicated challenges are technical in nature. They have straight-line, step-by-step solutions, and tend to be predictable. People with the right expertise can usually design solutions that are easy to implement.
    2. Humans can master highly sophisticated technical and technological challenges because we’re very skilled at making linear connections from one technical feat to the next. But when it comes to multi-dimensional challenges, it’s a whole different ballgame. We can’t solve them with linear thinking or rely on technical prowess. Sometimes, they move and change at a rate faster than we can act. They don’t patiently await solutions. They are complex problems–which is a whole different ball game than merely complicated issues.
    1. In everyday usage, MST is often referred to as Mountain Time (MT) or the Mountain Time Zone. This can add a bit of confusion as the term Mountain Time does not differentiate between standard time and Daylight Saving Time, so Mountain Time switches between MST and MDT in areas that use DST during part of the year.
    2. Some areas in British Coloumbia, including Creston, Fort Nelson, Fort St. John, and Dawson Creek use Mountain Standard Time all year.
  3. Jul 2021
  4. Jun 2021
    1. Be aware, for general usage, that this is screen column, not real column. This means that <Tab> characters will get different results. If these characters will be there, you will instead want |30lh or |29l or 029l or something like that.
    2. @DavidPope: note that in this case "screen columns" means that it's still relative to the start of the line. g0 achieves "start of current screen line".
    1. As of 4 September 2020[update], 98 out of 193 (51%) United Nations (UN) member states, 22 out of 27 (81%) European Union (EU) member states, 26 out of 30 (87%) NATO member states, and 31 out of 57 (54%) Organisation of Islamic Cooperation (OIC) member states have recognised Kosovo. The government of Serbia does not recognise it as a sovereign state.
  5. May 2021
    1. Building an app with all the modern best practices — code-splitting, offline support, server-rendered views with client-side hydration — is fiendishly complicated. SvelteKit does all the boring stuff for you so that you can get on with the creative part.
  6. Apr 2021
    1. as you may have guessed, things get even more complicated when you start running pseudo terminals inside pseudo terminals, à la screen(1) or ssh(1).
  7. Mar 2021
    1. Here's the four case: foo.js Load/Require dependencies Concatenate dependencies foo.js.map Load foo.js Currently grabs metadata[:map] from asset to build an asset, need to move that generation somewhere else to accomplish de-coupling map generation foo.debug.js Load foo.js Load foo.js.map Add comment to end of foo.js with path to foo.js.map foo.source.js The raw file on disk, the map file will need to point to source files.
  8. Feb 2021
  9. www.metacritic.com www.metacritic.com
    1. Difficult enough to prove a worthy challenge, with an over-complexity that might have benefitted from a little self-restraint.

      overly complex = unnecessarily complicated

    1. Also, this code will fail if $$ is not the process group leader, such as when the script is run under strace. Since a call to setsid(2) is probably tricky from a shell script, one approach might be to ps and obtain the process group ID from that.
    2. you really need #!/bin/sh -m for correct behavior of nested subshells. fg, bg, and wait wont work correctly otherwise
    1. The rsync and sleep commands (the sleep is just an example) are run through exec to prevent the creation of zombie processes if I kill the parent script while they're running, and each potentially-long-running command is wrapped in its own subshell so that when exec finishes, it won't terminate the whole script.
    1. The parentheses always start a subshell. What's happening is that bash detects that sleep 5 is the last command executed by that subshell, so it calls exec instead of fork+exec. The sleep command replaces the subshell in the same process.
    1. @adisos if reform-rails will not match, I suggest to use: https://github.com/orgsync/active_interaction I've switched to it after reform-rails as it was not fully detached from the activerecord, code is a bit hacky and complex to modify, and in overall reform not so flexible as active_interaction. It has multiple params as well: https://github.com/orgsync/active_interaction/blob/master/spec/active_interaction/modules/input_processor_spec.rb#L41

      I'm not sure what he meant by:

      fully detached from the activerecord I didn't think it was tied to ActiveRecord.

      But I definitely agree with:

      code is a bit hacky and complex to modify

    1. I find reform's implementation a bit too complicated too (lots of layers of abstraction, including going through the representable gem for a lot of things)
    1. I found the code a little bit complicated. Why to instanciate instance variables in this class instead to do a hash that could be used like this form.models[:first_model]; form.model[:second_model]?
  10. Jan 2021
    1. The explanation here is that the minimum size of an fr unit is auto. Grid then looks at the min-content size of the item. If the item has a size (you’ve given it a width) or has something in it with a size such as an image, the min-content size might be much bigger than the share of available space you think 1fr will give you. It’s easy to think of 1fr as being “one part of the space in the grid container” when it is really one part of the space left over. If there is space to grow then the tracks grow from that min-content size assigning space. Using minmax, as you have pointed out, is the best thing to do if you want to forcibly have equal width tracks, as that says “I want this track to have a min-content size of 0”, you could potentially in that situation end up with overflows as you lose the squishiness.
    1. The CardLayout creates a store in context and the Card creates a standardized div container and registers it to the store so that the CardLayout has access to that DOM element. Then in afterUpdate you can move the DOM elements into columns and Svelte will not try to put them back where they go. It's a bit messy but it works.
  11. Dec 2020
    1. I was looking for an SSR example for Svelte but the only one I could find seemed unnecessarily complicated.
  12. Nov 2020
    1. Gas engines are so complicated/intricate/messy. I wish we could just use electric motors for everything. Clean, simple, and maintenance-free.

  13. Oct 2020
    1. 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.
  14. developer.mozilla.org developer.mozilla.org
    1. When there are many nested elements, each with its own handler(s), event processing can become very complicated—especially where a parent element receives the very same event as its child elements because "spatially" they overlap so the event technically occurs in both, and the processing order of such events depends on the Event bubbling and capture settings of each handler triggered.

      They even admit that it is complicated

    1. perhaps, imo this would make more sense. but it would slow down Parcel significantly as packages who don't have a browserslist or something similar will all get compiled (and most packages actually do target commonjs, which makes this prob not such a good idea). Which unfortunately is way too many packages. It would be great if tools like babel actually enforced a similar pattern to Parcel and use browserlist file or package.json instead of allowing defining target env in babel. Or at least not encourage it.
  15. Sep 2020
    1. But we face our own hostile environment: underpowered devices, poor network connections, and the complexity inherent in front-end engineering.
    1. If you've followed React's guide, you've installed react from npm. You can teach Rollup how to find this package within your project's node_modules directory using the rollup-plugin-node-resolve plugin. Since React exports a CommonJS module, you'll also need to convert that into an ES6 module using the rollup-plugin-commonjs plugin.
  16. Aug 2020
    1. The United Kingdom of Great Britain and Northern Ireland (UK), since 1922 comprises four countries: England, Scotland, and Wales (which collectively make up Great Britain) and Northern Ireland[1][2] (which is variously described as a country, province, or region).

      A country that contains 4 countries. It's almost a paradox. It never ceases to amuse me.

  17. Jul 2020
  18. May 2020
    1. The UK voted to leave the European Union in a referendum on 23 June 2016 (and ceased to be a member state on 31 January 2020). This withdrawal from the EU makes the Republic of Ireland–United Kingdom border on the island of Ireland an external border of the European Union.[36] However, the Irish and UK governments and the President of the European Council have stated that they do not wish for a hard border in Ireland, taking into account the historical and social "sensitivities" that permeate the island.[37] In September 2016 the British Secretary of State for Exiting the European Union, David Davis, stated that the UK government would not seek a return to a "hard border" between the UK and Republic of Ireland
    1. Jersey is not part of the United Kingdom,[15] and has an international identity separate from that of the UK,[16] but the UK is constitutionally responsible for the defence of Jersey.[17] The definition of United Kingdom in the British Nationality Act 1981 is interpreted as including the UK and the Islands together.[18]The European Commission confirmed in a written reply to the European Parliament in 2003[19] that Jersey was within the Union as a European Territory for whose external relationships the UK is responsible. Jersey was not fully part of the European Union but had a special relationship with it, notably being treated as within the European Community for the purposes of free trade in goods.
  19. Apr 2020
    1. On October 18, 1948, the flag of the Arab Revlot was adopted by the Palestinian government and the Arab League. The current version, with it’s altered stripe order, was adopted in 1964 by the Palestine Liberation Organization under Yassir Arafat and then in 1988, as the official flag of the State of Palestine (unless you don’t recognize Palestine, that is).
  20. Jan 2020
  21. Dec 2019
    1. esnext: source code using stage 4 features (or older), not transpiled, in ES modules. main continues to be used the same way. Its code can be generated from the untranspiled code. Most module use cases should be handleable via esnext. browser can be handled via an extended version of esnext (see next section).
  22. Nov 2019
    1. A large part of the ‘resources’ conversation in OER is this kind of problem. Cheaper access to books. More people using books. Nice measurable problems that can be fixed.

      Lowering costs for learning materials via OER: A complicated problem vs what Dave calls complex problems, like open pedagogies.