98 Matching Annotations
  1. Jun 2021
    1. I am not sure if this is an improvement. To me it does not seem very pretty. Of course I am biased since I also prefer () in method definitions if they have arguments; although I think it is fine that ruby does not mind omitting the (). For my brain, I like the () for visual separation.
  2. Apr 2021
  3. Mar 2021
    1. My preference here is biased by the fact that I spend everyday at work building web components, so Svelte's approach feels very familiar to slots in web components.

      first sighting: That <template>/<slot> is part of HTML standard and the reason Svelte uses similar/same syntax is probably because it was trying to make it match / based on that syntax (as they did with other areas of the syntax, some of it even JS/JSX-like, but more leaning towards HTML-like) so that it's familiar and consistent across platforms.

    2. Here's where I start to have a preference for Svelte; the two are very similar but once I got used to Svelte I found that React felt like jumping through hoops. You can't create a worker instance, it has to go in a useRef, and then you can't easily pull code out into a function without then requiring useCallback so it can be a safe dependency on useEffect. With Svelte I write code that's closer to "plain" JavaScript, whereas in React more of my code is wrapped in a React primitive.
    1. You don’t have to stick to the task interface! The [circuit interface] is a bit more clumsy, but gives you much better control over how ctx and signals are handled.
    2. The circuit interface is a bit more clumsy but it gives you unlimited power over the way the activity will be run.
  4. Feb 2021
    1. Not only is it barbaric, it is biased.

      This word choice is bold. It's a short, choppy sentence that holds a lot of meaning. This particularly could appeal to Black people in the audience as well as any audience members that have previous interest or education on racial inequality. This word choice is also intense and emotional, captivating the audience's attention.

    1. I wanted to keep reviewing restaurants, but I didn’t want to go back into their dining rooms both because of the risk and because I was afraid readers would take it as an all-clear signal. When the governor halted indoor dining again in December, my selfish reaction was relief. Then I briefly got depressed. How would restaurants survive? And how would I keep writing about them?One answer had already started to appear on sidewalks and streets in the form of small greenhouses, huts, tents and yurts. Inside these personal dining rooms, you can (and should) sit just with people from your own household. If the restaurant thoroughly airs the space out between seatings, any germs you breathe in should be the same ones that are bouncing around your home. Many restaurants instruct their servers to stay outside the structures as much as possible, though some don’t.

      Syntax of question and answer reveals itself again. His doubts and negativity are addressed within the first highlighted paragraph with a question coming to Pete's mind. He realized his influence as a critic and decided to take the right step to prevent anything bad from occurring. Despite his sacrifice, the next paragraph he discusses the clever solutions restaurants had come up with which solved his problem for the most part. This description underlines yet more change that brought upon good things, which is the main idea he is relating to the food scene. He creates a comparison between an at home setting along with the solutions restaurants have come up with to further emphasize his point of safety amidst COVID.

    2. “Why would Pete Wells order delivery from us?” the sous-chef asked.“Maybe he’s hungry?” Mr. Tran replied.I was. But I was on the job, too, and that first order persuaded me

      Q & A syntax which reveals two separate perspectives to the reader-- adds to the change factor within these times that Wells is trying to communicate. Informal tone taken on by Pete as food is more personal and opinionated. His audience are those who want to experience new, good food amidst these times. Humor and irony with the "Maybe he's hungry?" from Mr. Tran, stating the obvious with a purpose along with explaining how the chefs can't forget about the job at hand.

    1. The values represent the track size, and the space between them represents the grid line.
    2. The syntax itself provides a visualization of the structure of the grid.

      What is this an example of? self-referencing? self-presentation? duality?

  5. Jan 2021
    1. Another possible syntax is {#slot bar}<Foo/>{/slot}, which would also allow a bunch of DOM nodes and components inside the slot, without them needing to be from a single component
  6. Dec 2020
    1. Since it has been a common source of errors, it is worth noting that spaces are not permitted on either side of the colon following FROM in the MAIL command or TO in the RCPT command. The syntax is exactly as given above.


  7. Nov 2020
    1. Another possible syntax is {#slot bar}<Foo/>{/slot}, which would also allow a bunch of DOM nodes and components inside the slot, without them needing to be from a single component

      I like it

    1. Things that I miss most from Vue:
    2. But I always thought that if Svelte will change its syntax to something new, it will more look like ES6 Template Literals
    3. Btw, I also personally like Dust-syntax: https://github.com/linkedin/dustjs/wiki/Dust-Tutorial
    4. The success of JSX has proved that the second curly is unnecessary. Moreover, a lot of people — particularly those who have been exposed to React — have a visceral negative reaction to double curlies, many of them assuming that it brings with it all the limitations of crusty old languages like Mustache and Handlebars, where you can't use arbitrary JavaScript in expressions.
    1. <input {...omitBy({pattern: undefined}, isUndefined)}>
    2. For now, using spread attributes allows you to control which attributes appear on an element. <div {...foo}> where foo is an object of attribute keys and values will add/remove attributes according to which are present and non-null.
  8. 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.
  9. 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.
  10. 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” />
  11. Aug 2020
  12. 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.
  13. Apr 2020
  14. 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.

  15. 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.

  16. 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.

  17. Oct 2019
  18. 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.
  19. 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.

  20. Mar 2019
  21. 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.
  22. 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.

  23. 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.

  24. 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?

  25. 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"?

  26. 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

  27. 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.

  28. 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?