Disclaimer:

Some of the site's links could be classified as NSFW, NSFL, obscene, offensive, dark or disturbing.
Site also uses cookies to provide basic functionality.

OK
http://nshipster.com/equatable-and-comparable
Mon 12 Feb 2024 (1 week ago)
Equatable and Comparable - NSHipster
To illustrate this, consider the following generic type that represents a quantity of something: struct Quantity < Thing > { let count : Int let thing : Thing }
We can use that here to programmatically express that _“a quantity of a thing is equatable if the thing itself is equatable”:
conditional Equatable conformance, allowing us to do the following: let oneHen = Quantity < Character > ( count : 1 , thing : "🐔" ) let twoDucks = Quantity < Character > ( count : 2 , thing : "🦆" )
something: struct Quantity < Thing > { let count : Int let thing : Thing } Can Quantity conform to Equatable? We know that integers are equatable, so it
a thing is equatable if the thing itself is equatable”: extension Quantity : Equatable where Thing : Equatable {} And with that declaration alone, Swift has
the following generic type that represents a quantity of something: struct Quantity < Thing > { let count : Int let thing : Thing } Can Quantity conform to
http://blog.plover.com/oops
Mon 12 Feb 2024 (1 week ago)
The Universe of Discourse: category 'oops'
per square meter even if you don't buy it in great quantity. Those aluminum tags probably cost no more than fifty cents each. [
http://ayende.com/blog/archive/2011/1
Mon 12 Feb 2024 (1 week ago)
Ayende @ Rahien
666, "otherStuff" : "moohahaha" , "itemList" : [{ "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" :
6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }, { "productId" : 42, "name" : "brimstone" , "price" : 6.66, "quantity" : 2000 }] } I
http://ayende.com/blog/archive/2019/1
Mon 12 Feb 2024 (1 week ago)
Ayende @ Rahien
We add a couple of items to the cart, remove excess quantity and pay for the whole thing. Pretty simple model, right? But
remove events: There are a few things to note here, the quantity is negative, and the price is zeroed, that necessitate changes in
http://blog.rongarret.info
Mon 12 Feb 2024 (1 week ago)
Rondam Ramblings
ordering allows us to assign numbers not just to the total quantity of apples, but to each individual apple to identify where it
taken to stand for the order of things rather than the quantity of things, we get entirely new kinds of numbers as a
https://ericlippert.com/2019/07
Mon 12 Feb 2024 (1 week ago)
July | 2019 | Fabulous adventures in coding
value of f when it is given samples from p?” This quantity is called the expected value . The obvious (or “naive”) way to
is large. Where is it likely to be small? Where that quantity is small… so… why don’t we use that as the
http://yusuf.fyi/posts/perfectionism
Mon 12 Feb 2024 (1 week ago)
Don't seek perfection! | Yusuf Bouzekri
way and not care much about their quality. By applying the quantity over quality motto in everything you do, you’ll eventually reach
from finishing what you started or even not starting at all... Quantity over Quality You should aspire to make and publish so much,
you wanted, to begin with, this is known as Quality Through Quantity Finishing vs Publishing When you create a thing (book, song, blog
http://nshipster.com/nsassertionhandler
Mon 12 Feb 2024 (1 week ago)
NSAssertionHandler - NSHipster
should use assertions and unit tests in combination and in reasonable quantity to test and define behavior in an application. Foundation Assertion Handling
http://ayende.com/blog/archive/2014/10
Mon 12 Feb 2024 (1 week ago)
Ayende @ Rahien
public Discount Discount; } Note that we explicitly do not have a quantity field here. If we purchase 6 bottles of milk, that would
https://ericlippert.com/2003/09
Mon 12 Feb 2024 (1 week ago)
September | 2003 | Fabulous adventures in coding
about the semantics of it. You’re saying “is the unknown quantity equal to 123?” The answer to that is not “yes”, it’
not “no”, it’s “I don’t know what the unknown quantity is, so, uh, maybe?” Nulls propagate themselves. Any time you numerically