Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tef____
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tef____
15y ago
design, like engineering is about tradeoffs, and flourishes in the presence of constraints. unlike engineering it is often about the cross-domain trade offs. it's a nice love note to design, written by someone who has learned more css than
2.
▲
by
tef____
15y ago
as much as it says that in a fielding-style rest system the URLs and verbs are opaque, he spends a lot of time nitpicking over the format of urls. unless the resource in question is exposed as an endpoint, the url and verb are handled by th
3.
▲
by
tef____
15y ago
I would have preferred to see an extended read-only period, rather than a month in which to panic-download your data (and the export functionality seems to be broken right now too https://convore.com/export ). I'd really like it if there
4.
▲
by
tef____
15y ago
rest is how the web works. if you used a browser to write that comment, I would say rest is working pretty well.
5.
▲
by
tef____
15y ago
A language used by beginners is not the same as one designed for beginners. I would wager that a language designed for beginners wouldn't have so much inconsistency, nor dump the user in a world of security issues with little or no support
6.
▲
by
tef____
15y ago
To echo your sentiment, It's a bit like measuring writers not by the books they have written, but how long they've sat in front of a keyboard. Anecdotally, Not only is time a a poor measure of ability, those who use it as such demonstrate a
7.
▲
by
tef____
15y ago
"the semantics of his library are reasonably clear on inspection" does .remove() mutate in place or not ? depends on the constructor! this would be an example of breaking composition - you can no longer use a function built for an immutable
8.
▲
by
tef____
15y ago
writing your own dialect of the language can be fun, but he is presenting his own style as 'pythonic' as opposed to the actual pythonic style built from functional composition - rather than method chaining. I am banging on about a lot of th
9.
▲
by
tef____
15y ago
I'm not sure why you accuse me of having a fake account? Re-inventing a uniform syntax for python is the least pythonic thing you can do.
10.
▲
by
tef____
15y ago
so you're admitting you're writing an incompatible dialect of python in python? that was my point. if you think it is worthwhile, well - enjoy :-) if you want to write in something with a uniform syntax, use scheme or clojure. python things
11.
▲
by
tef____
15y ago
tl;dr: you didn't read my post. I am pretty sure I made it clear how composition breaks. 'people are allowed to write Python however they want.' people are encouraged to write python other people understand.
12.
▲
by
tef____
15y ago
you seem to go a long way to reinvent python builtins like reverse() any() all() enumerate(), itertools and functors. another python style you violate is that mutable methods return None in general. from the outset you haven't made any atte
13.
▲
by
tef____
15y ago
if you are inventing a new way to do existing things outside the idioms of the language there is no conceivable way you can claim to be pythonic. you are replacing the pythonic style with your own taste. don't confuse the two.
14.
▲
by
tef____
15y ago
#1 the correct way to do it is to have the methods perform the same action on mutable and immutable objects. this is the only way to guarantee composition. you do not change the semantics of shared methods. #2 for both of these examples yo
15.
▲
by
tef____
15y ago
You've invented your own incompatible dialect of python. You've broken composition, objects and the general design choices of python. 1. You break Composition Your magic flag within a list changes all the semantics of the methods between im
16.
▲
by
tef____
15y ago
''Try/catch is goto wrapped in pretty braces.'' From this I can infer that lambda is also an anti pattern. But as good as this straw man post is, yes you can mis-use exceptions, No that doesn't make it an anti pattern.
17.
▲
by
tef____
15y ago
notably, java 7 uses timsort for the default stable sort (on objects) and dual pivot quick sort as the default unstable sort. dual-pivot quicksort is worth a look too, if you enjoy timsort http://gdtoolbox.com/DualPivotQuicksort.pdf
18.
▲
by
tef____
15y ago
the approach is used in functional languages too (without galloping) for example 'run sort' in prolog http://www.scss.tcd.ie/publications/tech-reports/reports.05/...
19.
▲
by
tef____
15y ago
also merge sort is stable :-)
20.
▲
by
tef____
15y ago
As a guy on the internet I am pretty sure she didn't make it up. I think we will have to wait for confirmation, but not long.
21.
▲
by
tef____
15y ago
This seems to be the original tweet http://twitter.com/#!/wendyg/status/128554733714669568
22.
▲
by
tef____
15y ago
How about this then? http://en.wikipedia.org/wiki/Discrete_Hartley_transform
23.
▲
by
tef____
15y ago
i'd like to see more support for memento http://www.mementoweb.org/ it adds date negotiation in the vein of content negotiation to http. it is like browser support for the wayback machine.
24.
▲
by
tef____
15y ago
it turns out a tempting language can be useful for more than one thing, but for small sites, it works very well. you are reading between the lines to find an argument that isn't there.
25.
▲
by
tef____
15y ago
I think this is a good idea. PHP solves a niche of small sites with slightly dynamic templates. (To some extent it owes more to rebol than to php - it has a large grammar and a notable amount of literals.) It makes first class what other la
26.
▲
by
tef____
15y ago
someone did make a copy http://www.archive.org/details/archiveteam-munari-oz-au-2011...
27.
▲
by
tef____
15y ago
It is an old question 'How do we tell truths that might hurt?'. If you try the well reasoned analysis, you get passed over. It turns out that no-one pays attention unless there is a fight happening (c.f. tech crunch's reporting style) 'If t