- 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
- Vladimir Putin
- Trump licensed how-to
- Professional Wrestling
- Manipulation
- PR
- Multi-Level-Marketing
- Putin-Trump
- Mafia
- Trump Audience
- Trump
- Snake-oil salesmen
- Politics
- Reality TV
- Creation of Brand
- Prosperity Preachers
- MLM
- BS
- Savvy Strongman
- Modern day Politician
- Used Car salesman
- Smoke and Mirrors
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: philosohy of testing
- testing: test the side effects
- testing: tests should resemble the way your software is used
- the Trailblazer way
- testing: avoid testing implementation details
- testing: avoid unnecessarily testing things in too much isolation, in a different way than the code is actually used (should match production)
- rails: the Rails way
- unnecessary
- isolation (programming)
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