Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Skinney
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
601.
▲
by
Skinney
13y ago
Well, there is to my knowledge no other vcs that does this. Mercurial will hapily blow your changes away if you do a hg update -C. If you want your changes to stick around, you do a git stash first.
602.
▲
by
Skinney
13y ago
I'm comparing Java to languages like C#, C++ and Go, and Java is definitely falling behind. Java 8 will be a big improvement, but I'll still miss having variable type-inference (auto in C++, var in C# and Go). C is supposed to map
603.
▲
by
Skinney
13y ago
Uhh... The hype is there for a reason. It is inherently portable, because the bytecode can be run everywhere you have a JVM. You don't need to compile for every platform you wan't to run your software in, or muck around with cross
604.
▲
by
Skinney
13y ago
> and could only have got out of it by using an obscure feature known only to Git power users. Obscure? I spent one afternoon reading the Pro Git book that is available free online. The first thing you learn, after learning to alter hist
605.
▲
by
Skinney
13y ago
Norway has a lot of benefits for electric cars, so that Leaf and the Tesla are bestsellers isn't surprising. In Norway, you pay less taxes on electric vehicles (petroleum-car tax), you get to park for free several places in the city, f
606.
▲
by
Skinney
13y ago
> The worst that happens in reality is you have to wait a couple extra months for someone to release a new build of something you depend on (or heaven forbid, clone the source and build it yourself). Sure, if the package is activly maint
607.
▲
by
Skinney
13y ago
Ahh, didn't know about phases. Nice!
608.
▲
by
Skinney
13y ago
> If they'd been using Mercurial, the situation just wouldn't have arisen; they would have had a branch with two heads, and they could have resolved that straightforwardly. The would have this situation in Git too. If the Git-s
609.
▲
by
Skinney
13y ago
Like histedit, mq and rebase in hg does you mean? And it's not an error that the user tells git (s)he wants to remove or squash or whatever some commits. Git gives you that flexibility, which alot of people like, and at the same time g
610.
▲
by
Skinney
13y ago
Much harder to loose changesets? The reflog keeps changesets for up to 90 days (default, can be configured), if you don't notice that changesets are missing for 90 days, then chances are they don't matter :/
611.
▲
by
Skinney
13y ago
Problem with histedit and rebase though is that they won't allow you to change published history. This means if I want to push my changes to a backup repository (not the main development repository) I loose the option of rebasing my fe
612.
▲
by
Skinney
13y ago
Kiln Harmony was awesome, as I'm one of two developers in a team of eigth who prefers Git instead of Hg. Then we decided to use sub-repoes/submodules, and kiln harmony can't handle that, and our other team members simply WONT
613.
▲
by
Skinney
13y ago
They stopped using Boehm since 3.2 release of Mono. In certain cases the new GC is 10x faster.
614.
▲
by
Skinney
13y ago
More info on this?
615.
▲
by
Skinney
13y ago
Depends what operation you are performing. increaseAge function would probably require the object to actually increase the age, not just return an increased age value. This is a poor example, i know, but the point is that while both is simp
616.
▲
by
Skinney
13y ago
The reason alot of people like dynamicly typed languages is that they don't have to babysit the compiler. Small example, in JS, if you have a function that works on a "age" property of an object, it doesn't matter what k
617.
▲
by
Skinney
13y ago
It depends. You implement a protocol while defining a record or type, so called inlined implementation, then it's the same as a Java class with a implemented interface. Clojure allows extending protocolls outside a record/type def
618.
▲
by
Skinney
13y ago
Could someone explain why Applets/Webstart is so insecure? I know that JRE itself isn't really bad, it's the web-plugin for Java that has security vurnabilities. But how so?
619.
▲
by
Skinney
13y ago
That will still block forever. If you include a function call in the loop though, it won't.
620.
▲
by
Skinney
13y ago
I was thinking more about the fact that you had switched to C/C++. I agree that re-writting an app of that size is a giant PITA. You could always use GWT though, and compile Java to Javascript. Altough you would probably have to re-wri
621.
▲
by
Skinney
13y ago
If you really want to target the web, what's wrong with JS/CS in the browser or on Node.js for desktop apps? Of course, you could always use C/C++ with emscripten, and target the web that way...
622.
▲
by
Skinney
13y ago
In a system with XP and IE7, I somehow doubt that Java will be your largest source of security issues...
623.
▲
by
Skinney
13y ago
Uhh... Wouldn't it make more sense to just create a PhoneGap wrapper in Javascript? I mean, PhoneGap is mostly just javascript bindings for things like camera og sensors, which Firefox already has js bindings for, right?
624.
▲
by
Skinney
13y ago
The reason those languages are more friendly towards small functions has nothing to do with pure functions/programs. You can use the same concepts in C/C++ or Java/C# just as easily, I've done it, it's not hard. Wha
625.
▲
by
Skinney
13y ago
In this small example it doesn't, getFriendsById however, does. I would imagine that wtfFriendAction could be used multiple places though. wtfFriendAction is additionally a very, very poor name. It should be called "addFriendToFri
626.
▲
by
Skinney
13y ago
No study no. But since those languages are built around that line of thinking, and becouse those languages are great, and becouse that line following your quote is in alot of the books about learning said languages, I belive the statement t
627.
▲
by
Skinney
13y ago
There is a difference between callbacks and lambdas. Nothing forces you to provide a lambda as a callback. If that lambda will only ever be used once, then it's ok as long as it's short and easy to understand what it does. If that
628.
▲
by
Skinney
13y ago
Short methods/functions are good in that they do very little and thus are easier to read and grasp than a function spanning 50-100 or more lines. Short methods/functions are also easier to name properly. As Clojure, F#, Haskell an
629.
▲
by
Skinney
13y ago
Wouldn't it be more misleading if the C++ version did something different?
630.
▲
by
Skinney
13y ago
You can't --really-- avoid dictionaries in python, as namespaces and classes actually are dictionaries, and can be treated as such. In Lua, all global variables are inserted into the global dictionary _G, which is accessible at runtime
More ›