- Last 7 days
-
www.youtube.com www.youtube.com
-
if I send you a Google doc and we start all collaborating in the same same thing and it's amazing we're sharing all this data um it's kind of silly that we have to move the updates through the backb to some server out there and shipping them back here when we now have really sophisticated algorithms that can do um you know smart Conflict Free resolution that allows us to collaborate in real time and yet we're still moving all the updates to the backbone right this is very silly and it gets worse when you think about the network falling apart
for - internet limitations - example - need for offline or local networking - Google docs used by a local group - unnecessary to communicate to the backbone
-
-
radanskoric.com radanskoric.com
-
If I decide to add it, which solution should I pick, battle tested Sorbet or core team endorsed RBS?
-
- Nov 2024
-
www.youtube.com www.youtube.com
-
The Buzz for deafness
for - BEing journey - consumer electronic device - The Buzz - sensory substitution device - auditory to vibration - for deaf people - Neosensory - David Eagleman - The Buzz - 100x cheaper than cochlear implant surgery - being used around the globe
-
-
www.youtube.com www.youtube.com
-
when I'm referring when we refer to the fourth turning of the Dharma we're we're kind of we we're really using a a Buddhist model but it can be but it's a but it's a universal model
for - Buddhist language, but used for a universal model - John Churchill
-
- Oct 2024
-
www.youtube.com www.youtube.com
-
1:22:23 How much UNUSED RESOURCES are there in Marlborough Neighbourhood? How more efficaciously can they be used?
-
1:03:51 By getting people used to DEBT being SAVINGS, they can focus on the REAL things that matter
-
- Sep 2024
-
Local file Local file
-
used to be
nostalgia
-
- Aug 2024
-
github.com github.com
-
This is the most simulative version of a controller. It will try and mimic real user behaviour. It's the recommended version to use when the goal of the load-test is finding out how many concurrently active users the target instance supports.
-
-
www.youtube.com www.youtube.com
-
this propaganda plays on psychological structure and if you're able to fish into that you're able to exploit those irrational Tendencies
for - climate crisis propaganda - human psychology used to exploit irrational tendencies of people to delay climate action
-
-
www.youtube.com www.youtube.com
-
Beautiful performance. Still to this day.
-
- Jun 2024
-
languagelog.ldc.upenn.edu languagelog.ldc.upenn.edu
-
It was enclosed in scare quotes, a sort of acknowledgment that the author knew it was non-standard, but was too apt for the purpose to resist. I remember reading it and trying to think of the “real” word that would be employed there, but could not find a satisfactory alternative. Since then, I’ve found myself unable to resist using the word when appropriate, due to its utility!
"too apt for the purpose to resist" :kiss:
-
Who says it's not a word? Not a word, simply because lexicographers have not recognized it? When a lexicographer recognizes it, it has already been in use! Even Mr. Fiske says it is a word, although he obviously disprefers it.
by the time a lexicographer recognizes it, it has already been in use
-
on reasonable uses of "disprefer" — it's probably true that its meaning is not immediately apparent, and using it when addressing general audiences probably avoided (dispreferred?), but of course, it depends on the context I think. It is a term that has an obvious jargon aspect, but that doesn't seem to me to make it uniformly verboten. Other, DNA would never have entered the popular lexicon, or quantum… I'm sure those parallels are inapt in several ways, but my point, which I think still stands, is that while clarity to the broadest audience possible is often a laudable goal, this also doesn't mean it should be the only or always the chief goal. It seems to me technical words get disseminated and incorporated popularly through their use outside of strictly technical fora, and while several people said they did a double take or didn't immediately understand the word (or misunderstood its meaning), it's also true that this can happen with perfectly reasonable, standard vernacular constructions, especially reasonable standard constructions that are expressing a counter-intuitive (even if true) claim. Just sayin' — "can people understand this without giving it but a moment's thought" is a high (or ultra-low) car to hold all non-technical communication to. (That said, I also have a love for arcane words, shades of meaning, and being able to express certain moods/valences/concepts precisely. THAT said, I'm no linguist, and probably won't be using this word commonly for all my talk.)
-
The main problem with disprefer is that it violates de Buitléir's rule: If *I* use a word you're not familiar with, your education or experience is lacking. If *you* use a word I'm not familiar with, you're being a show-off or making up words.
-
- Jan 2024
-
mongoosejs.com mongoosejs.com
-
Instance methods Instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods. // define a schema const animalSchema = new Schema({ name: String, type: String }, { // Assign a function to the "methods" object of our animalSchema through schema options. // By following this approach, there is no need to create a separate TS type to define the type of the instance functions. methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } }); // Or, assign a function to the "methods" object of our animalSchema animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); }; Now all of our animal instances have a findSimilarTypes method available to them. const Animal = mongoose.model('Animal', animalSchema); const dog = new Animal({ type: 'dog' }); dog.findSimilarTypes((err, dogs) => { console.log(dogs); // woof }); Overwriting a default mongoose document method may lead to unpredictable results. See this for more details. The example above uses the Schema.methods object directly to save an instance method. You can also use the Schema.method() helper as described here. Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.
Certainly! Let's break down the provided code snippets:
1. What is it and why is it used?
In Mongoose, a schema is a blueprint for defining the structure of documents within a collection. When you define a schema, you can also attach methods to it. These methods become instance methods, meaning they are available on the individual documents (instances) created from that schema.
Instance methods are useful for encapsulating functionality related to a specific document or model instance. They allow you to define custom behavior that can be executed on a specific document. In the given example, the
findSimilarTypes
method is added to instances of theAnimal
model, making it easy to find other animals of the same type.2. Syntax:
Using
methods
object directly in the schema options:javascript const animalSchema = new Schema( { name: String, type: String }, { methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } } );
Using
methods
object directly in the schema:javascript animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
Using
Schema.method()
helper:javascript animalSchema.method('findSimilarTypes', function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); });
3. Explanation in Simple Words with Examples:
Why it's Used:
Imagine you have a collection of animals in your database, and you want to find other animals of the same type. Instead of writing the same logic repeatedly, you can define a method that can be called on each animal instance to find similar types. This helps in keeping your code DRY (Don't Repeat Yourself) and makes it easier to maintain.
Example:
```javascript const mongoose = require('mongoose'); const { Schema } = mongoose;
// Define a schema with a custom instance method const animalSchema = new Schema({ name: String, type: String });
// Add a custom instance method to find similar types animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
// Create the Animal model using the schema const Animal = mongoose.model('Animal', animalSchema);
// Create an instance of Animal const dog = new Animal({ type: 'dog', name: 'Buddy' });
// Use the custom method to find similar types dog.findSimilarTypes((err, similarAnimals) => { console.log(similarAnimals); }); ```
In this example,
findSimilarTypes
is a custom instance method added to theAnimal
schema. When you create an instance of theAnimal
model (e.g., a dog), you can then callfindSimilarTypes
on that instance to find other animals with the same type. The method uses thethis.type
property, which refers to the type of the current animal instance. This allows you to easily reuse the logic for finding similar types across different instances of theAnimal
model.
Tags
Annotators
URL
-
- Nov 2023
-
-
In API design, exceptional use cases may justify exceptional support. You design for the common case, and let the edge case be edge. In this case, I believe lib deserves ad-hoc API that allows users to do exactly that in one shot:
-
-
gitlab.com gitlab.com
-
I think we are a victim of behavioural norms and so many of the apps that I use have this pattern. That's not to say it's the right behaviour, but it may be hard to break the pattern for users.
-
- Oct 2023
-
datatracker.ietf.org datatracker.ietf.org
- Jul 2023
-
www.washingtonpost.com www.washingtonpost.com
-
I feel insanely chuffed at recognizing scarce and desirable works that have been overlooked or underpriced. I once paid $5 for an inscribed first edition of Zora Neale Hurston’s “Tell My Horse” in a very good dust jacket. Try to find a like copy today.
It's particularly difficult to find inscribed or rare books with odd quirks in an online marketplace where one can't hold a book and browse through it in person.
-
Books aren’t commoditiesAdvertisementI despise — viscerally, perhaps irrationally — the people one sometimes sees at used book stores scanning every title with a handheld device to check its online price. They regard books strictly as products and usually don’t know anything about them, only caring about what they can buy low and sell high on Amazon or eBay.
-
- Jun 2023
-
www.thedailybeast.com www.thedailybeast.com
-
Donald Trump has Sonny Bono beat as a kind of used-car salesman.
-
- May 2023
-
sellhelp.valorebooks.com sellhelp.valorebooks.com
-
Grading guidelines New. Item is brand new, unused and unmarked, in flawless condition. Protective wrapping should be intact. No blemishes on the outside cover. Stickers/marks indicating it may be “bargain” or “remainder” should not be considered new. Used: Like New. Item has very few defects and looks as good as new. Some minor blemishes and/or remainder marks are acceptable for this condition. Dust cover/outside case (if applicable) should be intact. Pages: No marking or highlighting of any kind. Shrink wrap: May be opened or missing for standard bound items. Loose leafs should be shrink wrapped to ensure all pages are present. Supplemental materials: (e.g.) CDs, DVDs, access codes should be unused. Used: Very Good. Items may have some minor defects such as marks, wear, bends, spine and page creases. Dust covers/outside case may be missing. Supplemental materials: May be missing. Water/stains: No water damage or stains of any kind acceptable in this condition. Pages: Very minor writing or highlighting (a few pages) OK. Personalization: No library labels acceptable in this condition. Name written inside OK. Binding/covers: Minimal blemishes and slight defects acceptable. No missing or loose pages. Loose leafs should be wrapped or rubber banded together and all pages must be present. Used: Good. Items with moderate wear and tear. Binding and pages should be intact. Covers: Can have curl and small creases. Moderate scuff marks or small cut OK. Corners: Can have some damage, light (1-2 inches) peeling OK, some (25%) bend OK. Pages: Minor highlighting (~20%) OK. Dog ear folds on page corners OK. Water/Stains: No visible water/spill damage. Minimal stains OK. Supplements: Can be missing/opened, unless the ISBN is a stand alone access card or a bundle edition (book with access code). Personalization: Name written inside or library labels OK. Binding: Moderate wear is OK, no loose pages. Loose leafs should be wrapped or rubber banded together and all pages must be present. Used: Acceptable. Items with more than moderate wear and tear. Binding and pages should be intact. Pages: Should be readable. Moderate highlighting and writing OK (more than ~20%). Water/Stains: Minor water/spill damage OK. Binding: Heavy wear OK, must still be intact, no loose or missing pages. Used: Unacceptable. Cover: Cover not intact. Cuts going through the cover into multiple pages. Page damage: Lines unreadable from highlighting. Page completely torn (part of page is missing) or major partial tear (high probability that normal wear and tear during next usage will result in part or all of page falling out). Water damage: Pages swollen, major wrinkling, excessive stains, major discoloration or moldy (foxing). Mismatch ISBN: Submitted ISBN does not match ISBN of what was received. Stickers or Tape: Used deliberately to hide markings specific to instructor, international, and sample editions, which are all deemed unacceptable. Rebound items. Binding: Pages are separating from binding or have been fixed with tape.
-
- Oct 2022
-
stackoverflow.com stackoverflow.com
-
The problem is that the caller may write yield instead of block.call. The code I have given is possible caller's code. Extended method definition in my library can be simplified to my code above. Client provides block passed to define_method (body of a method), so he/she can write there anything. Especially yield. I can write in documentation that yield simply does not work, but I am trying to avoid that, and make my library 100% compatible with Ruby (alow to use any language syntax, not only a subset).
An understandable concern/desire: compatibility
Added new tag for this: allowing full syntax to be used, not just subset
-
- Sep 2022
-
docs.google.com docs.google.com
-
I took along my son, who had never had any fresh water up his nose and who had seen lily pads only from train windows. On the journey over to the lake I began to wonder what it would be like. I wondered how time would have marred this unique, this holy spot--the coves and streams, the hills that the sun set behind, the camps and the paths behind the camps. I was sure that the tarred road would have found it out and I wondered in what other ways it would be desolated. It is strange how much you can remember about places like that once you allow your mind to return into the grooves which lead back. You remember one thing, and that suddenly reminds you of another thing. I guess I remembered clearest of all the early mornings, when the lake was cool and motionless, remembered how the bedroom smelled of the lumber it was made of and of the wet woods whose scent entered through the screen. The partitions in the camp were thin and did not extend clear to the top of the rooms, and as I was always the first up I would dress softly so as not to wake the others, and sneak out into the sweet outdoors and start out in the canoe, keeping close along the shore in the long shadows of the pines. I remembered being very careful never to rub my paddle against the gunwale for fear of disturbing the stillness of the cathedral.
-
- Aug 2022
-
-
www.reddit.com www.reddit.com
-
fragments_shored · 1 hr. agoI don't have a specific edition to offer, but you asked "why don't publishers publish more books with scholar's margins?" and the answer is because it's expensive. More white space means more paper and binding material, longer time for the print run, more customization on the press, heavier and therefore more costly to ship. Book publishing operates on a very thin margin so it's not cost-effective, especially when most consumers don't care about the extra margin space and/or aren't willing to absorb the costs in the purchase price.What can consumers do to encourage publishers to change these practices? Be willing to spend the $80 for the scholar's margins instead of expecting to pay the normal $5 to $10.
The razor thin margins argument only works from the bookseller's perspective, and this is primarily due to excessive competition from Amazon. Beyond this, sure the product would be slightly more expensive, but (pun intended) only marginally so. Revenue margins on classics written before 1924 (which most of this class of books is) are also significantly higher because they're public domain and the company isn't paying royalties on them. Additionally, at scale, a company with a series like Penguin Classics has a pretty solid understanding of print runs and demand to more easily allow them to innovate like this. Take the Penguin Classics copy of Thucydides' The History of the Peloponnesian War which lists for $20 in paperback and sells for $12.00 on Amazon. (You'll notice that Amazon is essentially giving away their entire discount (aka margin, usually a 40% discount on the list price) here. At a 10,000 copy print run, the cost of the print/paper/print run is in the $2.00 per copy range or lower. Amazon is taking a razor margin for the sale, but Penguin is pocketing almost $10 in pure profit as I'm sure their marketing budget is very near zero here.<br /> They could easily still do very close to this with either larger book margins or even the same text printed on 6 x 9" instead of 5 x 8.25 (or even smaller pulp sizes) so they don't have to reset the entire book for pennies on the dollar at the publisher level. Given that the majority of this market is targeted at students, who could directly use these affordances (and often do but in more cramped space) for the small mark up (particularly in comparison to the $80 copies, which still don't fit the bill, when they exist), I would attribute their non-existence to laziness and lack of imagination on the part of the publishers. Perhaps a smaller publishers like Dover might take on such a project as a means of cheaply, but profitably improving their position in the market? Those making the argument for not marking up these sorts of copies to keep the book pristine for the next reader are missing the point. I also suspect that they haven't recently purchased these sorts of used copies that often go for under $4 on the used market. Even when treated well and not heavily annotated by the first reader, these books are not in good shape and really aren't designed to be read by more than three people. It's also the reason that most libraries don't purchase them. I might buy their argument for the more expensive hardcover collector's market, but not for the pulp mass market books which hold almost no value on the secondary market. Additionally the secondary market for this class of books doesn't usually reflect large value differences between heavily annotated/highlighted texts and those that aren't. Whether they mark them up or not, the first owner is responsible for the largest proportion of depreciated value. Tangentially, I find myself lamenting the cultural practices of prior generations who valued sharing annotated copies of texts with friends and lovers as tokens of their friendship and love. I'm guessing those who vitiate against annotation have never known these practices existed.
-
- Jul 2022
-
github.com github.com
-
Interestingly, Rails doesn't see this in their test suite because they set this value during setup:
-
- Mar 2022
-
www.iqsdirectory.com www.iqsdirectory.com
-
Drum or bag – a mechanism that requires replacement of the drum or bag that collects the matter.
-
-
www.theguardian.com www.theguardian.com
-
Each highlighted statement expresses political talking points aligned to induce trump-like support.
Trump introduced new marketing and strategy, formulated using concepts and metrics mastered by Reality TV and Hollywood and then paired with advertising propaganda and "selling" techniques to create a "Brand". This is after-all Donald Trump, this is what he does, has done and is the only way he has found to make money. Trump built the "brand" (just barely) while teetering on self destruction.
His charismatic persona became "the glue" that allowed creative narratives to stick to certain types of people in-spite of risk. Trump learned OTJ how to capture a specific type of audience.
The mistake people make about Trump is assuming his audience to be "Joe Six-Pack", redneck's with limited education! This assumption does not have merit on its own.<br /> * There is a common "follower" theme among his audience that is exploited by those who: * Bought the "licensing rights" to the master-class Trump "how-to" course.
Tags
- Trump
- Trump licensed how-to
- Professional Wrestling
- Smoke and Mirrors
- Modern day Politician
- Creation of Brand
- Used Car salesman
- BS
- Politics
- Vladimir Putin
- Prosperity Preachers
- Savvy Strongman
- PR
- Trump Audience
- Mafia
- Putin-Trump
- Snake-oil salesmen
- Manipulation
- MLM
- Multi-Level-Marketing
- Reality TV
Annotators
URL
-
- Nov 2021
-
hcommons.org hcommons.org
-
How people use to write was on Papyrus which was made out of hands and other natural things you find in nature. People also wrote with black and red ink. And they would make those into scrolls. What is papyrus?
-
-
www.varvet.com www.varvet.com
-
I am firmly convinced that asserting on the state of the interface is in every way superior to asserting on the state of your model objects in a full-stack test.
-
- Sep 2021
-
www.npmjs.com www.npmjs.com
-
The more your tests resemble the way your software is used, the more confidence they can give you.
-
- Aug 2021
-
www.americanyawp.com www.americanyawp.com
-
In April 1863, Carleton gave orders to Colonel Kit Carson to round up the entire Navajo population and escort them to Bosque Redondo. Those who resisted would be shot. Thus began a period of Navajo history called the Long Walk, which remains deeply important to Navajo people today
Important
Tags
Annotators
URL
-
- Jul 2021
-
icla2021.jonreeve.com icla2021.jonreeve.com
-
sinful
This is another word that Miss Clack used a lots in her narrative.
-
devout
The word "devout" came out a few thing from Miss Clack's narrative. I assume she is a devout Christian?
-
alas!
This is one of words that Miss Clack will use, but Betteredge won't use. However, this word also reveals some personality of Miss Clack, by definition, alas means: "an expression of grief, pity, or concern." By this we can assume Miss Clack might be a sentimental person
-
- Jun 2021
-
docs.gitlab.com docs.gitlab.com
-
targeting what the user actually sees
-
The most important guideline to give is the following: Write clean unit tests if there is actual value in testing a complex piece of logic in isolation to prevent it from breaking in the future Otherwise, try to write your specs as close to the user’s flow as possible
-
It’s better to test a component in the way the user interacts with it: checking the rendered template.
-
-
-
Introduce behaviour that is likely to surprise users. Instead have due consideration for patterns adopted by other commonly-used languages.
-
- Apr 2021
-
www.kickstarter.com www.kickstarter.com
-
We are are continuing our commitment to creating our games that are free and widely accessible anyone that is curious by making our game files available under Creative Commons license BY–NC–SA 4.0. That means we will continue offering a full, free print-and-play kit for Pax Pamir, and later this campaign, John Company! Anyone can use, remix, and share the game, so long as they do not use it for commercial purposes.
-
-
en.wikipedia.org en.wikipedia.org
-
A generic trademark, also known as a genericized trademark or proprietary eponym, is a trademark or brand name that, because of its popularity or significance, has become the generic term for, or synonymous with, a general class of products or services, usually against the intentions of the trademark's owner.
-
- Mar 2021
-
www.rubymotion.com www.rubymotion.com
-
has been downloaded nearly four million times worldwide across both app stores
-
-
en.wikipedia.org en.wikipedia.org
-
Software that is not currently being used gradually becomes unusable as the remainder of the application changes.
-
Infrequently used portions of code, such as document filters or interfaces designed to be used by other programs, may contain bugs that go unnoticed. With changes in user requirements and other external factors, this code may be executed later, thereby exposing the bugs and making the software appear less functional.
-
-
www.codemag.com www.codemag.com
-
Another important MicroJS attribute is independence. Ember, Backbone—even Bootstrap to a degree–have hard dependencies on other libraries. For example, all three rely on jQuery. A good MicroJS library stands by itself with no dependencies. There are exceptions to the rule, but in general, any dependency is another small MicrojJS library.
-
-
trailblazer.to trailblazer.to
-
In production, you will never trigger one specific callback or a particular validation, only. Your application will run all code required to create a Song object, for instance. In Trailblazer, this means running the Song::Create operation, and testing that very operation with all its side-effects.
-
There’s no need to test controllers, models, service objects, etc. in isolation
-
Run the complete unit with a certain input set, and test the side-effects. This differs to the Rails Way™ testing style, where smaller units of code, such as a specific validation or a callback, are tested in complete isolation. While that might look tempting and clean, it will create a test environment that is not identical to what happens in production.
Tags
- testing: tests should resemble the way your software is used
- testing: test the side effects
- testing: avoid unnecessarily testing things in too much isolation, in a different way than the code is actually used (should match production)
- testing: philosohy of testing
- unnecessary
- isolation (programming)
- the Trailblazer way
- rails: the Rails way
- testing: avoid testing implementation details
Annotators
URL
-
- Feb 2021
-
en.wikipedia.org en.wikipedia.org
-
found that using only the Pascal-provided control structures, the correct solution was given by only 20% of the subjects, while no subject wrote incorrect code for this problem if allowed to write a return from the middle of a loop.
-
-
github.com github.com
-
Operations don't know about HTTP or the environment. You could use an operation in Rails, Hanami, or Roda, it wouldn't know.
-
-
en.wikipedia.org en.wikipedia.org
-
The spelling "internet" has become often used, as the word almost always refers to the global network; the generic sense of the word has become rare in non-technical writings.
rare to see "internet" used to mean an internetwork in the general sense
-
-
cherrycreekschools.instructure.com cherrycreekschools.instructure.com
-
This quote really stands out to me. As a person of color it breaks my heart to see the African Americans be used, just like my ancestors.
-
-
ebusinessboss.com ebusinessboss.com
-
Well, a click funnel is basically an online sales funnel, but it’s widely referred to as a click funnel due to the growing popularity of the software called “Clickfunnels”.
-
- Dec 2020
-
developer.mozilla.org developer.mozilla.org
-
If a reviver is specified, the value computed by parsing is transformed before being returned.
-
- Nov 2020
-
github.com github.com
-
-
Google Archive Where old projects go to retire.
-
-
uxdesign.cc uxdesign.cc
-
Secondary buttons are the ‘go back’ to the primary button’s ‘next’, or the ‘cancel’ button to the ‘submit’ button
-
-
hackernoon.com hackernoon.com
-
Many linguists believe that the natural language a person speaks affects how they think. Does the same concept apply to computer languages?
-
-
davidwalsh.name davidwalsh.name
-
text-overflow: ellipsis (married with fixed width and overflow: hidden
-
- Oct 2020
-
formvalidation.io formvalidation.io
-
All validators can be used independently. Inspried by functional programming paradigm, all built in validators are just functions.
I'm glad you can use it independently like:
FormValidation.validators.creditCard().validate({
because sometimes you don't have a formElement available like in their "main" (?) API examples:
FormValidation.formValidation(formElement
-
-
humanwhocodes.com humanwhocodes.com
-
The reason for this is very simple: once code gets checked-in, it takes on a life of its own.
-
Checking in is akin to sharing your code with others, and once out in the world, it’s hard to predict what that code will do.
-
-
tech.ebayinc.com tech.ebayinc.com
-
that does not mean that I am advocating the other extreme–i.e., a templating language that allows a lot of logic. I find such templating languages, especially those that allow the host programming languages to be used inside the template, to be hard to read, hard to maintain, and simply a bad choice.
-
- Sep 2020
-
github.com github.com
-
and one which you don’t need to use and won’t add any code to your app if you choose not to use
-
-
-
And of course, if you don't use them you don't pay for them
-
-
github.com github.com
-
Passing the class prop to the root dom element is already a wide spread practice
-
It's a convention in Svelte to export { className as class } inspired from docs, but it's certainly not required by the compiler, so I don't think the class:directive can/should be assumed here.
-
On the one hand, it's an unofficial but widely-used practice to do let classNames=''; export { classNames as class }; in components and then apply that class on the top-level DOM element in the component. On the other hand, there are plenty of components out there that don't use this idiom
-
-
reactjs.org reactjs.org
-
The old mydata and the new mydata are actually the same physical object (only the object’s internal value changed)
-
-
github.com github.com
-
require 'minitest/autorun' class BugTest < Minitest::Test
-
-
github.com github.com
-
-
For a non-monorepo package you can simply point directly to the Github repo. This case is similar, but you want to scope it just to a single package within the repo. For those that make monorepos they don't necessarily need this feature. It's for those that use projects that use monorepos. Telling them to not organize their projects into monorepos doesn't help people who make use of these projects.
-
If npm installs a git repo, it assumes that the git repo is the package. I don't really know how we could specify a sub-path easily, since all parts of the git url are already used for other things.
-
-
-
This is more a rhetoric question as this seems to be quite hard ;-) There is a long discussion about installing a subfolder of a repository and monorepos in general at the NPM Github issues (yarn misses this feature, too). The thing is that this makes it quite hard to report issues of your project as one can't test the current master easily. Do you recommend a way how to use the latest Github version?
-
- Jul 2020
-
-
Finally, the third, often forgotten, situation is that of a slanderer who makes unfavourable but true comments about another without any valid reason for doing so.
-
- Mar 2020
-
www.google.com www.google.com
Tags
Annotators
URL
-
-
developer.wordpress.org developer.wordpress.org
-
Used By
I like how they have indexed their core code base so they can show in both directions:
- which other core functions a function uses
- which other core functions use this function (references)
-
- Dec 2019
-
github.com github.com
-
"neutrino-patch": "git+https://github.com/davidje13/neutrino-patch#semver:^1.0.1"
-
- Nov 2019
-
kentcdodds.com kentcdodds.com
-
"The more your tests resemble the way your software is used, the more confidence they can give you. "
-
-
testing-library.com testing-library.com
-
You want to write maintainable tests for your React components. As a part of this goal, you want your tests to avoid including implementation details of your components and rather focus on making your tests give you the confidence for which they are intended. As part of this, you want your testbase to be maintainable in the long run so refactors of your components (changes to implementation but not functionality) don't break your tests and slow you and your team down.
-
We try to only expose methods and utilities that encourage you to write tests that closely resemble how your web pages are used.
-
The more your tests resemble the way your software is used, the more confidence they can give you.
-
Most of the damaging features have to do with encouraging testing implementation details. Primarily, these are shallow rendering, APIs which allow selecting rendered elements by component constructors, and APIs which allow you to get and interact with component instances (and their state/properties) (most of enzyme's wrapper APIs allow this).
-
- Aug 2019
-
www.robinwieruch.de www.robinwieruch.de
-
VitaMy professional story.
Tags
Annotators
URL
-
- May 2019
-
www.callisterbrewing.com www.callisterbrewing.com
-
homebrewing
Very grass roots/home brew friendly organization; appeals to sense of independence and optimism; "home grown"
Tags
Annotators
URL
-
- Sep 2018
-
mashable.com mashable.com
-
Snapchat says it reaches 28.5 to 30 million 18-24 year old users in the U.S. According to a recent survey of Instagram users, approximately 32 percent of its 1 billion-strong user base is 18-24.
Snapchat reaches around 30 million 18-24 year old users; important ages that are more recently able to vote and take political action. Instagram and snapchat are most popular amongst younger users.
-
- Oct 2016
-
raw.githubusercontent.com raw.githubusercontent.com
-
# Resources to be used as redirect destinations.
Resources to be used as redirect destinations.
-
- Aug 2015
-
austin.craigslist.org austin.craigslist.org
Tags
Annotators
URL
-
-
austin.craigslist.org austin.craigslist.org