9,763 karma · joined Mar 4, 2015 (11y ago) · 1,712 submissions
comment 2y ago · link · parent
I can see a few problems with this. In the case of an MSA taking over, it doesn't necessarily satisfy the exit plan requirement, because as you say in another reply they could charge an arm and a leg. 10x'ing the price overnight isn't really much different from it shutting down.
The other issue: I am a developer and architect, I want to primarily design systems and write code and make stuff. Know what I definitely don't want to do? Sit in meetings and talk about escrow agreements with C-level people, lawyers and sales reps. If there are two startup products we could use, one is exact-fit amazing but needs an escrow arrangement, and the other is OS core but will need dev effort -- I'd 100% rather spend my time doing the dev work.
comment 2y ago · link · parent
Disagree, because:
* QR codes are opaque to humans. You can't visually tell if one is legit or not.
* QR codes often use URL shorteners, so that the URL contained is just https://exam.ple/4pTF6x4M9 is not unusual.
Someone can replace a QR code with a sticker overlay and link to a phishing site. Replacing a URL on a poster is also possible, of course, but harder to make look convincing in the first place and significantly simpler to detect.
comment 2y ago · link · parent
This is one where having an open-source core helps a ton.
In my role I'm often the one finding these and being a major influence in pushing for or against them, and one of the key things that pushes me away is having no exit path in case the company goes under, pivots or otherwise discontinues the product. If it's part part of our product or the delivery pipeline this is a critical factor, and sadly, I've said "no" to a lot of promising products for this reason alone.
I've been burned before by this, and having to drop everything the team is doing to re-build something outside our control is not good for anybody -- it looks bad on me if I chose the thing, it makes all the developers irritated they have to shift focus, it causes chaos to PMs and their schedules, and it infuriates sales and everyone up the chain from there.
Should be obvious, but: the more value the service provides, the more we're willing to pay, but also by its nature the more ingrained it is and thus more important there's an exit path.
comment 2y ago · link · parent
Going from 8MB to 32MB in the 90s is still comparable to going from 8GB to 32GB today.
One difference is just that the price isn't dropping at the same rate anymore [1], so it doesn't make as much sense to buy small and re-buy next year when bigger chips are cheaper (they won't be much cheaper).
Another is that DRAM speed is at the top of an S-curve [2], so there's not that same increase in speed year-over-year, though arguably the early 2000's were when speeds most dramatically increased.
[1] https://aiimpacts.org/trends-in-dram-price-per-gigabyte/
[2] http://blog.logicalincrements.com/2016/03/ultimate-guide-com...
comment 2y ago · link · parent
That's different from having software that can get into an unknown broken state, where physically power cycling it is the only fix.
It's better to crash and ensure there's a process that automatically restarts. Or use a watchdog process. Just breaking, to the point companies build external systems to reboot them, is just bad.
comment 2y ago · link · parent
I go through the usual hoops: press 1 for English, "we detected an account linked to the number you're calling from, is that that you're calling about?" ... Press 1 for support, press 1 for Internet, "no outages detected in your area. Most problems can be solved by rebooting your modem. Press 1 if you want to try rebooting." (Pause)... "thank you for your call click"
First off, rebooting doesn't solve my problem. But I guess I have to try anyway?
So I call back, this time I do pick to reboot, and get "your modem will reboot in the next few minutes, and could take up to 10 minutes to come online. If things still aren't working, try our online support chat"
So, basically there doesn't seem to be any phone technical support (with a human), at all.
Also, rebooting is offensive to me as a programmer. Kernel updates and memory leaks are the only reason you need to reboot. How absolutely shitty is modem firmware that the ISP actually spent the time to build this reboot system out??(Never mind that I personally don't feel like I've ever had a modem/isp actually problem solved by rebooting)
Made me wonder if I should have switched.
comment 2y ago · link · parent
IConfigurationFileService implies abstraction of file system-based configuration. Are we planning that there's going to be a different way to read configuration files in the future, and what exactly is that? If no one can articulate it, it just seems like architecture astronautism and: YAGNI.
IConfigurationService makes writing unit tests for anything that uses it way easier, too. There can be a simple TestConfigurationService:IConfigurationService that just implements everything as settable, and in your test code you can provide exactly the properties you need (and nothing more), and easily have 100 variations of configs to ensure your code is working. Without the headache of dealing with actual files separate from your test code, or worse, shared with other test code.
I've actually written multiple long-lived pieces of software this way, and more than once ended up implementing stuff like environment variable-based configuration, REST API-sourced configuration, and even aggregations that combine multiple sources, eg:
new AggregateConfig(new ServerConfig("https://whatever"), new EnvironmentConfig(), new FileConfig("/some/path.config"));
All that code that used IConfigurationService is completely untouched and unaware of any of this, letting whoever is doing this as part of changing deployment (or whatever) be productive quickly with very little knowledge of the rest of the (possibly massive) app.comment 2y ago · link · parent
Perhaps the culture within the company / department / team is to allow interruptions in the name of "collaboration". Hopefully the increased value gained by "collaborating" that way is worth the cost. Some of that cost is time (productivity), some is people literally quitting. Eventually you're left with a company full of people who don't mind being interrupted and I would assume are interrupters themselves, and I'd assume this effect is exponential, causing lower and lower productivity.
As a manager, you can't have this culture and then also complain about the lack of productivity, missed estimates, etc. (Well, you can, but that in turn will increase stress levels and unhappiness and cause more people to quit.)
Your competitor who sees collaboration is possible with planning, proper async communication channels, and some specific culture choices will have a nicer environment and happily hire away your most talented and knowledgeable people.
> where tens of hours of work will be completely lost if your concentration strays to show your face to another human being and utter a few words.
After being interrupted, it takes on average over 23 minutes [1] to get back on track. The average time lost is almost 3 hours per day, or 60 hours per month [2].
[1] https://www.fastcompany.com/944128/worker-interrupted-cost-t...
[2] https://www.talkboxbooth.com/post/shocking-cost-workplace-di...
comment 2y ago · link · parent
The developer can then juggle all their dependencies and run make/yarn/npm/etc within that. It's really not different from having a CI build script.
comment 2y ago · link · parent
I disagree, but only because I'd rephrase what you're saying as "good tools are force multipliers for skilled people". You can give a beginner musician the most expensive guitar rig, and they'll still sound like a beginner.
I also never said what you're arguing against. The GP was essentially complaining that using vscode would hamstring their career because their skill would be in something Microsoft could take away. What I was trying to say is the reason programmers get paid isn't because they're good at using their IDE, it's because they're good at programming. I believe the GP's concern is misplaced.
Consider: Do you go to a restaurant because their chef uses expensive high-end knives, or because they have good food?
comment 2y ago · link · parent
A guitar doesn't make the musician, and the hammer doesn't make the carpenter.
There's specific skill with being able to use tools well, but that's not what makes a programmer, guitarist or carpenter valuable.
comment 2y ago · link · parent
I've experienced something like this, but only on a project that mostly had the original team that built it (including me) still working on it. We were able to keep things in check, and in the above case would just do it that way without really asking.
On many other projects I've been involved in, there's years of tech debt that has accumulated: the typical retrospectively incorrect design decision, followed by layers and layers of band-aids, each time making the real fix more complicated and a bigger scope.
These things undoubtedly increase the cost of everything else, but it's really hard to articulate. The fixes take weeks, the break-even won't come until months later, the long-term team members are a mix of skeptical and defensive of their work (eg: don't want to do the real fix). In some cases, there's a war story "we heard that about x, but that caused so many bugs we had to revert and abandon it, why is this going to be different?"
Any tips for anyone working in this environment?
comment 2y ago · link · parent
If you're interested in it, they also did a season on Duško Popov [2] (supposedly the spy that was the inspiration for 007), and one on Aimen_Dean who was an MI6 spy in Al-Qaeda, which includes an interview with him at the end.
[1] https://wondery.com/shows/the-spy-who/season/3/
comment 2y ago · link · parent
comment 2y ago · link · parent
Adding to this: consider that not everyone is reading your release notes weekly or even monthly, and might be coming back to work on something that's been shelved for months.
Having a "breaking changes" page in your docs is incredibly useful when someone is faced with upgrading a project that uses eg v1.1 when your current release is v3.5, as they can quickly find the things that need to change without having to read through 17 pages of release notes.
"Component X was removed in version 3.0, use y or z instead"
"v2.0 changed how configuration works. Instead of always reading the file config.json, there are now several ways to configure, see docs [here]. You can keep using the old file by adding the code: Config.ReadFile('config.json')."
comment 2y ago · link · parent
For some businesses being efficient means there is a side-effect of destroying the planet. For others it's causing customers/employees long-term health effects like cancer. Many industries that are considered highly profitable have these types of things -- think pharmaceuticals (legal or not), lending, gambling.
"Success" in a business generally means being profitable. Usually this requires being "efficient" but being efficient isn't the goal. Neither is "Net good for society/humanity at large" -- at least not the main one, taking priority over being profitable.
comment 2y ago · link · parent
comment 2y ago · link · parent
Just to call it out: Having CI/CD doesn't mean you have to do all these things, or do scrum. It's imho just good engineering practice. I have it in my side projects, and I've had it at work on a Kanban-driven team (as well as on scrum).
It removes disputes over build process (eg, nobody can ever say "well, it complies on my machine"). It is a form of build/deploy documentation. It removes bottlenecks ("only Tom knows how to deploy that service, but he's on vacation") and stupid mistakes ("whoever deployed this last did it wrong and left a bunch of old files around").
I also have found deploying regularly is stress-reducing. For one, with CD the development environment is running the same steps, and we know it works because we do it dozens of times a week. The longer it's been since last prod deploy, the less confident we can be it'll go smoothly, whereas when it gets deployed every few days it becomes a non-event.
When something breaks, having only 1 or 3 changes makes it really easy to figure out why. Recovering after a big release with 40 PRs in it is absolutely painful.
None of this means you have to release everything on a regular schedule (like a sprint). You can still do long running branches or feature-flag things off, Just try not to go too long without deploying something.
comment 2y ago · link · parent
Identifiers can go a _long_ way, but not _all_ the way. I personally am a fan of requiring documentation on any public methods or variables/fields/parameters (using jsdocs/xmldoc/etc). Having a good name for the method is important, but having to write a quick blurb about what it does helps to make it even clearer, and more importantly, points out obvious flaws:
* Often even the first sentence will cause you to realize there's a better name for the method
* If you start using "and" in the description, it is a good indication that the method does too much and can be broken down in a more logical way
People often think properties are so clear they don't need docs, then write things like:
/** The API key */
string ApiKey;
But there's so much missing: where does this key come from? Is this only internal or is it passed from/to external systems? Is this required, and can it be null or empty? Is there a maximum? What happens if a bad value (whatever that is) is used? Is there a spot in code or other docs where I could read more (or all these questions are already answered)?This is stuff that as the original author of the code you know and can write in a minute or two, but as a newcomer -- whether modifying it, using it, or just parachuted in to fix a bug years later -- could take _hours_ to figure out.
comment 2y ago · link · parent
comment 2y ago · link · parent
Ha I did this too, starting from when I was pretty young. I had a dual-deck recorder, and would sometimes just record the radio for an hour or so, then later copy specific songs to a second tape. I remember getting so annoyed when the radio announcers would talk over the beginning/ending of a song I wanted.
Eventually I started buying music on CDs but still made mix tapes for years after that, because (1) I initially didn't have a portable CD player, but I had a walkman, (2) even once I did, I still usually preferred listening to a mix vs a single album, and (3) I didn't get a CD burner until their price became reasonable.
comment 2y ago · link · parent
I don't see this as being unique to HAOS, if a filesystem is corrupted in a certain way then _no OS_ is going to be able to boot.
There are distros that are specifically optimized for the Pi (with, eg specific logging choices [1]) that try to avoid problems (with trade-offs).
I've used something before (can't remember/find it now, but maybe thought it was in Yocto?) where there were 3 partitions: one was read-write used for persisting user data, and two were for the OS/apps. One would be live and mounted as read-only, the other was for the next system update using a blue-green deploy strategy. I think it also used RAM for log and temp files.
comment 2y ago · link · parent
I think the reason there's no other popular standard is you give up something. 128 bit gives a pretty low risk of collisions in almost all uses, but as you go smaller you start having to consider the specific scenario and impact, etc, which doesn't work well for a standard.
You could use another encoding (eg base64 or base85) to get it shorter, but you start sacrificing other things (case sensitivity, url-safeness) - again, not great for a standard.
comment 2y ago · link · parent
There's still apps at my company that use the server's local time for everything, built in a pre-cloud world. Now we "cloud host" many of these, by running sets of VMs with their clocks set to different timezones and setting up each tenant on one matching their zone. Unfortunately, it's a product that makes a fair bit of money but isn't our focus (not much growth or new sales), so it's never been worth it to actually do something better.
It's not just the timezone/DST issues, either. Another product I've worked on did the "reports at midnight" thing, but as it grew it became impossible, as it took hours to complete all reports for all customers. So some "scheduled at midnight reports" would happen at 1:28am. This alone isn't a huge deal, but many reports were time-dependent (eg: you get different results running at 1:28 vs 0:00), and for a subset of those it was actually a big problem. So some got fixed by removing the time dependency (basically making the queries in the report have end times vs using now()). Another workaround was to staggering times manually on other reports - run at 2:30am - but still many customers would still pick 1:00 or 2:00 (which is of course someone elses' midnight), and there were still big I/O bursts on :00, :30, :15 and :45, especially overnight.
My personal takeaway was to avoid building report systems like that, and try to do things like let the user pick "Daily" without picking the time-of-day. For time-sensitive "reports" it's been my experience that if you actually dig into the user needs, they're really looking for an "operational view", not a report. It requires specific dev work to build of course, but the end result is better both technically and for the customer, and is less overall work than all the fixes/workarounds needed when you try to shoehorn it in with all the other reports, especially as the usage grows.
comment 2y ago · link · parent
With domain-based ECUs, a failure means your locks OR windows OR windshield wipers stop working.
With zone-based, it could be the entire "west" zone that stops, which means you can't unlock the driver's door, open the windows, adjust the seat, and maybe even the ventilation fans don't work
I actually thought a lot of that was already on the CAN bus anyway, but my knowledge of cars stops there so maybe someone can fill in the gaps. Seeing only three "zones" is actually surprising to me. As I was reading I started forming the idea of a single bus cable that went around the car, with I/O modules anywhere there were physical buttons/lights/etc. There would just have to be a cost+weight balance of where it makes sense to stick a small I/O module vs run individual wires back to a bigger module. My assumption is as technology advances it becomes cheaper to have more small I/O modules with very short wire runs to buttons, but it doesn't seem like this is what they're doing.
I am also making the assumption this is "dumb I/O", and somewhere there is a "door lock" program that handles all locks/buttons. In the main computer you'd run all the domain programs individually/isolated, but there would still be a single program responsible for each domain, eg: all the locks (eg: considering button presses, fob buttons, door state, moving or not, etc, and act on the locks accordingly).
From a pure software point of view, if the east/west/south ECUs are actually doing the logic for their respective parts of the car, that seems like a nightmare to build: the code would end up being all partial and distributed. In the worst case you end up with bizarre bugs like "if you open the passenger door, then open the tailgate, then close the passenger door and press the lock button, the driver's door will lock but the passenger won't until you first unlock then shut everything" (which gets reported as "the locks are unreliable, some will randomly just not work every few days").