72 Matching Annotations
  1. 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.
    2. If the react cargo cult didn't have the JSX cowpath paved for them and acclimated to describing their app interface with vanilla javascript, they'd cargo cult around that. It's really about the path of least resistance and familiarity.
    3. The only "issue" it has is that its unfamiliar. People have been working with HTML for years and are comfortable with it. That's basically the only reason that people find it more readable. If you make an effort to spend sometime with hyperscript, it becomes as familiar and readable as jsx.
    1. My proposal is that we solve this by treating a static key prop as different from one provided through spread. I think that as a second step we might want to even give separate syntax such as:
    1. The problem is that the since both the JSX transpiler and the traceur compiler are actually parsing the full javascript AST, they would have to mutually agree on the syntax extensions you use: traceur can't parse the faux-xml syntax JSX adds, and JSX can't parse the async or await keywords, for example, or generator functions.
  2. mdxjs.com mdxjs.com
    1. Before MDX, some of the benefits of writing Markdown were lost when integrating with JSX. Implementations were often template string-based which required lots of escaping and cumbersome syntax.
    1. Remember even though the syntax is almost identical, there are significant differences between how Solid's JSX works and a library like React.
  3. Sep 2020
    1. The lack of spread continues to be a big pain for me, adding lots of difficult-to-maintain cruft in my components. Having to maintain a list of all possible attributes that I might ever need to pass through a component is causing me a lot of friction in my most composable components.
    1. The value attribute of an input element or its children option elements must not be set with spread attributes when using bind:group or bind:checked. Svelte needs to be able to see the element's value directly in the markup in these cases so that it can link it to the bound variable.
    1. Rest syntax looks exactly like spread syntax. In a way, rest syntax is the opposite of spread syntax. Spread syntax "expands" an array into its elements, while rest syntax collects multiple elements and "condenses" them into a single element.
    1. Syntax-wise, I would like to be able to pass id, style and class DOM attributes as well as (ideally) svelte props to whatever the slot was replaced with, so prefixing everything with attr in the slot that should be passed sounds like a good idea. Examples: <slot attr:class=“test” attr:class:active={true} /> or <slot attr:style=“color: red” attr:id=“henlo” />
  4. Aug 2020
  5. Jul 2020
    1. A # character always indicates a block opening tag. A / character always indicates a block closing tag. A : character, as in {:else}, indicates a block continuation tag.
  6. Apr 2020
  7. Mar 2020
    1. Descriptive Statistic

      R provides a wide range of functions for obtaining summary statistics. One method of obtaining descriptive statistics is to use the sapply( ) function with a specified summary statistic.

  8. Feb 2020
    1. data is collected

      data that is collected, or data collected

    2. and applications to forecasting and estimation of dynamic causal effects.

      and its applications to forecasting and estimation of dynamic causal effects.

      The word "its" is necessary since it refers to the noun econometric techniques.

  9. Jan 2020
    1. No, dammit! We have to do this! What happens in …


    2. No, that would be wrong. This is supposed to be a review of the whole year, warts and all, and we have to face reality. So let’s all take a deep breath, compose ourselves and go back to …

      Syntax: Barry breaks into different thoughts and interrupts himself to make the sentences and ideas flow easily.

    3. ▪ A government report concludes that the Affordable Care Act (Motto: “If You Like Your Doctor, Maybe You’ll Like Your New Doctor”) is going to cost many people a lot more, while continuing to provide the same range of customizable consumer options as a parking meter. ▪

      Syntax: Barry likes to make bulleted lists to emphasize his points and lay them out in a clear manner. This makes his argument seem more like a lecture of sorts, implying that he is trying to teach/reveal something to the audience.

    4. (a) it was recorded long ago when he was just 59 years old; (b) his remarks were “locker room banter” such as you would hear in any locker room in America occupied by morally deficient billionaire pigs; (c) Bill Clinton did way worse things; and (d) WHAT ABOUT BENGHAZI?

      Barry sections long sentences into smaller ones to provide a mix of complexity and simplicity.

    5. namely the alleged weight gain of Alicia Machado, Miss Universe 1996.

      Not serious, big shift

    6. Clinton and Trump square off in the first presidential debate, which leads to a national conversation about an issue of vital concern to all Americans


    7. — get a load of THIS wacky right-wing conspiracy theory! —

      Syntax: Barry often interrupts his own lines of thought, as if he is speaking directly to the audience and saying exactly what he thinks at the time.

    8. Meanwhile Ben Carson announces, in his extremely low-key and soft-spoken manner, that he is going to suspend his campaign. Or visit Spain. Or possibly rob a train. There is no way to be certain.

      Barry frequently executes a structure of syntax where he states one long sentence followed by one or more very short sentences or even just a word. He starts with a complex idea and sentence structure, and then he makes his sentences shorter and more simple as he speaks more informally and describes things more humorously.

    9. A lengthy standoff at a federal wildlife refuge in Oregon finally comes to an end when anti-government militants, after protracted negotiations

      Barry begins most of his sentences with profound diction, and then ends his sentences with a twist of sarcasm or irony.

    10. It wasn’t just bad. It was the Worst. Election. Ever.

      Barry uses a mix of complex, long, and detailed sentences with very simple sentences (sometimes just a word) to further develop his contrasting style of writing. This contrast allows Barry to speak in an intellectual and descriptive way, while also adding an equal amount of simple sentences to keep all readers, no matter their level of intelligence, engaged.

  10. Oct 2019
  11. Aug 2019
    1. AI relies upon a bet. It is the bet that if you get your syntax (mechanism) right the semantics (meaning) will take care of itself. It is the hope that if computer engineers get the learning feedback process right, a new transhuman intellect will emerge.
  12. Apr 2019
    1. 15. Find out the internet is going to rehab.

      this is personification. the internet can not actually go to rehab but it is going to rehab figuratively.

    2. Let the internet feed you faces. You like faces. A face is worth a thousand words.

      The author uses Syntax here as this sentence is structured in a peculiar way. The author introduces that the internet feeds you faces, and then how much a face betters to people nowadays. The way he structured it was also interesting as instead of just saying the internet makes us want people to look at us and provides that for us, he structures it in a way it tells you what the internet does, tells us what we like, and then rationalizes our want for it.

    3. Play Doom. Play Worms. Play Counterstrike. Play Chat Roulette. Sprint off the school bus to worship before the altar of the web. Become a back-of-a-head to your parents. Wait for fresh content. eBaum’s World on Fridays. Wimp’s daily five. Watching these videos is like swapping eyeballs with anyone on the planet. People are amazing, you realize, and stupid too. Torrent a movie that’s still in theaters. How is this even possible, you wonder. Watch it. Watch porn. Tell your friends that you found something incredible and that you’ve fallen in love with the internet.

      There is good syntax here because the author breaks his thoughts into staccato short sentences. The repetitiveness of the sentences, each explaining a different activity the author enjoyed on the internet, emphasizes the overwhelming abundance of programs the internet had to offer and when it first came out, how much people appreciated it. The short sentences represent a brain on overdrive discovering new things and wondering what else there is out there that the internet has to offer. It also conveys an excitement to share his discoveries with his friends

    4. You reckon that mobile internet has to be a categorically good thing for the world. Like the printing press. Like the railroad. This exploding net of satellites, cables, servers, modems, and repeaters is nothing short of a Cambrian explosion. Watch communication distribute. Watch the crowd source information—the crowd which can think faster and more accurately than any one human, the crowd which is an incredible asset in times of both danger and celebration. Watch the crowd use this hackery thing called hashtags to track the advance of wildfires. Watch the crowd reproduce the Mona Lisa one pixel at a time from all points of the compass.

      Short sentences compare the mobile internet to other major innovations in a memorable way. Crowd source mentality and the use of hashtag introduces the ideas in a new perspective. Last two sentences illustrates the power of the mobile internet in a meaningful way as the end weighting of wildfires and "all points of the compass" shows the dynamic uses it offers.

  13. Mar 2019
  14. Dec 2018
    1. A syntactically annotated corpus (treebank) is a part of Russian National Corpus.[2] It contains 40,000 sentences (600,000 words) which are fully syntactically and morphologically annotated. The primary annotation was made by ETAP-3 and then manually verified by competent linguists.
  15. Mar 2018
    1. That, on the other hand, is a system all by itself, and it’s rather restricted in its range. It only forms restrictive relative clauses, and then only in a narrow range of syntactic constructions. It can’t follow a preposition (the book of which I spoke rather than *the book of that I spoke) or the demonstrative that (they want that which they can’t have rather than *they want that that they can’t have), and it usually doesn’t occur after coordinating conjunctions. But it doesn’t make the same personhood distinction that who and which do, and it functions as a relative adverb sometimes. In short, the distribution of that is a subset of the distribution of the wh words. They are simply two different ways to make relative clauses, one of which is more constrained.

      One of the best explanations of why relative "that" isn't a pronoun.

    1. In the meantime, however, white labor had continued to regard the United States as a place of refuge; as a place for free land; for continuous employment and high wage; for freedom of thought and faith. It was here, however, that employers intervened; not because of any moral obliquity but because’ the Industrial Revolution, based upon the crops raised by slave labor in the Caribbean and in the southern United

      I have chosen this paragraph in particular to discuss the structure of Du Bois' sentences. The appeal is marked by long sentences separated by semicolons and commas. Often these long sentences build on each other to create the effect of a kind of breathlessness, an endless list of the conditions that mark the ways in which Blacks are discriminated in the US and the ways in which this hurts prospects for democracy at home and abroad.

  16. Jan 2018
    1. A gentleman who lived in the village to which they were now bound, who had himself been kind to the child and to the old man whom the new schoolmaster had brought with him, had written of the pair to Kit's employer, and the letter had been the lost clue, so long sought, to their hiding-place.

      Dickens writes very long sentences.

  17. Feb 2017
    1. You, too, have seenthe bulbs flash from the sea. You, too, have feltit breathing down your neck. You eat fish. You’ve heardthat mermaids sing.

      Structurally, the syntax contrasts between realistic and unrealistic imagery. Why? Also, unlike the first septet, the rhythm is more markedly disturbed with enjambment and initial and medial caesura. Why?

  18. Jan 2016
    1. The search box on Project Gutenberg uses a special syntax that actually allows more than just simple text searches. You can search by language, subject, author, and many others. For example:

      • The search "l.german" will produce only texts in German.
      • The search "s.shakespeare" will produce only texts about Shakespeare.
      • The search "s.shakespeare l.german" will produce only texts in German about Shakespeare.

      To see a more complete description of the syntax, go to the search page and click the "Help" button on the top-right of the page.

      I haven't figured out how to search for terms with multiple words in these searches. Can someone figure it out? For example, how do you search for "william shakespeare" as a subject rather than just "shakespeare"? Or "old norse" as a language and not just "norse"?

  19. Nov 2014
    1. Python was created by Guido Van Rossum in the early 90s. It is now one of the most popular languages in existence. I fell in love with Python for its syntactic clarity. It’s basically executable pseudocode.

      Helpful concise, Python syntax doc

  20. Feb 2014
    1. What is missing is a space between the $( and the following (, to avoid the arithmetic expression syntax. The section on command substitution in the shell command language specification actually warns for that:

      This is a very good example of why shell scripting does not scale from simple scripts to large projects. This is not the only place where changes in whitespace can lead to scripts that are very difficult to debug. A well-meaning and experienced programmer from another language, but new to bash scripting, might decide to clean up formatting to make it more consistent-- a laudable goal, but one which can lead to unintentional semantic changes to the program.

      Flat, short bash scripts are extremely useful tools that I still employ regularly, but once they begin creeping in size and complexity it's time to switch to another language to handle that-- I think that is what (rightly) has driven things likes Python, Puppet, Ansible, Chef, etc.

      Despite the syntactic horrors lurking in shell scripts there is still a beautiful simplicity that drives their use which is a testament to the core unix philosophy.

    1. The other important part of our "language" is the way in which concepts are represented--the symbols and symbol structures. Words structured into phrases, sentences, paragraphs, monographs--charts, lists, diagrams, tables, etc. A given structure of concepts can be represented by any of an infinite number of different symbol structures, some of which would be much better than others for enabling the human perceptual and cognitive apparatus to search out and comprehend the conceptual matter of significance and/or interest to the human. For instance, a concept structure involving many numerical data would generally be much better represented with Arabic rather than Roman numerals and quite likely a graphic structure would be better than a tabular structure.

      Unfortunately as an industry we're stuck here.

  21. Oct 2013
    1. the educated man observes that those sections which the Greeks call kommata, and the clauses and periods of which I spoke a short time ago,

      Is he referring to syntax?