Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
clusmore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
241.
▲
by
clusmore
10y ago
>Nonetheless, it's awesome that a language that's been around for 60 some-odd years is still evolving and making use of modern programming techniques. It's interesting that I keep hearing functional techniques referred to
242.
▲
by
clusmore
10y ago
Funnily enough, I'm in China right now and it appears NYT is blocked here because I can't load the article.
243.
▲
by
clusmore
10y ago
>C++ is an example of the serious negative consequences of language change. From the outside looking in (as a non-C++ developer), for me the bigger problem is honestly that they left in the warts rather than just paving around them. Thos
244.
▲
by
clusmore
10y ago
By this logic, should they pull out of the US too because Google (and Facebook both) has been completely pwned by the US government? Not meaning to be snide.
245.
▲
by
clusmore
10y ago
Going a little off-topic here but I have never understood the model of having health care provided by an employer. In Australia we all pay for our own private health care (or choose not to). For one, I just can't understand how health
246.
▲
by
clusmore
10y ago
>A programmer is given a very specific set of tasks (eg. send data from A to B, fix bug, implement X), and his problems are mostly technical. I don't think this is a fair comparison. This is actually one of those cases where I like
247.
▲
by
clusmore
10y ago
>The biggest real problem I’ve found with large “where” clauses is that they tend to have a lot of implicit dependencies on variables from the enclosing scope. For me it's always a toss up. I like to make things local where possible
248.
▲
by
clusmore
10y ago
I think you're missing the point. The use case where I would want to see the shipping cost up-front is that I'm buying a single item and I don't care who I buy it from -- I'm browsing across a number of stores and will p
249.
▲
by
clusmore
10y ago
>or overthrow them and appoint a new dictator Now you've lifted the problem from bikeshedding over the logo to bikeshedding over the dictator.
250.
▲
by
clusmore
10y ago
Some really interesting points in here. >So I guess I wish there was a tool with which I could manage type information in the program in a lot more dynamic way than I currently do. I write a small amount of Haskell for personal projects
251.
▲
by
clusmore
10y ago
>Isn't this article just stating the obvious fact that programs at some point do I/O, so no program can be purely functional? I agree with the point that a program can't be purely functional, but lately I've been
252.
▲
by
clusmore
10y ago
Offtopic to the OP but related to Datomic. I saw Rich Hickey's talk about Datomic recently and immediately thought it would be ideal as part of a distributed runtime. Without having actually programmed in Erlang, but having seen plenty
253.
▲
by
clusmore
10y ago
Maybe I've just never written anything difficult enough to benefit from it, but I also feel like literate programming would only slow me down. A programming language is a language , just like human languages. To me, literate programmi
254.
▲
by
clusmore
10y ago
>It's not, because there does not exist an editor that is smart enough to recognize that these 4 spaces are indentation tabs while these 4 spaces are spacing spaces. Oh yes I see your point. All the more reason to use tabs for inden
255.
▲
by
clusmore
10y ago
Sorry, I should have mentioned that I was not the GP. Even if you use spaces rather than tabs, the idea is the same. Do you mean something like the below? Note: \t represents tabbing (not necessarily the number of tabs, just spacing using t
256.
▲
by
clusmore
10y ago
My preferred whitespace code-style is to use tabs for indentation and spaces for alignment. Under no circumstances should two consecutive lines be aligning something (with spaces) and have different levels of indentation (with tabs), I ca
257.
▲
by
clusmore
10y ago
I think one of the interesting consequences of the echo chamber that social networks create is that everybody thinks they are in the majority. For example, if you view the comments on political pages, you'll often see conflicting claim
258.
▲
by
clusmore
10y ago
True, that's a good point. Side note: you seem to be replying to all of my comments, are you following me? :P
259.
▲
by
clusmore
10y ago
I watched a talk by Erik Meijer [1] recently where he mentioned that an implementation of a tuple such as (C# syntax mine, but illustrates the point) class Tuple<T1, T2> { public Tuple(T1 t1, T2 t2) { } public T1 Item1 =
260.
▲
by
clusmore
10y ago
I think the advice that helped me the most was "Declaration follows usage". int* arr[][10]; If you index twice into arr and then dereference, you'll get an int. So arr must be an array of array of pointer to int.
261.
▲
by
clusmore
10y ago
Agreed, these words have similar connotations for me as well. I have also seen deliberate usage of set vs update to indicate changes to objects in memory only vs persistence to databases, etc.
262.
▲
by
clusmore
10y ago
>- Do not tack on a minor whitespace or semicolon changes in unrelated commits or Pull Requests, even if the minor change is correct. Make a dedicated commit or Pull Request instead. Second this point in particular. I work in a small tea
263.
▲
by
clusmore
10y ago
Nice story. I understand the point of the article, that there is such a thing as over-engineering. But as your story illustrates (and we can all attest to), there is also such a thing as under-engineering. I think the really insightful comm
264.
▲
by
clusmore
10y ago
https://status.github.com/ >We are investigating intermittent connection issues to GitHub.com.
265.
▲
by
clusmore
10y ago
Abstractions hide irrelevant details, heavy emphasis on the word irrelevant . "Abstractions" over relevant details are bad abstractions. Relevant is not an absolute term. Details are relevant or irrelevant in different circumst
266.
▲
by
clusmore
10y ago
I agree that setter properties are often a code smell, but getter properties are nice for calculated fields. As a very simple example, consider the following (C#): class Circle { public Circle(int radius) { Radius = radius; }
267.
▲
by
clusmore
10y ago
>Note the inferred type signature for this Wow, that's really powerful. Thanks for showing me this!
268.
▲
by
clusmore
10y ago
>String concatenation actually does associate; Oh my goodness, my brain exploded apparently because I meant to say commute, although commutation is usually not something to be expected of monoids. >Using Num rather than Monoid probabl
269.
▲
by
clusmore
10y ago
I had heard of the support for the hierarchy of some builtins like floats being more general than ints, but this isn't a very satisfactory approach because it's not extensible to user-defined numeric types. Perhaps what I'm s
270.
▲
by
clusmore
10y ago
Yep that sounds like what I mean. Haskell typeclasses, Go interfaces, TypeScript interfaces are further examples. Not Java/C# interfaces though, as they need to be declared at design time, and you can't force existing classes to i
More ›