@vr-t8x15 @sun @feld > proper computer science courses tend to like C though from what i can tell
They do. And for some reason, few ever talk about the litany of design problems with it, or applaud them as laudable, instead of flaws. In many cases because they drank the kool-aid for a bunch of memes that haven't been true or relevant for decades at this point.
They do. And for some reason, few ever talk about the litany of design problems with it, or applaud them as laudable, instead of flaws. In many cases because they drank the kool-aid for a bunch of memes that haven't been true or relevant for decades at this point.
@sun @feld @vr-t8x15 @lispi314 just teach C++ concepts, then 🙃: https://en.cppreference.com/w/cpp/language/constraints
@sun @vr-t8x15 @lispi314 a lot of gaming C especially early gaming C is gonna be so weird
I think if you want to read quality C code you need to reach for something written by a good *nix C programmer
* OpenLDAP and LMDB by Howard Chu
* Certain OpenBSD things
* Anything by Poul-Henning Kampf
* C code written by TedU
I think if you want to read quality C code you need to reach for something written by a good *nix C programmer
* OpenLDAP and LMDB by Howard Chu
* Certain OpenBSD things
* Anything by Poul-Henning Kampf
* C code written by TedU
@Suiseiseki @sun @vr-t8x15 @lispi314 GNU crimes continue to go unpunished
https://raw.githubusercontent.com/coreutils/coreutils/master/src/true.c
https://cgit.freebsd.org/src/plain/usr.bin/true/true.c
https://raw.githubusercontent.com/coreutils/coreutils/master/src/true.c
https://cgit.freebsd.org/src/plain/usr.bin/true/true.c
@feld @sun @vr-t8x15 @lispi314 >Linking to github mirror rather than the real thing
https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/true.c
Every line is in its proper place to ensure that --help and --version operate as expected of GNU software.
"Free"BSD's version is flawed as it doesn't do this;
LANG=ja_JP.UTF-8 /bin/true --help
使用法: /bin/true [コマンドライン引数は無視されます]
または: /bin/true OPTION
終了コードは成功になります。
--help 使い方を表示して終了する
--version バージョン情報を表示して終了する
Your shell may have its own version of true, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
GNU coreutils のオンラインヘルプ: <https://www.gnu.org/software/coreutils/>
翻訳に関するバグは <https://translationproject.org/team/ja.html> に連絡してください。
詳細な文書 <https://www.gnu.org/software/coreutils/true>
(ローカルでは info '(coreutils) true invocation' で参照可能)。
LANG=ja_JP.UTF-8 /bin/true --version
true (GNU coreutils) 9.5
Copyright (C) 2024 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
作者 Jim Meyering。
https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/true.c
Every line is in its proper place to ensure that --help and --version operate as expected of GNU software.
"Free"BSD's version is flawed as it doesn't do this;
LANG=ja_JP.UTF-8 /bin/true --help
使用法: /bin/true [コマンドライン引数は無視されます]
または: /bin/true OPTION
終了コードは成功になります。
--help 使い方を表示して終了する
--version バージョン情報を表示して終了する
Your shell may have its own version of true, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
GNU coreutils のオンラインヘルプ: <https://www.gnu.org/software/coreutils/>
翻訳に関するバグは <https://translationproject.org/team/ja.html> に連絡してください。
詳細な文書 <https://www.gnu.org/software/coreutils/true>
(ローカルでは info '(coreutils) true invocation' で参照可能)。
LANG=ja_JP.UTF-8 /bin/true --version
true (GNU coreutils) 9.5
Copyright (C) 2024 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
作者 Jim Meyering。
@Suiseiseki @feld @sun @lispi314 if i were involved in bonsai this is the part where i'd say that information about versioning, licensing, help, and localizations of all of the above would be the jobs of manpages, not --help or --version.
@vr-t8x15 There is no guarantee than a man is installed on a system with GNU coreutils installed, nor the packagers haven't decided to remove the manpages and add them to a -doc version of the package (that may not be installable if you don't have internet right then).
Meanwhile, those kind of packagers can't work out how to strip out gettext files usually.
For every binary on the system, unless there is a legitimate technical reason not to, the license should be printed when --version or --license is passed, preferably optionally in the users preferred native language.
The manpage is really for more detailed information on software usage and GNU has those too.
Meanwhile, those kind of packagers can't work out how to strip out gettext files usually.
For every binary on the system, unless there is a legitimate technical reason not to, the license should be printed when --version or --license is passed, preferably optionally in the users preferred native language.
The manpage is really for more detailed information on software usage and GNU has those too.
@Suiseiseki @sun @vr-t8x15 @lispi314
> Your shell may have its own version of true, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
It's true. It has no options. It was never supposed to have any options. This is just gaslighting the user.
> Your shell may have its own version of true, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
It's true. It has no options. It was never supposed to have any options. This is just gaslighting the user.
@feld >It's true. It has no options. It was never supposed to have any options.
GNU's Not Unix and therefore arbitrary limitations set by Unix are ignored, so claims like "It was never supposed to have any options" are ignored and the free software license printing flags are added no matter the seething.
>This is just gaslighting the user.
>It's gaslighting the user to helpfully tell them the license of all software they execute at only a --version invocation away.
GNU's Not Unix and therefore arbitrary limitations set by Unix are ignored, so claims like "It was never supposed to have any options" are ignored and the free software license printing flags are added no matter the seething.
>This is just gaslighting the user.
>It's gaslighting the user to helpfully tell them the license of all software they execute at only a --version invocation away.
@Suiseiseki they don't need to know the fucking license of something that just returns a 0 exit code
the code is trivial and not patentable; the license is pointless
the code is trivial and not patentable; the license is pointless
@feld >the code is trivial and not patentable
Software is not a patentable subject manner, as software is math - too bad the USA patent office awards them anyway.
A patent on one program wouldn't be a big issue - the issue is that patents restrict all software and even hardware.
The relevant law here is copyright.
While "return 0;" certainly isn't creative enough to qualify for copyright, based GNU developers decided to exercise their creativity and write yet another masterpiece (https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/true.c) that is creative enough to qualify for copyright and therefore it print the license.
Software is not a patentable subject manner, as software is math - too bad the USA patent office awards them anyway.
A patent on one program wouldn't be a big issue - the issue is that patents restrict all software and even hardware.
The relevant law here is copyright.
While "return 0;" certainly isn't creative enough to qualify for copyright, based GNU developers decided to exercise their creativity and write yet another masterpiece (https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/true.c) that is creative enough to qualify for copyright and therefore it print the license.
- replies
- 0
- announces
- 0
- likes
- 1
@sun @feld @Suiseiseki @lispi314 @vr-t8x15
Jim was the only teammate whom I really hated. Moving to France was the perfect punishment for him.
Jim was the only teammate whom I really hated. Moving to France was the perfect punishment for him.
@sun @Suiseiseki @feld @lispi314 @vr-t8x15 I meant to include that I do not support a death penalty for him.
@whiteline @feld @sun @lispi314 structured programming is not how computers work, teach the first years goto
@hayley @feld @whiteline @lispi314 yall should learn that after you learn how to make reliable software
@sun @vr-t8x15 @lispi314
it's entirely pointless if you have a good type system; just that + simple procedural design is all you need (funclangs better for some usecases but
and is becoming more and more an active harm as multithreading and parallelism become necessary everywhere. like bartosz milewski comment, "the core concept of oop is abstraction over data races
it's entirely pointless if you have a good type system; just that + simple procedural design is all you need (funclangs better for some usecases but
and is becoming more and more an active harm as multithreading and parallelism become necessary everywhere. like bartosz milewski comment, "the core concept of oop is abstraction over data races
@YTFoidLover1488 @vr-t8x15 @ageha @lispi314 most people are bad programmers and java makes them productive programmers. you can try ramming good languages down their throats, won't work.
@sun @ageha @lispi314 enterprise software development, where creativity goes to die and management DESPERATELY has to contrive ways to make codebases stand the test of time while firing the experienced people and knowing nothing about how computers actually work. OOP *is* usable.
there is no sarcasm in that. /srs. OOP works great in enterprise. kind of like how lobotomies work great to increase the productivity of enterprise managers AND to ameliorate the suffering of employees
there is no sarcasm in that. /srs. OOP works great in enterprise. kind of like how lobotomies work great to increase the productivity of enterprise managers AND to ameliorate the suffering of employees
@sun @vr-t8x15 @lispi314
am saying oop was much more difficult for me to pick up than anything else because i came to it second, after structured C and functional languages. it isn't actually easier; most people just learn it first
go hints at what a simple procedural language can be. just do that but with better type system and standard lib (and without the bizarre needlessly-bad smaller design choices
am saying oop was much more difficult for me to pick up than anything else because i came to it second, after structured C and functional languages. it isn't actually easier; most people just learn it first
go hints at what a simple procedural language can be. just do that but with better type system and standard lib (and without the bizarre needlessly-bad smaller design choices