1,031 karma · joined Jul 24, 2011 (15y ago) · 619 submissions
comment 3y ago · link · parent
I really prefer the actual PR links myself, corporate BS or not, because that gives me the language I need to then search out the other stories that are based on that PR. If you start with a blog, now I have to do the process in reverse to find the source. I think the HN policies are just fine in this regard. And even if other links can't be collated into a comment, I generally trust HN readers to provide additional information or helpful links when appropriate.
comment 4y ago · link · parent
I had a pretty bizarre experience where it would work just fine during the day while the computer was on, but when I'd shut the lid of my work MacBook, the network port on that little USB-C hub would just start sending off ACK signals like crazy, killing my network for anything else trying to use it (effectively denial of service myself). It was really hard to track down also because it wasn't "traffic" really, and it didn't happen on the devices that were impacted (i.e. I'd be using my Windows PC in the evening and that was attached to my work computer). Even more perplexing because it was semi-random - turned out it wasn't "random", it was when I shut the lid of my work laptop vs. just leaving it up and walking away. I finally saw the flood of traffic by dumping network traffic and was able to trace it back to that hub (first I thought my laptop was pwned and was doing something like exfiltrating data or mining when I wasn't logged in, but it was very definitely the hub after a bit more digging).
Since discovering that, I have come across others that have written up the same or similar issues. With the power passthrough, the hub still has power, and if the network interface is flaky as many are, it can cause issues, particularly when the machine it's plugged into stops using it.
This post has links to a few various write-ups: https://mjtsai.com/blog/2022/05/11/usb-c-hubs-breaking-ether...
comment 4y ago · link · parent
That said, every time I try to really teach someone rebase, particularly a new dev, I understand why people shy away from it. I did for a very long time. So I totally understand and get why the above style workflow may terrify folks (or just seem unnecessary). It is easy to mess up and there are a lot of little gotchas if someone isn't careful. And worst of all, it can result in lost work (although even that is "usually" recoverable, but not always). I do think there are some benefits to it, and I think it is something that can be integrated into a dev's workflow a bit at a time. And it really doesn't take significantly more time, in my experience.
I'm not gonna argue here for adopting that. Except for "no commit messages", I'd be pretty ok with a workflow as outlined by this post. I do think folks should understand how rebase works, what commits will be moved/changed when they run a rebase (this is vital), and how to recover when a rebase goes bad (no, not reclone, not generally even delete branch and check it out again).
.
Couple random thoughts I try to communicate to folks who decide to utilize rebase more in their workflow:
- rebase often (if main updates often)
- if worried the rebase may be messy, create a temporary branch prior to starting the rebase at the feature branch HEAD - allows for an easy way back (and prevents lost code)
- don't rebase shared branches - this is a tool to use PRIOR to "sharing" (i.e. pushing) code
- squash/clean up unneeded commits before rebasing on another branch (this may bring it all the way down to a single commit, but for larger features, I think there is value in seeing the main decision points along the way)
- fix conflicts with the code at the specific commit you are on only, don't fix it with the eventual end result X commits down the line - this will generally avoid the dreaded "fix the same conflict over and over for each commit" problem some people encounter with rebasing
- remember rebase creates new history - it doesn't rewrite history (however, old commits will eventually be garbage collected)
- pro tip: understand how `rebase --onto` works, sometimes you shouldn't, or at least don't want to, take all of the commits
comment 4y ago · link · parent
The way I look at it, lets say I have 10 commits. If I rebase main, commits 3, 4, 7, 10 have "conflicts" with the code that is on main now compared to when I started writing my feature branch and making commits. But, now, I have an opportunity to update code in each of those commits as if I was writing it based on what is now currently on main. If done like that, incrementally, it usually doesn't cascade into conflicts on each commit.
The problem, IMO, comes when at commit 3, the dev says "Oh, I did this like this in commit 10, so let me just put that solution here in commit 3 to resolve this merge conflict". Now, instead of 4 conflicts, you have conflicts on all of the commits between 3 and 10 (because the dev in effect moved the fix from 10 up 7 commits from where it originally was committed). Instead, each conflict resolution should aim to maintain the code as close to the committed code as possible while integrating the code from main. That way also, the feature branch commits still reflect the iterative process that having multiple commits is designed to show.
I don't embrace a FULL squash rebase, but I do embrace cleaning up your branch commits with an interactive cleanup rebase (not on main, just going through the commits for the branch and squashing any minor fixes that belong with the previous commit, etc.) THEN, once you have a clean feature branch, rebase main. The feature branch may now have, instead of the 10 commits above, eliminated 6 commits that were just things like minor test fixes, typos, etc, and now only has 4 commits total. Instead of 4 conflicting commits, it may now only have 1 or 2, making the rebase simpler as well. And the branch still maintains the traceable history of the development of that feature (assuming good commit messages were used, which is not something the original poster values either).
comment 4y ago · link · parent
comment 4y ago · link · parent
> # adds my single commit to the end of the current main
The biggest benefit to this IMO is that you can resolve conflicts in YOUR branch, get it all cleaned up, and then when you merge there are no conflicts. This allows you to test any changes made during conflict resolution in your feature branch still.
comment 4y ago · link · parent
My "working with" would be almost the exact opposite of what you list (I like that idea though!). I tell people emails may get checked daily at best. We don't have a phone culture, we use huddles or video calls for synchronous conversations, but they do suffer from lack of documentation or note sometimes.
comment 4y ago · link · parent
As for information lossage and threads, get familiar with search. And also, when it's one of your messages, think about the words you may use to find something later and work them into your messages. Or for other messages, add a comment of your own with the keywords that should work to make things easier to find later. And if that becomes a trend for the team as a whole, everyone benefits.
I think being opinionated about "how Slack is used" can be helpful, especially if the team buys in. Hope some of the above helps somewhat.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
For my personal machine, and LG Gram 17" - I think about 2 years old at this point - the value/hardware is a pretty great value IMO (and frequently goes on sale at Costco), it's ultralight (important for me), still has a number pad, and a 16x10 display, unusual IMO outside of the Mac world. And the screen is gorgeous. Maybe not Mac/Retina (but I run my Mac screen at highest resolution rather than Retina anyways, so it more similar than you'd expect).
comment 4y ago · link · parent
I think it's important as the poster above you said, not just take the word research at face value. I'm sure that there may be studies that show collaboration can lead to good ideation and outcomes also, I just don't think this one is that.
Some notes from the abstract:
> ... examined cues that evoke a psychological state of working together ... which increased intrinsic motivation as people worked alone.
> Outcomes were diverse, e.g., task persistence, enjoyment and, 1–2 weeks later, choice.
> These cues also increased feelings of working together but not other processes.
> The results suggest that cues of working together can inspire intrinsic motivation, turning work into play. The discussion addresses the social–relational bases of motivation and implications for the self and application.
comment 4y ago · link · parent
For the report, I don't have a link handy. I looked into this in the past and was able to find a few different reports of that nature. I haven't looked for one in the last year or two, so like I said in another comment, if things have changed and what I read is out of date now, I'd be happy to have an update as well.
comment 4y ago · link · parent
I'm not trying to dismiss the issues Google has had. Just to put it in context that they get a lot of press about the issues they do have, and so there becomes an impression that it's historically bad when the actual numbers do not seem to show that to be the case. (Also, if anyone provides links to 2021 or newer reports, I'd be happy to revise my opinion here based on new data, if it shows that I'm no longer correct, as it's been a bit since the last report I saw.)
comment 4y ago · link · parent
Every manufacturer has some level of issues, Google sure seems to be about average. I will say that their insistence on automated (read: poor) support can sometimes exasperate problems (which then leads to more anecdotes being posted).
comment 4y ago · link · parent
It doesn't matter how much better it is, if the only way to use it is via Apple hardware. It's their prerogative to do that, and it makes good business sense assuming it doesn't bring them monopoly problems (and IMO it probably shouldn't due to the aforementioned stats re: worldwide usage at 27%, and even US usage is only at 55%).
But it in no way is a standard. It's just a proprietary piece of software. So literally any other standard proposal is "more of a standard" than iMessage.
comment 4y ago · link · parent
Question re: web (where I have not been impressed with Flutter as a platform) - I just get "Failed to start listening thread." I tried both Firefox and Chrome, latest versions.
Side note: Also noticed I can't highlight/copy the text (common usability/accessibility issue with Flutter Web. I believe it's not that hard to allow?)
comment 4y ago · link · parent
I find the idea that $1 is a "hard sell" laughable, but unfortunately for software devs that is the world we find ourselves in when trying to monetize an idea.
comment 4y ago · link · parent
comment 4y ago · link · parent
The point being, the weather phenomena is not new, nor is using polar vortex to describe it. And just because you hear about something in the media for the first time and it seems exaggerated, that does not necessarily invalidate it or somehow make it a "pedestrian event" being over-hyped. It could be, but in this specific case, it definitely does not. And those words, as explained elsewhere, are the correct words to use from a descriptive point of view.
> The earliest scientific papers describing the broad-scale tropospheric or stratospheric flow as a “circumpolar vortex” or “polar vortex” are from the late 1940s and early 1950s. (Although a much earlier usage appears on pg 430 of Littell’s Living Age Map, 12 November 1853.)
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Only problem is my Pi died and I haven't set up a new one, been considering setting up a Pi cluster so if one goes down I don't have to scramble to fix it for Internet to work in our house (although I can just update the DNS at my router until it's fixed, so not too bad).