Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dbcfd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
dbcfd
11y ago
This is total pay, not salary based compensation. Total pay includes equity grants, which will increase if the company does well, thus will correlate with stock performance. The total pay can also be manipulated by CEO's targeting shor
32.
▲
by
dbcfd
11y ago
Except for studies that indicate otherwise. And that their salary is determined by a board of their peers, whose salaries are determined by boards that may include that executive. There is no downside to increasing CEO compensation for thes
33.
▲
by
dbcfd
13y ago
> less code, less bugs and less bullshit than the horrendous status quo of corporate Java development. It may take some getting used to syntax and design wise, but being able to code things up in 1/10 the size of other languages co
34.
▲
by
dbcfd
13y ago
> Coming to Scala from experience including C, Java and Haskell, I intially found Scala quite difficult. I think because it allows you to do OOP and FP, Scala becomes difficult since it is so easy to mix the styles. Similar to C and C++,
35.
▲
by
dbcfd
13y ago
Make it a product, and I'd be more interested. A number of companies have their own hosting, so the hosting part is not only unneeded, but is also usually a non starter.
36.
▲
by
dbcfd
13y ago
Not really. They handle querying and aggregation much differently. For people coming from SQLServer/MySQL/Postgresql, the functionality differences between the NoSQL flavors is something they don't expect, and often don'
37.
▲
by
dbcfd
13y ago
What is the syntax on finding an array value matching some key? E.g. given a user with field "favFoods":[String], how do I determine that pizza is in there?
38.
▲
by
dbcfd
13y ago
Querying, and querying immediately after insertion. If you want queries after insertion (which require views), this can be slow in couch. Also, if you want to query, but don't want to add a view, wait for it to populate (causing a perf
39.
▲
by
dbcfd
13y ago
> Keep in mind the constraints in the article, for example: some shows have 20,000+ episodes, actors show up in 100s of shows, and "We had no way to tell, aside from comparing the names, whether they were the same person". As o
40.
▲
by
dbcfd
13y ago
From my tests with couch, the view isn't populated immediately after a document has been inserted, and may take some time. I think I tried this doing insert bulk, wait for view, insert 1, query, but I'd have to double check.
41.
▲
by
dbcfd
13y ago
From another comment I made, on why I don't think is a good article even using the proposed thesis of "mongo doesn't work for graph like relationships": Even though their data doesn't fit well in a document store, t
42.
▲
by
dbcfd
13y ago
db.find({"field":"value"},{"field":1,"someotherfield":2}) Finds all documents with field having value, returning only field and someotherfield. That part is similar to the map portion of a CouchDB
43.
▲
by
dbcfd
13y ago
Even though their data doesn't fit well in a document store, this article smacks so much of "we grabbed the hottest new database on hacker news and threw it at our problem", that any beneficial parts of the article get lost.
44.
▲
by
dbcfd
13y ago
There's also the fact that what they were trying to do in Mongo was not what you should do in Mongo. Use a relational or graph database for data that is best represented as a relation or graph. Nothing like using a hammer to paint a wa
45.
▲
by
dbcfd
13y ago
I think this is the first post on HN I wish I had a downvote button for, just for the reason you list. There is a reason there are different flavors of databases, and MongoDB most definitely would not be my choice for representing graph lik
46.
▲
by
dbcfd
13y ago
No RAII is one of the things that really bugs me about go. I can't just construct an object and have it be ready, I have to remember to call some other method. Rust's memory model is also better, since it's akin to shared poi
47.
▲
by
dbcfd
13y ago
I'm a serious C++ programmer, and I'm also in the Rust boat, rather than the Go boat. I've tried Go. More than once. And each time, I feel really restricted. I feel like I have to solve problems a certain way, rather than the
48.
▲
by
dbcfd
13y ago
I think he's trying to get at what happens if an operation becomes non-atomic. In the case of the long long, there could be two register loads, rather than one. Normally, you would expect calc(1) to return m1 at t0, or m1 at t1, dependent o
49.
▲
by
dbcfd
13y ago
I'm not sure how it would produce varying behavior if it satisfies the const contract, in regards to the object itself. You're passing in a non-const reference, so wherever that came from would be expected to change. However the object itse
50.
▲
by
dbcfd
13y ago
const_cast = code smell mutable = code smell Pretty much anything that breaks the contract is readily apparent when reading/searching the code, and indicates that something needs to be rewritten. Just because you can break the contract does
51.
▲
by
dbcfd
13y ago
And that's where functional programming languages are gaining over imperative/oo languages for multi-threaded behavior. Because you have the ability to break the contract, it produces code that is harder to follow, harder to learn for begin
52.
▲
by
dbcfd
13y ago
The only time I could see that not being threadsafe is with something like a double on a system without native support, such that bits could change during operation. Even then I think the information gets pulled out. On most systems, the va
53.
▲
by
dbcfd
13y ago
C++11 is finally saying that this is not ok, as it really breaks the const contract, and can produce varying behavior in a threaded situation. You could also argue that read/write locks aren't legitimate applications (starvation, increased
54.
▲
by
dbcfd
13y ago
No. If you used const correctly, you couldn't change anything about the class, therefore it was also thread-safe. If your class had mutable members or got around the const guarantee through backdoors (e.g. pointer passed in that modified an
55.
▲
by
dbcfd
13y ago
I was more surprised by a technical post complaining about workers, waiting on io, and context switching. There are ways to handle concurrency and network communication without large amounts of context switching and threads.
56.
▲
by
dbcfd
14y ago
> Don't want to sound like a snob, but it really looks more like a design problem than a language problem. I stopped reading about halfway through as most of the code samples reinforced this.
57.
▲
by
dbcfd
15y ago
Just make sure whatever you do on the side is truly on the side. Even if you code something up at work they may help some open source project you're interested in, recode it away from the office on your own computer. In terms of your projec
58.
▲
by
dbcfd
15y ago
Good luck getting a power user (or god forbid, a community moderator) review removed. A number of them feel they deserve preferential treatment because of their Yelp status, and will go out of their way to bash you when that doesn't happen.
59.
▲
by
dbcfd
15y ago
> The very first four-star filtered review this business has mentions the waitress and host by first name (she goes on to sign it). Many of the other reviews for this business are similar and come across as fake or by people who mean we
60.
▲
by
dbcfd
15y ago
As a business owner, I have also seen the extortion for advertising model. Businesses that advertise with Yelp have low star reviews filtered, while businesses like mine that do not, have reviews from valid customers (often with friends and
More ›