I wonder who first added that macro? Was it there from the beginning?
Just random thoughts...
593 karma · joined April 10, 2023
I wonder who first added that macro? Was it there from the beginning?
Just random thoughts...
The link gens inherently accept relative paths (foo) and output relative links with appropriate adjustments (foo.png?v=abcdef), though they can generate fully-qualified links if circumstances warrant (eg I often have a global shared css file for theming, though that's all I can think of offhand other than "/" for back-home links). The module can then be mounted under /bar/blort, or wherever else, and the links remain relative to wherever they are mounted.
On occasion I do hardcode links for whatever reason; my rule of thumb is relative links for same level or deeper, or root-anchored if you're referencing a global resource outside the current path, but there aren't many of those in my apps. A rare exception might be something like an icon library, but I tend toward font-based icons.
To put the rule more succinctly, I never use "../foo". Going up and then over in the hierarchy strikes me as a recipe for bugs, but that's just instinct.
I also never use fully-qualified (including hostname) urls to reference my own assets. That's just madness, though I vaguely recall that WordPress loves to do crap like that; there's a reason I don't use it anymore. :)
So the main difference if I understood your link correctly, would be that I would have maybe one or two items in /static/assets by root-anchored urls, and the rest accessed as /path/to/module/assets/whatever (edit: or just assets/whatever from within the module).
Because I'm doing this in go, the module's assets live where the code does and gets embedded in a reasonably standard way. I actually tend to use git commit as my cache buster to avoid having to hash the content, but full hashing can be done as well very easily just by changing the generator functions.
I can then just import the module into an app and call its associated Route() function to register everything, and it just works. Admittedly it's very rare that I reuse modules between apps, but it's easily possible.
For background to my thought process, I originally started using the link gen paradigm long ago to make it easy to switch CDN's on and off or move between them, back before whole-site proxying was considered best-practice. The rest is just a desire for modularity/encapsulation of code. I like to be able to find stuff without having to spelunk, and keeping assets together with code in the source tree helps. :)
(edit: I should clarify that I'm mostly working in Go these days, and all my assets are embedded in the binary as part of compilation. That does make some of this much easier to deal with. Javascript-style build mechanisms tend far too much toward "complex" for my tastes.)
Besides that, they are a very basic part of the spec, and I consider anything that breaks them to be truly fundamentally broken.
Why someone would want to simulate a slime mold is something I don't understand, but more power to ya. =)
Most employers have less than zero interest in paying coders to document in my experience. If they want documentation to exist, they hire a technical writer.
Sadly, I've never met an employed tech writer (and no, journalists don't count).
They should have done that months ago... Maybe they would have been acquired without all the drama...
I often wonder how many hiring managers are actually good interviewers, in-person or not, but I digress...
Seeing the truly bad hires dragged along to the detriment of the rest of the team is a sore spot for me, though. It happens way too often in my experience.
Ask me how I know... :)
It's been my experience that those who can build good, reliable, high-quality systems, can do so either in the cloud or on-prem, generally with equal ability. It's just another platform to such people, and they will use it appropriately and as needed.
Those who can only make it work in the cloud are either building very simple systems (which is one place where the cloud can be appropriate), or are building a house of cards that will eventually collapse (or just cost them obscene amounts of money to keep on life support).
Engineering is engineering. Not everyone in the business does it, unfortunately.
Like everything, the cloud has its place -- but don't underestimate the number of decisions that get taken out of the hands of technical people by the business people who went golfing with their buddy yesterday. He just switched to Azure, and it made his accountants really happy!
The whole CapEx vs. OpEx issue drives me batty; it's the number one cause of cloud migrations in my career. For someone who feels like spent money should count as spent money regardless of the bucket it comes out of, this twists my brain in knots.
I'm clearly not a finance guy...
That said, were you using TLS? I'd be curious to know how that impacts power consumption during HTTP calls.
They'd probably have to do that anyway.
I like their OS, but it would be a hard sell for me to ever choose to migrate to their productivity software again.
If they were legit, then I don't see the need to assign the patents they own to someone else before litigating. Unless there's a gotcha, and it's a scam somehow.
Very strange, and just another reason why patents should probably be non-transferrable and "use it or lose it".
Also, for a project like HLS, you don't fail until you stop trying (or get someone killed, but SpaceX has been pretty good at not killing astronauts).
It's about the ability for the voter to determine that their own part of the process -- the recording of their own vote -- is done correctly in every respect.
Each step of the system has to be verifiable as correct for the system to be trustworthy. As it stands right now, I cannot visually verify that my own vote produced a correct printed ballot. I have no way of doing that.
This removes one of the most critical safeguards. If something in the software (malicious or otherwise) records an incorrect barcode, I have absolutely no way of knowing.
That's a problem.
Garbage in, garbage out.
Tell me this: what is the advantage of a barcode, over a scantron-esque system where I can see which item I chose because a dot is filled in?
The scantron-esque system is still efficiently machine readable; we've had scantron since I was a kid. The difference is, I can verify with my own two eyes that the information is encoded correctly on the ballot I submitted if it's done scantron-style.
I cannot do that with barcodes.
It adds another layer of safety. Do we still have to be able to trust the rest of the system? Yup. But I cannot trust anything at all if I cannot even verify that my vote was submitted correctly in the first place.
JMHO.
I absolutely hate that fact. I am a human, I cannot read barcodes without a computer. Therefore, I cannot tell if the important part of what was recorded is correct.
Not sure if Colorado's are the same...
Now soups, veggies, artichokes, enchiladas, ... For those things, the instant pot is awesome. =)
The rice cookers I've seen take twice as long to make rice that is by no means twice as good.
To each, their own. My Mom loves the rice cooker I gave back to her because it took too long to cook rice. =)
The language (or the rest of the stack even) is rarely a barrier to success. What matters are a good idea, good motivation, and decent availability of competence.
JMHO.
I would consider it foolish to disregard the metrics of a company that holds in the neighborhood of 75% of market share in a critical tech market.
Comparing Nvidia to Intel is more difficult because Intel is comparatively a bit player in the GPU market. Adding NVDA is not the issue; it's an important market segment, and they're the leader. Deleting Intel is an issue. CPUs are and will remain a vital component of the tech market, and thus, so will Intel for the foreseeable future.
So long story short, this makes the Dow start looking like a better indicator of hype than overall market health IMHO. I don't want my market index to cherry-pick only the ones that are rising.
You are certainly free to disagree ;) Again, I'm hardly an expert investor.
And they've had bad stretches before. I myself am wondering, but I wouldn't count them out just yet.
All this means is that the Dow is currently chasing hype.
JMHO (not an expert investor, this is not advice, ...)
I'm semi-retired now...
(edit: I forgot to note that the "let's not" part was always overridden by "You're wrong, this will fix it. Do it!" by management. Then we would eventually find and fix the actual problem (because it didn't go away), but the cluster size -- and the cost -- would remain because "No, it was too slow with so few replicas".)