Josh Ponelat retweeted
Replying to @levelsio
i always put an empty 8gb file in the server root. in case something happens you have quick relief to fix things
Josh Ponelat retweeted
# the nightmare bicycle
imo, the most important idea in product design is to avoid the "nightmare bicycle".
imagine a bicycle where the product manager said "people don't get math so we can't have numbered gears - we need to have labeled buttons for gravel mode, downhill mode, ..."
this is a hypothetical "nightmare bicycle" that Andy diSessa imagines in his book Changing Minds.
as he points out: it would be terrible! we'd lose the intuitive understanding of how to use the gears to solve any situation we encounter. which mode do you use for gravel + downhill??
turns out, anyone can understand numbered gears totally fine after a bit of practice. people are capable!
along the same lines - one of the worst misconceptions in product design is that a microwave needs to have a button for every thing you could possibly cook: "popcorn", "chicken", "potato", "frozen vegetable" bla bla bla.
you really don't! you can just have a time (and power) button. people will figure out how to cook stuff.
good designs expose systematic structure; they lean on their users' ability to understand this structure and apply it to new situations. we were born for this.
bad designs paper over the structure with superficial labels that hide the underlying system, inhibiting their users' ability to actually build a clear model in their heads.
Josh Ponelat retweeted
I did not expect that I would ever have to drop such a message, but here it is.
My teammates and I from the AsyncAPI team at Postman need to find new jobs.
docs.google.com/spreadsheets…
1/n
Josh Ponelat retweeted
Who's running a small independent studio for design/dev/copywriting, lets connect! 🔗
Josh Ponelat retweeted
My big news for the month 👇👇. We've joined @Atlassian
We're joining @Atlassian to help them build the best internal developer platform 🤩.
useoptic.com/blog/optic-is-j…
Josh Ponelat retweeted
Beware of this behavior
#javascript #whatwgurl
Josh Ponelat retweeted
this is wild — kNN using a gzip-based distance metric outperforms BERT and other neural methods for OOD sentence classification
intuition: 2 texts similar if cat-ing one to the other barely increases gzip size
no training, no tuning, no params — this is the entire algorithm:
![for (x1, _) in test_set: Cx1 = len(gzip.compress(x1.encode())) distance_from_x1 = [] for (x2, _) in training_set: Cx2 = len(gzip.compress(x2. encode()) x1x2 = " ".join([x1, x2]) Cx1x2 = len(gzip.compress(x1x2. encode()) ncd = (Cx1x2 - min(Cx1,Cx2)) / max(Cx1, Cx2) distance_from_x1.append(ncd) sorted_idx = np.argsort(np.array(distance_from_x1)) top_k_class = training_set[sorted_idx[:k], 1] predict_class = max(set(top_k_class), key=top_k_class.count)](https://pbs.twimg.com/media/F05HxqsWwAAHRCI.jpg?name=small&format=webp)
ALT for (x1, _) in test_set: Cx1 = len(gzip.compress(x1.encode())) distance_from_x1 = [] for (x2, _) in training_set: Cx2 = len(gzip.compress(x2. encode()) x1x2 = " ".join([x1, x2]) Cx1x2 = len(gzip.compress(x1x2. encode()) ncd = (Cx1x2 - min(Cx1,Cx2)) / max(Cx1, Cx2) distance_from_x1.append(ncd) sorted_idx = np.argsort(np.array(distance_from_x1)) top_k_class = training_set[sorted_idx[:k], 1] predict_class = max(set(top_k_class), key=top_k_class.count)
this paper's nuts. for sentence classification on out-of-domain datasets, all neural (Transformer or not) approaches lose to good old kNN on representations generated by.... gzip aclanthology.org/2023.findin…
Josh Ponelat retweeted
Wow! @OpenAI released tool use as part of the new GPT-4 API.
This unblocks a huge barrier to building effective agents 🙏🙏
openai.com/blog/function-cal…
Josh Ponelat retweeted
📣[email protected] released! Including latest #swaggerui, bringing robust support for @OpenApiSpec 3.1 to your API editing experiences 🎉
Details:
GitHub: github.com/swagger-api/swagg…
npm: npmjs.com/package/swagger-ed…
#swagger #openapi #jsonschema #apidesign
Josh Ponelat retweeted
📣 Big news today…… we’ve formally launched support for @OpenApiSpec 3.1 across the Swagger ecosystem 🎉🚀
Check out the highlights from some of the core team below
#swagger #openapi #jsonschema
Josh Ponelat retweeted
🏷️Deal of the Day🛒
Get your #APIdesign Swagger!
@LukasRosenstock and @jponelat will teach you skills essential for design-first API development: mng.bz/6gG5
#swaggerAPI #webdev
Josh Ponelat retweeted
I've just created a POC repo which demonstrates integrating Vite+Vue.js project with SwaggerUI distribution fragments. Distributions fragments are individual JavaScript and CSS assets produced by SwaggerUI build process.
#swagger #vuejs #vite #integration
github.com/char0n/swagger-ui…
Josh Ponelat retweeted
Check out my new Web App:
benjoffe.com/weekle
It teaches you to easily calculate the day of the week for any date.
It includes a daily game, my result for Day 1:
⭐⭐⭐
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩
Streak: 1️⃣
Perfect Streak: 1️⃣
#weekle
Josh Ponelat retweeted
❕ The book "Designing APIs with Swagger and OpenAPI" by @jponelat and me is @ManningBooks "Deal of the Day" for May 9th, along with other selected titles. ❕
Save 45% on your order here: mng.bz/WrEx






























