Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ljlolel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
901.
▲
by
ljlolel
16y ago
That's funny you say that. I definitely have been working a lot on that specifically over the last few years. I'm actually a hard-core hacker. I'm running technology at Stickybits. I wrote my own Python web framework, and released (what
902.
▲
by
ljlolel
16y ago
Some of the best friends you make will be in college: life-long friends. These tight bonds are forged from living very close to each other, possibly in the same room, every day for years. In the real world of apartments and houses, a friend
903.
▲
by
ljlolel
16y ago
You should read lots of blog posts, but I find books much more interesting. They cover a topic from end to end, rather than giving you an out-of-context sliver of an idea.
904.
▲
by
ljlolel
16y ago
Python, arguable most readable: divisors = lambda n: (k for k in range(1, n / 2 + 1) if n % k == 0) perfects = (n for n in itertools.count(1) if n == sum(divisors(n)))
905.
▲
by
ljlolel
16y ago
Colemak is better for 3 reasons: 1. It changes fewer keys so it's fas easier to learn. I picked it up in a few hours. 2. It changes fewer keys so I switch between Colemak and Qwerty regularly. 3. It was designed after computers were inv
906.
▲
by
ljlolel
16y ago
Is there a way to do the reverse? That is, can I ensure a more stable connection by using one terminal to open multiple SSH TCP connections for faster speed and redundancy? My workplace sometimes suffers from serious problems and because T
907.
▲
by
ljlolel
16y ago
I did this last year. Literally life-changing. While in school, I traveled every weekend. I spent 3 days visiting a friend in Bogota, Colombia. Incredible experience. One of the best parts is that you only have to book 3 days in advance
908.
▲
by
ljlolel
16y ago
Please note that the docs are completely static. Because they are static, I could have generated these docs by just writing a function that returned the whole html string, which would be a small constant overhead. The only reason I used W
909.
▲
by
ljlolel
16y ago
Ideally I can use the name for my upcoming web framework as well, a la Django Templates. Also, the template language has an html helper lib which I describe in the docs, but it also has an xml lib, an rss lib, and really (since it's just st
910.
▲
by
ljlolel
16y ago
Good point, would you prefer p.raw(u'Hello, ' + thing) and p(html.title(name + ' | ' + section + ' | ' + page))) or better yet (remember that these are all strings funcs) p(html.title(pipe_separate(name, section, pag
911.
▲
by
ljlolel
16y ago
Great comment! Agreed. I'm a little afraid of that hack though and what it might do to a query optimizer. You're right that the callable system makes loops tricky. Also, great point about the closing parens. We use python specifically to a
912.
▲
by
ljlolel
16y ago
First, I'm really glad you took a look at this and thought deeply about how to improve it. It is possible to do import star, and if you really know what you're doing, you can. But, you quickly start running into issues with polluting the na
913.
▲
by
ljlolel
16y ago
Thats a good point. I also worry about confusion with spelling and the Webby awards. The original name was Webify, but I switched to weby because 1. IBM owns the trademark, and 2. Weby is short. This is all still in development, so if you c
914.
▲
by
ljlolel
16y ago
Also, I'd like to add that even with the overhead of explicit p and html tags, this ends up being the same or fewer characters and fewer lines than traditional popular template systems including Jinja, django, and ERB
915.
▲
by
ljlolel
16y ago
Those are good ideas, and I experimented with those. I also appreciate that you actually looked into it and thought deeply about how this can be improved. You gain a handful of characters you don't have to type. You lose a lot of flexibili
916.
▲
by
ljlolel
16y ago
Python does have limited syntactic flexibility. This makes it bad for making completely new languages. You are correct. My philosophy recently has been that you do not want to create a new language. Haskell makes it easy to make a custom
917.
▲
by
ljlolel
16y ago
I'd appreciate it if you tried and use it a bit and then give me feedback on what is difficult to learn because it is overly esoteric or specifically what you could not do. Some advantages are that it integrates more cleanly into Python cod
918.
▲
by
ljlolel
16y ago
I tried putting the docs on GitHub, but GitHub unfortunately does not have an HTML option for the README as far as I can see. The markdown format should theoretically pass the HTML through, except that GitHub significantly modifies or ignor
919.
▲
Ask HN: Weby: A new python template language, can I have some feedback please?
28 points
by
ljlolel
16y ago
|
36 comments
920.
▲
by
ljlolel
16y ago
Funny. I made a similar comparison with Facebook. PG said that Yahoo was a de facto pyramid scheme, although ponzi scheme is a better analogy: http://blog.jperla.com/facebook-is-a-ponzi-scheme-0 >> By 1998, Yahoo was the benefic
921.
▲
by
ljlolel
16y ago
I'll post this on my blog soon. Here is a list sorted by the ratio, with a cutoff of at least 1000 publications. 4 universities lead by a wide margin: 1. Berkeley 2. Stanford 3. Princeton 4. MIT 1 Wellcome Trust Sanger Instit
922.
▲
by
ljlolel
16y ago
Hi, I think that you are completely right. Schema evolution and easy partition/sharding are broken on current open-source RDBMS systems. Relational data has strong mathematical guarantees as well as useful normalization properties for ens
923.
▲
by
ljlolel
16y ago
+1, same thing happened to me. Only this past semester when I took 8 classes did I realize the value of diligence. By the way, hope Facebook is going well Ivan!
924.
▲
by
ljlolel
16y ago
Hey Maro, that sounds really cool. I can't believe you're in Hungary. I'm in Budapest for just another week working and studying! I work on stickybits.com. If you can meet up, we should. Call or text me at +1 36 70 574 1198 .
925.
▲
by
ljlolel
16y ago
By far the coolest data structure is the soft heap ( http://www.link.cs.cmu.edu/15859-f07/papers/chazelle-soft-he... ). From wikipedia: http://en.wikipedia.org/wiki/Soft_heap In computer science, the soft heap, designed by Bernard Chazell
926.
▲
by
ljlolel
16y ago
Also http://news.ycombinator.com/item?id=1293119
927.
▲
by
ljlolel
17y ago
+1 Haha, yea, you're completely right. Also, don't forget that Facebook can monetize in ways other than ads. So even if I were right, my short would still probably lose. I said this merely for effect. I wanted to emphasize a point: I thi
928.
▲
by
ljlolel
17y ago
Hi Dantheman, you are right. It's not a perfect analogy. There's not really any closer analogy, though. I state this later in the post, if you read through the whole thing (including saying "like a Ponzi scheme"): "Yet, their value and g
929.
▲
Facebook is a Ponzi Scheme
(blog.jperla.com)
213 points
by
ljlolel
17y ago
|
111 comments
930.
▲
by
ljlolel
17y ago
I didn't understand your acronym USSC at first. Normally, the Supreme Court is referred to as SCOTUS (Supreme Court of the United States). Also, you're right.
More ›