Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
romaniv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
83 ms
·
841.
▲
by
romaniv
15y ago
Exceptions can make your code much shorter and readable by the virtue of centralized error handling. However, try-catching can be pretty ugly in cases when you need to handle exceptions right away. D language has scope guards to help this.
842.
▲
by
romaniv
15y ago
Not necessarily. Typical CSRF implementations prevent the server from accepting inputs coming from an "unauthorized" page. This might or might not prevent XSS from being triggered on the client side. XSS can propagate to other users via d
843.
▲
by
romaniv
15y ago
Impressive work, but I really feel the kind of issues the author had to overcome are also the reasons for avoiding JavaScript in general programming (which would require quality RNGs).
844.
▲
by
romaniv
15y ago
Personally, I no longer think "is this true?" when reading about stuff like this. I know that the odds are in favor of this being another fake technology. What I do think about is whether there is any mechanism for real inventions to become
845.
▲
by
romaniv
15y ago
CSS cascading allows you to apply styles based on the structure of your HTML document. It does nothing for structuring CSS itself. The point of variables (and my suggestion above) is to have a tool for ogranizing and reusing CSS regardless
846.
▲
by
romaniv
15y ago
This is definitely better than no variables, but is it the best solution? I think most of the advantages of variables can be achieved through a technique that introduces no new syntax and a minimum of new keywords: .element { color: #0
847.
▲
by
romaniv
15y ago
If I had to pick one feature, it would be either proper client-side includes or partial caching. Probably the latter, because it's more aligned with the Web mindset.
848.
▲
by
romaniv
15y ago
This. It becomes harder and harder to develop interfaces using progressive enhancement, since the expectations from web interfaces are keep changing while the UI components available in native HTML are stuck in the early nineties. HTML 5 di
849.
▲
by
romaniv
15y ago
Does Rails define so much functions that it counts as an alternative to Ruby? I would say Ruby is a pretty good/modern language on its own.
850.
▲
by
romaniv
15y ago
However, there are plenty of people whose contribusions to humanity wastly exceed what Jobs did. Would they get this kind of coverage if deceased? I seriously doubt that.
851.
▲
by
romaniv
15y ago
Does the article's author realize that the HTTP's request-response model wasn't some technology limitation of old times, but conscious and pretty sensible design that led to current popularity of the web? Here is what it allowed: - URIs, i.
852.
▲
by
romaniv
15y ago
More like wiring or integration code. Not everything is a framework. At some point you have to write code that works with and inside of the framework.
853.
▲
by
romaniv
15y ago
Scrum favors incremental/additive changes, which leads to inconsistencies. Often inconsistencies are too large to simply fit with some other task, and a separate task just for reconciling everything never gets prioritized. Viola.
854.
▲
by
romaniv
15y ago
Any enum with clear transition logic is effectively a state machine. However, if you try to implement SMs as separate classes/objects with explicit transition functions, than it does become an unreadable mess. The logic in your code stops r
855.
▲
by
romaniv
15y ago
It's mathematically impossible to write a program that always correctly determines whether an arbitrary piece of code will halt (rather than get stuck in an infinite loop). Making that determination is referred to as halting problem.
856.
▲
by
romaniv
15y ago
I don't agree with a lot of the things said in the article. For one, stored procedures are not just files, they are a part of your DB schema. Your SQL code (whether PL/SQL, or T-SQL, or whatever) is actually executable code that modifies
857.
▲
by
romaniv
15y ago
The more libs like this I see, the more I feel that the core HTML controls should be improved and expanded. They are getting really, really dated and don't address a lot of common problems. Things I feel would make a lot of sense: Collapsi
858.
▲
by
romaniv
15y ago
An intuitive way to navigate the site's content. This assumes the user knows the correct product name and the rules you use to normalize it (ariel-atom vs arie+atom vs ariel_atom). This not the case for most URLs. I don't remember the exa
859.
▲
by
romaniv
15y ago
Very interesting. I really like the concept of draggable digits. They are more compact than sliders, easier to make changes to and give better feedback. Now I wish this was a standard UI element / HTML input type.
860.
▲
by
romaniv
15y ago
There are two issues that, in my opinion, contribute to massive squatting problem. First, squatters can buy domains in bulk and pay next to nothing for each of them. (Sometimes they pay nothing at all, abusing trial periods and renewal rule
861.
▲
by
romaniv
15y ago
Firstly, squatting is a problem that ICANN itself created (or at least contributed to creation of) through their broken reseller policies. Since squatting drives domain prices up, it might even be financiall beneficial to ICANN. Secondly, s
862.
▲
by
romaniv
15y ago
Also, GOG. It doesn't even use DRM.
863.
▲
by
romaniv
15y ago
That's natural, since mathematical notation is heavily slanted towards writing on paper and symbol manipulation. Use of one-letter variable names and highly context-sensitive notation reduces the number of pen strokes, but doesn't help the
864.
▲
by
romaniv
15y ago
Not crazy at all, especially if is a VM that can host multiple languages. Hm... What would be even more interesting is a VM that can be configured form the server. 1. User opens a page with scripts in LanguageX. The page links to some kind
865.
▲
by
romaniv
15y ago
This would be a good thing if new TLDs represented the types of organizations, e.g. .news, .reviews, .cars, .health... I'm afraid the real TLDs will be either more random and meaningless or trademarked.
866.
▲
by
romaniv
15y ago
The purpose of search engines is filtering content to give you what you want The purpose of search engines is filtering content to give us what we asked for . Unless they developed mind-reading technology, Google doesn't really know what
867.
▲
by
romaniv
15y ago
Maybe it's a silly question, but how did you output sound after decoding the stream? I wasn't aware browser JavaScript had any APIs that work with sounds directly. There is Audio, but IIRC it just streams the file from the server. I've look
868.
▲
by
romaniv
15y ago
ACL is probably part of the problem here. Most ACLs are very inflexible and are "opt in". They probably had ACL to block unregistered user from visiting the page, but it didn't deal with individual accounts.
869.
▲
by
romaniv
15y ago
They always want to work on only one thing at a time and get confused/ much slower if they have to work on multiple things This is the case with everyone. Multitasking negatively affects overall performance. There are many studies that co
870.
▲
by
romaniv
15y ago
This goes to show that a good designer or engineer is not just someone who "solves the problem", but someone who considers alternate solutions and solves the problem in the most efficient way that is practically feasible. Unfortunately, it'
More ›