214 karma · joined December 14, 2023
,,
And yeah, dealing with separators is annoying, but pretty much every reader supports quoted values and escapes (not every writer cares up add them, though).
In practice I use csv to process large amount of tabular data (like logs, events, etc) where I care about greppability and performance more than about potential for 0.001% of corrupted data. YMMV of course, if getting it 100% right is important use something else (JSON is not without sins too, consider that JSON numbers are often parsed as floats).
That also can't be healthy.
But I'm interested to hear what you have to say about that. Why did social media enable fascism now, and why did fascism exist before it?
The first code is equivalent to:
list_multiply([x], 4)
(the function is actually called list.__mul__, but that's an unimportant detail). The latter is a syntax sugar for:
out = [] for _ in range(4): out.append(x)
(actually a bit more complex, but close enough).
When you understand it, the behavior is obvious in both cases.
Well, of course. It's a shorthand for duplicating the list elements four times. In this case, the list contains a single reference to an empty list, do the result contains four references to an empty list.
Overall it's a very useful feature and I don't think it's that surprising. It's pretty obvious [x]4 will reuse the same reference. Just like manually adding "x" four times will.
And I use opcode references [1] very often (sometimes daily, depending on the project). I even wrote my own disassemblers. But I mostly use opcode references for manual cross checking, so maybe I'm not a target of this project?
[1] My favorite one for x64 is https://ref.x86asm.net/coder64.html
One upside is that because it's hard to write complex programs in nix, people don't do it (unless really needed). So the nixos tutorials and configuration examples on the internet are usually pretty simple. This is good for beginners, and nixos is already a huge undertaking.
With lisp I'm sure many of us would get crazy with abstractions.
I'm sure I'm missing something, and it's possible that they don't scale well, but I prefer it to any other could system for small C projects.
[1] I'm pretty sure outlook users miss good GPG support, at least.
Wow, now I feel old more than any "movie X was released Y years ago" factoid could make me feel.
* Google docs are uglier than Microsoft word documents. This matters when I prepare an offer that I want to send to a client, and it should look good.
* Google slides are hideous, and the only reason I get away with using them is because programmers (including me) have no taste[1]
* Related to the looks, I sometimes buy paid document templates that I can use to format my offers. They often have an option to download a docx file, but it's complex through that you can't important it to Google docs without breaking it completely.
* Word/Libreoffice works offline (maybe docs with serviceworkers too? It never worked for me when I needed it).
* You can use word to generate documents using a template, don't think it's possible with Google docs
* Macros are not supported in Google docs
And I'm a complete noob when it comes to document editing software and actively avoid it. I can only imagine how much powerusers miss.
[1] https://medium.com/@laurajavier/google-slides-is-actually-hi...
* A lot of software used by them is certainly Windows only (they will have to find alternatives, change their workflows or invest in some windows virtual machines)
* Windows tooling for organizations is much more mature. There's a reason virtually everyone uses AD.
* Linux is very focused on user freedoms. This is not usually important in the office. But freedom to configure things is a freedom to break thinks, and cause admin headache.
The problems are solvable, but it doesn't mean they don't exist.
Oh and I love nixos, and I always wonder how realistic would it be to use it in a company for management of thousands of desktop machines. Sounds like it would be perfect for it, but i don't know any stories.
* My employer has no say in my private account. They can't force my to change my private bio or profile name, for example
* It's clear which code I authored as a part of my employment and which I did on my own after hours (extremely important for me).
* I work in IT security do I should give an example :). Some projects my company hosts on GH are not public (yes), or some projects I have access to because of my work. I shouldn't touch them after I leave my current company, or access them from private devices.
[1] as in "hacker news"
But to me "bored" sounds like a bad thing, so maybe I'm just arguing semantics.
Of course I agree this market should be regulated - like we regulate it in Europe - but at the end some company is investing into drug research in order to make a profit.