« first day (2658 days earlier)      last day (813 days later) » 

7:34 AM
git worktree is the kind of feature I tell myself I could use in some specific cases and that I never remember when the cases happen...
 
 
3 hours later…
10:08 AM
@FrancisGagné What exactly is the point in doing that? I mean, that error would factually be incorrect: your program will never stumble upon that error and the compiler knows that, i.e. it is not really an error if it can never occur, is it? The compiler is warning you that those parts of the code are unreachable, which is factually correct, i.e. you should remove them or rearrange them. Once you do the latter, you will have the error because now, they are going to be executed.
I'm really not sure why would you expect the opposite otherwise?
 
@PeterVaro well then, why do I get a type mismatch error if I change let bar = foo.bar; to let () = foo.bar;, even if the statement is still unreachable? it feels inconsistent
 
@DenysSéguret There are far too many concepts in git similar to that. If you ask me, git very much became a bloatware, the vast majority of people will only ever use 10-20% of its functionality and the rest will remain labelled as arcane magic :)
@FrancisGagné Ha! Nice find! I don't know -- I mean I do have a hunch, probably you have one as well, but just because we know how it is likely implemented that doesn't mean it is the right way of doing so. So I would very much agree with you that it is indeed inconsistency and should be unified in one way or the another.
(Because right now it feels like an implementation detail, not something that strictly follows some design philosophy.)
 
10:32 AM
@PeterVaro I feel like it solves the problem of having to work on something without messing with your other work, for example for a fix. IMO the older solutions like git stashing are the ones obsoletes now but I suspect many people still use git stashing
 
Are they really became obsolete? :thinking:
 
It's especially convenient in Rust with our long compilation time, as you have a separate target folder. It's like having a completely different repo but you may merge the branch in a clean way
 
All right, at least you made me interested enough to try it out and give it a proper go :)
 
 
2 hours later…
12:43 PM
@DenysSéguret yes, I still use git stash a lot when I need to work on a different ticket or something else right now. I've heard about them, seen someone use it, thought "That's useful!", but haven't gotten around to use it myself!
 
1:23 PM
git stash is useful when you sux at git, that why I use it a lot
 
1:39 PM
@Stargateur Once you know how it works, git worktree is very easy to use. Proof is I managed to do it without even feeling like I was going to break something
BTW, I know it's not used a lot because it's "recent". The only reason I heard about git worktrees was an issue pointing that broot didn't support them.
 
@DenysSéguret I thought it was recent as well (and I know you put it into quotes) but to my surprise it turned out that it has been added to git back in 2015 (or possibly earlier, I couldn't pin point it)
 
1:57 PM
In Git or system time, it's recent. Most people know nothing about utilities of the last 10 years
 
I don't have any data to suggest otherwise but I don't think that's true. I mean when it comes to extra features added as alternatives to existing ones to a tool that I'm not actively following the development of, then yes, I probably wouldn't know that (e.g. Git). But virtually all my tools and utilities are the most modern ones (e.g. all system utils replaced by the nicer Rust ones)
And a decade is an entire era when it comes to software development..
 
 
4 hours later…
5:38 PM
@Stargateur I'm not the best at git so I suppose that … checks out.
 
 
2 hours later…
7:57 PM
Oh, that's how to answer the next user who's annoyed by the borrow checker: #turn_off_the_borrow_checker
 
I think this have create a cataclysm
 

« first day (2658 days earlier)      last day (813 days later) »