Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
151.
▲
by
irahul
14y ago
> when you think of execution speed in web applications The whole web application is not CPU bound. The parts which are CPU intensive are rewritten in performant language. For eg, if you are twitter, you still render templates in Rails,
152.
▲
by
irahul
14y ago
I don't think anybody equates Python with execution speed. Writing web applications in Python facilitates rapid development, and since most of the web applications are io bound, slow execution speed doesn't make noticeable difference.
153.
▲
by
irahul
14y ago
> I understand what a pointer is, but it's entirely possible that I still don't grok Go. I don't know about you, but I understand pointers from C, and then learning assembly. Go's behavior isn't different from C here. Also, elsewhere yo
154.
▲
by
irahul
14y ago
> It's tough as everyone is drinking the ruby kool-aid. Ruby and Python are similar in terms of execution speed and developer productivity. If your work requires something that Python has and Ruby doesn't(say numpy), then it might make
155.
▲
by
irahul
14y ago
> it started off as little more than the code examples in PEP333 ! Flask had less than 1000 lines when it begun, but werkzeug is much bigger than that. > Except that it had let's say OpenId added to the framework. Is that supposed
156.
▲
by
irahul
14y ago
I think employers will be interested in hiring you for such projects only if you have demonstrated knowledge and experience in the field. If your work experience primarily consists of RoR web development, most employers will pass. It's not
157.
▲
by
irahul
14y ago
Mike Pall of luajit fame has an interesting take on it. http://www.reddit.com/r/programming/comments/19gv4c/why_pyth... <quote> While I agree with the first part ("excuses"), the "hard" things mentioned in the second part are a) n
158.
▲
by
irahul
14y ago
Or navigate using % and text objects. If you want to visually select the block: `v%`, `vib`, 'va{` etc.
159.
▲
by
irahul
14y ago
> it doesn't matter if anyone else on the planet uses Vim Git, etc How does that work? Unless you are creating and supporting Git, git isn't going to work if you are the only person using it. Even then, there will be no github. And I d
160.
▲
by
irahul
14y ago
What are you serving with node? Chat?
161.
▲
by
irahul
14y ago
> without the slightest idea of the purpose of said software In the OPs specific example, the purpose of the network is to carry packets, and your job is to make sure packets are delivered. Whether they carry orders to launch nukes, or
162.
▲
by
irahul
14y ago
My bad. I was speed reading, and didn't read the "Closure Table" part.
163.
▲
by
irahul
14y ago
That will prevent a child being its own parent. It won't work for more than one level i.e a post being its own grandchild. Assume (post_id, parent_id) sequence: (1, 3) -> (2, 1) -> (3, 2).
164.
▲
by
irahul
14y ago
I think if you want the family tree, you can write a self referential(assuming post table is self referential as it should be) recursive query. But in this case, writing a before insert/update trigger which ensure some_post.created_at <
165.
▲
by
irahul
14y ago
> I notice that they are by default turned off for mysql and wonder if this reflects a de facto judgment that logging slows performance more than is usually worthwhile. I think it's more like your application is doing the logging alread
166.
▲
by
irahul
14y ago
How are you modelling your data? I think this should be a self reference. create table post (id int primary_key, parent_id int references post(id), child_id int references post(id), created_at timestamp) How will you place the chec
167.
▲
by
irahul
14y ago
I see where you are coming from. But I am saying this didn't happen because he did things live. This happened because he entered incorrect id making a thread its own parent(or grandparent; doesn't matter). This is the kind of mistake one wo
168.
▲
by
irahul
14y ago
I think you people already know the answer. The amount of freedom and stake/reward system for pg is different from yours. I can't speak for pg, but personally, I am not going to write a migration to re-parent a single thread if the site in
169.
▲
by
irahul
14y ago
> I've always found it's a good idea to not deviate. Aren't you assuming "surgery in repl" is a deviation? What if it's normal course of action for him? > More or less my point. If this wasn't a deviation from normal behavior you wo
170.
▲
by
irahul
14y ago
The kind of assertion he needed could not be ensured by the database. The kind of assertion he needed was there are no cycles in the graph. How would you ensure that in a database? Also, HN uses flat files, not database.
171.
▲
by
irahul
14y ago
HN runs on plain files. He wasn't modifying database, but calling functions(I believe) in the repl to change the parent id of the thread. But that apart, even if there were an admin button to change the parent id of a thread, he would still
172.
▲
by
irahul
14y ago
Disclaimer: Hindsight is 20/20, and stuff. If reverting code didn't fix it, reverting server didn't fix it, incorrect data is the most likely culprit(I am not claiming this should have outright occurred to you; just thinking out loud). I ta
173.
▲
by
irahul
14y ago
May be people will pick up C# for non windows projects in the future, but the past just wasn't favorable for it. The first version of C# was a 'meh' - Microsoft's Java(I already know Java; why bother?). C# got interesting(and a better Java
174.
▲
by
irahul
14y ago
> then he did this transformation from closures stored on the server to closures manually serialized in the URLs (which results in a normal URL as you say). The reply links have a parameter 'id' - the id of the comment to which the repl
175.
▲
by
irahul
14y ago
This is a bit arrogant and misguided. As another commenter pointed out, if you go to a hair dresser, you do get suggestions about what will look good on you, but the hair dresser won't refuse service if you go against the advice. As a devel
176.
▲
Clojure plugin for vim(omni-complete, repl, eval...)
(github.com)
2 points
by
irahul
14y ago
|
0 comments
177.
▲
by
irahul
14y ago
I thought about responding, but then "wrestling, pigs" etc.
178.
▲
by
irahul
14y ago
It's not about being protective over DDG. You are being an asshole again and again in this thread. By your admission, you don't have any experience with search engines, and yet you have definitive opinion about everything related to it.
179.
▲
The Adventures of a Pythonista in Schemeland
(artima.com)
2 points
by
irahul
14y ago
|
0 comments
180.
▲
by
irahul
14y ago
> None of which is necessary in better languages. It isn't necessary in any language, but it sure is useful. I don't know what you mean by better languages, but I program comfortably in variety of languages(Ruby, Python, C, C++, Java, C
More ›