/g/ - Technology

install openbsd

[Make a Post]
[X]





Naming General Nanonymous No.6264 [D][U][F][S][L][A][C]
File: 7b4dfba3d2788e7b74f348d68023a507c7a8b8c069f7459bd7d0958624c4c5ca.jpg (dl) (612.34 KiB)
Naming is always been a fundamental part of information technology, from naming server and devices, to naming variables and functions, to naming directories and files and organizing data, identifying information is an important part of modern technology.
How do you name things nanons? Discuss also best practices in general.

Personally i name devices as animu grills, i name variables all undercase with underscores like this "nanochan_g" cause i am lazy and i don't have a specific method for file and folders. Judge me.

Nanonymous No.6269 [D] >>6354 >>6577
>naming your server
UNIX braindamage. If i need to SSH into shit, I write "ssh niggerjew", which works with a config like this:
Host niggerjew
ProxyCommand connect -S 127.0.0.1:9050 blahblahblah.onion 22
I'm sure it's insecure too because SSH is fucking retarded and UNIX makes IPC a nightmare, but that's my attempt to mend UNIX to deal with this solved problem.
>devices
You mean naming your phone or something? That's fucking retarded. The Windows meme where you have to setup a name as part of installing the os is retarded too. Turn on wifi sniffer and laugh at all the retards broadcasting their name wherever they go as well as the names of every WIFI network they ever connected to.
Mac addresses are fucking retard shit too.
>naming variables and functions
Classic hax0r culture is to pick {nigger,kike,chink,jew}. Whereas "hacker" culture picks {foo,bar,baz}.
>naming directories and files and organizing data
Filesystems are UNIX braindamage. What do you want to store? Fucking music? Just click the save button and done. You can find it in the list of most recent files or by name or artist or other tag. Folders are for fucking boomers who have to struggle with trying to fit physical bureaucratic concepts (because naturally they pick the most retarded pointlessly complex crap for their analogy) to computers.

Nanonymous No.6274 [D] >>6283
You have so little going on in your life that you decide to rage about fucking folders?

Nanonymous No.6277 [D]
I name OP dFag.

Nanonymous No.6278 [D] >>6354
Let's all love Lain!

Nanonymous No.6283 [D] >>6465
>>6274
Folders are shit you retard. Try coming up with a valid counterargument. Or contiue putting all my programs in /bin, libs in /lib, etc and hoping they don't collide with each other.

Nanonymous No.6354 [D][U][F]
File: 913a04084965c8ac36df60f5836fd2d2dba23267812aeb03f6b4a573cf473950.png (dl) (61.66 KiB)
>>6269
First of all don't derail my thread with your anti-unix braindamage, thanks.
>devices
>You mean naming your phone or something?
I mean, computers, hard disks, usb keys...
>That's fucking retarded.
That only shows that you have one device at most, try having lot og HDDs and computers, then you're gonna start to need names.
>{nigger,kike,chink,jew}
>{foo,bar,baz}
???
Did you ever write software? Or are you trolling?
I was talking about naming styles like putting a "_" at the start of class members or using capitalization styling like camelCase or PascalCase or using different styles for different kind of variables etc.
>Filesystems are UNIX braindamage. What do you want to store? Fucking music? Just click the save button and done. You can find it in the list of most recent files or by name or artist or other tag.
That is one of the most stupid things i ever read, how many files do you have on your pc? I have hundred of thousands on my HDDs good luck finding stuff with your method.
Tags are good i agree with that, but a hierarchical structure where files are contained is necessary once you start having lot of files, cause at a certain point you have so many tags that you start forgetting even just what tag you are supposed to search, while with a hirarchy aka directories you can always find stuff no matter the size.
tl;dr tags does not scale
>>6278
Let's all love Lain!

Nanonymous No.6361 [D] >>6362 >>6464
>First of all don't derail my thread with your anti-unix braindamage, thanks.
If you have to name something on a computer it's most likely invalid. Not only that but the practice probably descended from UNIX.
>I mean, computers, hard disks, usb keys...
Why the fuck would you name a USB key or HDD.
>I was talking about naming styles like putting a "_" at the start of class members or using capitalization styling like camelCase or PascalCase or using different styles for different kind of variables etc.
I do whatever comes to mind at the moment. At first glance, such issues don't matter, and at second glance (stackoverflow webshotter nigger culture), they do matter cus muh bes practices. But at third glance, they don't matter again.

>I have hundred of thousands on my HDDs good luck finding stuff with your method.
LMAO. You're reasoning at the level of syntax and nothing to do with reality. Even if you want to categorize things, folders restrict you to one category so that's already a non-starter.
And what the fuck does "find" mean? Let's look at music for example:
You download from 100 different sources. There is no consistent file naming format or folder format. So unless you manually went in and created folders like a fucking moron, you will never find anything.
Now if you used ID3 tags, most songs would be tagged correctly from the get-go, and the other ones you can tag as needed or use musicbrainz to automatically tag.

Now let's compare the process of tagging vs putting shit in muh folder heirarchy

We just downloaded the album Then Comes Afflicition to Awaken the Dreamer by Twisted Into Form. Oh the uploader is gay and didn't tag it. Let's pretend for some reason musicbrainz didn't solve the problem for us so we have to manually tag things.

Files
1. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Instinct Solitaire.mp3
2. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Torrents.mp3
3. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - The Thin Layers Of Lust And Love.mp3
4. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Tear.mp3
5. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Manumit.mp3
6. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - The Flutter Kings.mp3
7. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Erased.mp3
8. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - House Of Nadir.mp3
9. Twisted Into Form - Then Comes Afflicition to Awaken the Dreamer - Coda.mp3
Steps
1. dump files in /music where music sorting program reads
2. a bunch of new unsorted shit shows up in a list
3. select it all and click tag hotkey
4. auto select pattern [<tracknumber>. <artist> - <album> - <title>.mp3] from list and apply it
(it was already auto selected because it's the only pattern that matched. you just have to confirm it)
(it was already in the list because you've already got music in this form and 100 others and had to make a pattern for it)]
add tags:
5. [year] [2006]
6. [genre] [metal]

Files
1. Instinct Solitaire.mp3
2. Torrents.mp3
3. The Thin Layers Of Lust And Love.mp3
4. Tear.mp3
5. Manumit.mp3
6. The Flutter Kings.mp3
7. Erased.mp3
8. House Of Nadir.mp3
9. Coda.mp3
Steps
1. dump files in /music where music sorting program reads
2. a bunch of new unsorted shit shows up in a list
3. select it all and click tag hotkey
4. auto select pattern [<tracknumber>. <title>.mp3] from list and apply it
add tags:
5. [artist] [Twisted Into Form]
6. [album] [Then Comes Affliction to Awaken the Dreamer]
7. [year] [2006]
8. [genre] [metal]

To find all music by Meshuggah
1. search [artist:Meshuggah]
To find all albums named Pikachu:
1. search [album:Pikachu]
To find all tracks named Blah:
1. search [track:Blah]
To find all music with artist,album,track,or any other field containing "bleh":
1. search [bleh]
To find all music in year 1999
1. search [year:1999]
To find all metal music in year 1999
1. search [year:1999] [genre:metal]

Now explain how you would do this with heirarchy instead of tags and I'll tell you why it's shit (there are too many ways for me to list and they're all shit in different ways). You have to do _all_ the examples. Your system can't just work for one.
Give me any example and I'll show you how it's done in my system (this entire example is with the trash music player Quodlibet, which is already 100x ahead of UNIX braindamage. note the auto select pattern feature doesn't exist, but is trivial to implement if you don't be an autistic retard and try to get better than N*M runtime which is already good enough for all real world cases).

>Tags are good i agree with that, but a hierarchical structure where files are contained is necessary once you start having lot of files, cause at a certain point you have so many tags that you start forgetting even just what tag you are supposed to search, while 3
Even if you needed heirarchy you could literally just name your tag muhfolder/muhsubfolder/whateverthefuck

Nanonymous No.6362 [D] >>6363
>>6361
>what are bindfs and unionfs
Remember, UNIX is an alpha for Plan 9.

Nanonymous No.6363 [D]
>>6362
yeah btw almost everything i wrote can be done with a generic system instead of reimplementing it for music, movies, books, etc. i wont bother to learn about plan9's solution, especially after using it's mom UNIX and dad's (or uncle or whatever the fuck) product Go

Nanonymous No.6464 [D]
>>6361
Nobody is going to read several paragraphs of your shitty ramblings.

Nanonymous No.6465 [D]
>>6283
> Folders are shit you retard
Not an argument

Nanonymous No.6527 [D]
>its too long
>its too short
literally the most retarded samefag i've ever seen

Nanonymous No.6542 [D][U][F] >>6617
File: 08462910fb279ce13e33d607da0ee8b2b0c084a94b8f008e9ae2dfb6d63cc264.jpg (dl) (23.75 KiB)
>devices and hardware
Non-issue to me, as I don't own many to begin with. I like systemd's naming convention of hardware based on the interface part they're plugged into.
>files and directories
I don't really bother and go for very basic naming. The locations I actively use end up being messy anyway and rearranged every couple of months.
>variables and functions
Depends on the language and I try to have a linter for every single one I use. So it picks up any formatting mistakes and unconventional names. People shit on Go for muh generics, but its "go fmt" command is a great idea to curb the irregularities of code.

Nanonymous No.6577 [D]
>>6269
Thank you, friend.
Don't let literal NPCs shun something clearly superior because it's old or new.

Nanonymous No.6617 [D][U][F] >>6629
File: 208ce805f8db8eaf8603a4373d35def361cdb17f525a231eec92c6811a5cf57c.png (dl) (46.85 KiB)
>>6542
>gofmt
Why the fuck would you force the user to draw concrete syntax using a text editor, parse it to abstract syntax in the compiler, and meanwhile parse it to AST then format back to concrete syntax in a separate tool like WTF are you doing LMAOOOOOOOO

Nanonymous No.6629 [D] >>6647
>>6617
>Why
Because that way you are standardizing your codebase, so the smaller details of people's individual style don't creep into it with time. Comparing the computational intensity of just parsing some text and reformatting it, and having some Pajeet line breaks or shitty variable alignment constantly annoy you, I'll take the former. You can also easily imagine how a tool that ensures one code format may improve the legibility of open source software.
>the sequence of events
I'm not an expert at it, but I imagine that it restructures code as a process separate from transforming it into machine code. Not whatever you described.

Nanonymous No.6647 [D][U][F] >>6653
File: 7b73a50c6b9d00c875eb0fa5654ec23b838a9f5df46005efb2ae06c32cf4d2e8.png (dl) (118.03 KiB)
>>6629
>Comparing the computational intensity
This has nothing to do with it. I'm talking about reimplementing something twice.
>and having some Pajeet line breaks or shitty variable alignment constantly annoy you,
Literally all Go code is just pajeet shit and even on a syntactic level it's so bad it will bypass gofmt.
> but I imagine that it restructures code as a process separate from transforming it into machine code. Not whatever you described.
It's exactly what I described. Transforming it from concrete syntax to abstract syntax. What the fuck does this have to do with machine code? But of course a gopher wouldn't understand this because his language is not even powerful enough to encode an AST without race conditions and stack smashing vulns.

Nanonymous No.6653 [D]
>>6647
>I'm talking about reimplementing something twice
While you can just have a strict linter, one of its use cases is retroactive formatting of large codebases. It's not something that is present anywhere else, so that is one hypothetical tradeoff. There's also goimports.
>even on a syntactic level it's so bad it will bypass gofmt
I know I shouldn't be surprised, but how?
>It's exactly what I described
Guess I'm just retarded.
>not even powerful enough to encode an AST without race conditions and stack smashing vulns
That you, rustfag? I can't speak on the safety of the language since I'm using it to write small-to-medium, independent tools. It has a GC in the first place.