4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions
comment 2y ago · link · parent
I think I speak for basically the entire history of programming when I say that ugly solutions exist and are widely used throughout our profession.
> while the problem that needs to be solved is ugliness
That's your opinion. I never argued that this hack solves ugliness. I argued that it solves the problem of not having a way to comment in JSON...which it does. I never claimed that it does so in a non-ugly or even good way.
> This specific brand of cleanliness does have a bunch of issues
Issues so massive they, imho, make it not worthwhile to use. As in, I rather miss the ability to write comments or write them with ugly hacks, than put up with YAMLs nonsense.
The fact that better solutions exist (again, like TOML) make this worse.
comment 2y ago · link · parent
I haven't ignored it, as shown by us discussing it here.
And no, YAML isn't a better way. It does commenting better, true, and at the same time, it does so many things wrong, that are absolutely no problem in JSON, that it becomes a treatment worse than the disease.
comment 2y ago · link · parent
No, you were pointing out that some people won't like that solution. Which is completely fine. And yes, that solution is ugly as hell, and it is a dirty hack, and I don't recommend actually doing that if there is a better way (like TOML).
But it does work.
comment 2y ago · link · parent
I have no idea why people started using it. "bUt jSOn dOeSn'T HaVe cOmMenTS" ... oh gimme a break! You want a comment in JSON?
{
"//": "This is a comment explaining key1.",
"key1": "value1",
"//": "This is a comment explaining key2.",
"key2": "value2"
}
There. Not so hard. Writing a config parser that just ignores all keys starting with "//" is trivially easy...if it's necessary to ignore them at all that is, because most config parsers I have seen couldn't care less about unknown keys, let alone repeated keys.So what other "reasons" were there for YAML?
Oh, the human readbility thing. Yeah. Because syntactically relevant whitespace is such a joy in a data serialization format. It's bad enough when a programming language does that (and I am saying this as someone who likes python), but a serialization format? Who thought that would make things easier?
And then of course there are other things filled with joy and happiness...like the multiple ways to write "true" and "false", because that's absolutely necessary for some reason.
"Oh but what about strict-yaml?!" I hear the apologies coming...great, so now I have the ambiguitiy of what parser is used on top of the difficulties introduced by the language itself. Amazing stuff. If that's the solution, then I'd rather not have the problem (aka. the language).
But despite all[1] these[2] problems[3] and more, YAML somehow became the goto language for configuring pretty much everything in DevOps, first in containerization, then in cloud, and everything in between. And as a result, we now have to make sure our config template parsers get whitespace right. Great.
So bottom line: The problem here is maybe 1/3 the complexity of config files and 2/3rd the fact that YAML should have never been used as a configuration format in the first place. It's benefits are too small, and it's quirks make too many problems for that role, outside of really trivial stuff like a throwaway Dockerfile.
Want config? Use JSON. And if you need something more "human friendly", use TOML.
[1]: https://github.com/cblp/yaml-sucks
[2]: https://changelog.com/posts/xml-better-than-yaml
[3]: https://noyaml.com/
comment 2y ago · link · parent
Given that there is no comprehensive understanding of how human learning works, let alone how humans operate on and integrate on what they learned in a wider context...how do you know?
> Humans work by abstracting concepts in what they see
Newsflash: AI models do the same thing. That's the basis of generalization.
> ML models are closer to highly advanced collage makers that take known images and blend them together
Wrong. That's not even remotely how U-Net based diffusion models work. If you disagree, then please do show me where exactly the source images from where the "collage maker" takes the parts to "blend" together are stored. I think you'll find that image datasets on the scale of LAION will not quite fit into checkpoint files of about 2GB in size (pruned SD1.5 checkpoint in safetensors format).
comment 2y ago · link · parent
Then please, feel free to explain the deep differences.
> That is precisely why we should not be making this comparison.
Wrong. It's precisely why the claim "there is a big difference" doesn't have a leg to stand on. If you claim "this is different", I ask "how?" and the answer simply repeats the claim, I can apply Hitchens Razor[1] and dismiss the claim.
comment 2y ago · link · parent
Which isn't on Hiatus, doesn't require GTK, and has switchable Split views (aka. dual-pane), and tabs (where each tab may have its own split view).
comment 2y ago · link · parent
No, it's not. It's merely pointing out the similarity between the process of training artists (by ingesting publicly available works) and ML models (which ingest publicly available works).
> First, you need to prove that generative AI works fundamentally the same way as humans at the task of learning.
Given that there is no comprehensive model for how humans actually learn things, that would be an unfeasible requirement.
comment 2y ago · link · parent
So? This internet existed LONG before modern search engines. We found each other, and still do. How? Links, that's how. One breadcrumb leading to the next.
Plus, it's not as if search engines are the great windows to the interwebs they once were, and that situation isn't improving:
https://www.fastcompany.com/90673924/its-not-just-you-google...
https://marketvantage.com/blog/google-search-is-getting-wors...
https://www.businessinsider.com/google-sucks-search-engine-c...
> social sites don't allow links to it
Same question as with the point about search engines, only with an even bigger "So?". So called "social" sites are not good entrypoints into the web as it is, and have every incentive not to be. They are ad-businesses, and their revenue depends on keeping users in their ecosystem, not guiding them somewhere else.
> even your browser lacks any advanced way to deal with it (recommendations, notifications, editing, uploading, etc.),
Excuse me?
Almost every major browsers allows using RSS feeds. They all have bookmarking functionality, usually tag- and searchable. And I am pretty sure, they all know what an `<a>`nchor is ;-)
As for uploading and editing: We have been doing this via webmasks for well over a decade, this is a solved problem. And it's not like I need the editing mask my self hosted blog-software offers to edit a page that is essentially a markdown document.
> Doesn't help that the retention on the open web is pretty bad.
Compared to what, the retention in the "closed" web? Where everything gets flushed out of the recommendation feed as soon as it isn't making the ad-companies enough money any more? Oh, sure, the content may still be there somewhere, but who knows, since the searchability of the whole thing sucks.
In contrast, some resources of the "open" web I have in my bookmarks, rival the age of some of the "closed" web companies, and are still up and running. That's because it doesn't really take much to run a small website based on simple and relieable technology.
And even if they do go belly-up at some point, there is a good chance that their simple and relieable structure has been picked up and archived with all relevant information by any of the crawl-and-archive projects around. In contrast, please show me how I can reliably cite information from some random social media feed several years later.
> It might not be dead yet, but it's certainly not in a very healthy state either.
On the contrary. In recent years, with the ever declining quality of search results, the ever increasing amount of low-quality machine-generated bloat on the web, and the toxicity and tribalism on "social" media, there has been a veritable resurgence of the simple, open, organic web. I see alot of people making new small community sites and interesting projects. And the glue holding all of these together making it discoverable, aka. blogs is in better shape than ever.
As I said before, the amount of clicks doesn't indicate health, and the attention of the masses don't really matter to resources that don't have to justify their existence by generating as much ad-revenue as possible.
comment 2y ago · link · parent
The web, the REAL web, that weird and almost alive thing where people share and create and tell their stories ... never went away.
And it likely never will.
Sure, it's not the web that the masses choose to use. That's fine. It doesn't need to be. Same as everyone is free to decide whether they want to munch fast food, or eat a fine dinner, everyone can choose the web they deserve.
Relevance/Quality/Importance and Clicks may be conflated in the ad-businesses that call themselves social media, but it doesn't matter to me if my blog is seen by 10 people or 10E6.
comment 2y ago · link · parent
So if someone makes a forgery of, say, a picasso, who do we blame: The forger or the brush?
> This isn't complicated
This concerns copyright law, which is handled case by case, and deals with very fuzzy definitions like "fair use" or what constitutes "transformative works", and things like "impact in the marketplace".
So yes, this is a very complicated topic.
comment 2y ago · link · parent
There are more than enough maniacs who would love nothing better than being allowed to put the pedal to the metal whenever they feel like it, and who don't give a damn about other peoples safety and lives be damned.
There are also people who would like to live in a society where they are allowed to hit (or do worse things to) anyone that annoys them for whatever reason.
There are people who think slavery is a great idea, or who think women should be subservient to men.
comment 2y ago · link · parent
comment 2y ago · link · parent
The reason for climate change isn't a lack of technical innovation. We have ALL the innovations to change things. The reason for climate change is short-sighted greed, and a lack of political will, not a lack of scientific or technological capability.
comment 2y ago · link · parent
Yes, I know, you repeated it often enough. And I keep not sharing that opinion of yours.
> Why do you think there are so many translation layer efforts for JavaScript?
That's a really good question, given how little value many of these add depending on the context they are used in, and how many hoops some of them make developers jump through to do things that would be plain simple using less sophisticated libraries instead of frameworks, or go with plain JS in the first place.
Luckily, I answered that question several times in this thread already, so I don't need to repeat myself :-)
> I am going to go out on a limb and claim that all of you that downvote me have completely missed this point.
Or, and hear me out on this: Maybe the people downvoting completely understand your points, and simply...disagree?
> This is not what people are doing.
Yes, this is what people are doing, which is exactly why things like lightweight JS frameworks and uncluttered languages that come batteries included like Go are being so successful.
comment 2y ago · link · parent
Yes, it pretty much is.
Because "needs" implies a non-negotiable requirement. I need to breathe to live. I need to study to learn. I need to open the door to leave the house.
If I can write useful software in a language without using frameworks, then said usage is not a non-negotiable requirement.
comment 2y ago · link · parent
Both Javascript and Java were invented in 1995, pretty sure that's not in the 19th century: https://en.wikipedia.org/wiki/19th_century
> This makes me bitter.
Why? You do you. If you want to use frameworks, that's great. Have fun.
If you re-read my post, you may also discover that I am not argueing against frameworks. I argue against over-using them. I argue against needless towers of abstractions. I argue against projects getting stuck in architecture-astronaut-land and analysis-paralysis, where trying to hammer the business case in shape so it fits the technology used, instead of the other way around as it should be, eats up precious, and expensive developer time. This is what I saw a lot of in Java-Land.
Another beast of the same ilk, only with a slightly different head, is framework-jumping, where people bandwagon to a new shiney new thing, that does something slightly different than what exists already, but requires re-learning entire architectures. Bonus points if this leads to re-writing existing, battle tested code just so it fits a new paradigm. This is what I see alot of in Javascipt-Land.
The fact that people are able, willing, and actually do build cool, valueable and inventive things while trying to minimize the amount of noise between them and their tech-stack, is not something that disappoints me. In fact, this is why I largely transitioned to Go as one of my primary languages. And I get the same feedback from many people in many other companies and roles.
comment 2y ago · link · parent
Couldn't agree more.
With how far on-the-fly code generation powered by LLMs has gotten, the oh-so-dreaded "boilerplate" has become an absolute non-issue, especialy in straightforward, explicit languages with little magic like Go, which naturally lend themselves to this kind of code generation.
Best of both worlds: Explicit instructions and less "magic at a distance", and productivity by getting things done fast.
comment 2y ago · link · parent
Wow, that didn't take long at all.
Also, take a look at this: https://news.ycombinator.com/hn.js
That's the JS that powers this very well known, and very widely used website. It's all of 152 lines, including whitespace. And it uses plain Javascript. It's so small, and so simple, it doesn't even need to be minified.
So in conclusion, no, JS isn't "too weak", and neither is Java for that matter, and yes people can and are building great products with plain JS. And I write that as someone who really despises both of these languages.
comment 2y ago · link · parent
No, they are not.
People have built, and are still building, amazing products using plain JS. They are also doing so using very simple, lightweight frameworks.
Abstractions are useful and can increase productivity.
The problem is, abstractions have a diminishing return. Using more and more of them stops being useful, and starts becoming detrimental.
But, alas, doing so creates the illusion of productivity, because look at all that code I am writing which doesn't actually solve the business problem, but satisfies the abstraction! Look at how amazingly tall my tech-stack tower is, and nevermind all the SRE hours this monstrosity eats, it's state-of-the-art after all! It also makes people feel very smart, because they learned how all these abstractions work, even though nearly the only application of that knowledge is "how to use these specific abstractions". It also creates moats, which a lot of people seem to like (cue "Looking For Frontend Dev, minimum +6 years experience in framework-that-came-out-last-year" - Joke).
And lastly, "big tech" are using these abstractions, so "This-Is-The-Way", and nevermind that these companies exist, and have to solve, a completely different problem space.