There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Chrishmax , in Hot Potato License

I gained so much money from my investment. All thanks to EXPERT ELOISE WILBERT ON INSTAGRAM… who thought me how make huge profits from my deposit and I gain from 100$ to 600$… Thank you EXPERT ELOISE WILBERT ON INSTAGRAM contact her now to also get such good luck 📝👍

Tier1BuildABear ,
@Tier1BuildABear@lemmy.world avatar

Before I block you… Who “thought” you how to talk? How retarded are they?

ArmokGoB ,

Imagine banning someone for giving shit to a scam bot. Massive L from the mods.

thatirishguyyy ,
@thatirishguyyy@lemmy.today avatar

Fuxk off scammer

raldone01 , in Hot Potato License

There are a few flaws.

There should be a clause forcing it to remain open source. Another clause should be that the license must not be changed. A warrenty and liability disclaimer would be also good. Otherwise a splendid license.

jnk ,

I would 100% use this HPL-v2 for all of my (temporary) foss projects. It’s just genius. I mean, good luck keeping track of the current owner, Nintendo lawyers.

roon , in new preference war just dropped
@roon@lemmy.ml avatar

Powershell has a lint warning for functions that don’t follow Verb-Noun format, and verbs here are a list of approved verbs lol

olafurp , in new preference war just dropped

I prefer everything to be how you would read it as text. So create_file_dialog it is. Honorable mention is to have it namespaced in a class or something which I think is best. file_dialog.create or dialog.create_file or even dialog.file.create

brunofin ,

I agree. I say open door so the function should be named openDoor.

Honestly nowadays none of that matter if you’re using any remotely modern IDE with good indexing and a sensible search, you can start typing however you mind works and it will find it no matter how it’s named.

sudo ,

My method names are the same way but I aggressively sort things into modules etc so it comes out the other way.

But if I was staring down dozens of these methods and no way to organize them, I’d start doing the sorted names just for ease of editing. L

RiQuY , in Hot Potato License

The secret license everyone gets while working for an enterprise. If the previous dude left, good luck changing anything.

joyjoy , in new preference war just dropped

We just call those Smurf names.

Huschke , in Hot Potato License

As a Martian I feel left out.

MartianFox ,

What should I say??

clay_pidgin ,

Share water, brother.

Agent641 ,

I grok

MartianSands ,

Nah, we’re alright. I don’t think anyone has clearly defined the requirements of earth citizenship, we can assume it’s like Ireland who hand it out like candy

Zos_Kia ,
@Zos_Kia@lemmynsfw.com avatar

Them dusters always complaining about something smh

AliasVortex ,

Inners amirte?

MangoKangaroo ,
sparkle ,

No fair, this is uncalled for aggression towards Triangulum Galaxy dwellers!

lorty , in new preference war just dropped
@lorty@lemmygrad.ml avatar

I know the second one is better, but I also know I’m terribly inconsistent with this stuff.

nexussapphire ,

Been learning to program and I’m refusing to use an lsp for the time being. I’m bad about using abbreviated names when I have to type over and over again(no auto complete). I’m at least using descriptive names for functions I use less than four times.

crispy_kilt , in new preference war just dropped

First of all, it’s spelled dialogue

Sotuanduso ,

Two wars can exist simultaneously.

stufkes ,

OP’s username is in German, so it’s probably half-German-English code

crispy_kilt ,

Germans learn UK English

stufkes ,

Dialogue is UK English. But I just looked it up and apparently ‘dialog’ is a computer term, but should not be used on its own but rather in combination, such as ‘dialog box’.

smeg ,

Americans sadly got there first and defined all the computer terms, that’s why it’s a TV programme but a computer program. I can deal with that though, helps distinguish computer things from real things!

Hazzia , in new preference war just dropped

Can’t remember which is which but if it’s organized in a top-down way (broad category first) that’s just easier to look at and find stuff in the file system. I don’t want to have to actually read and mentally process the names of every single file to figure out if it’s the one I need. Sure, the “human readable” names are fine and good when you don’t have hundreds of them you’re trying to look through, but big projects I find are way easier to parse with the category naming.

ooterness ,

US Army logistics catalogs are organized this way. “Cookies, oatmeal” instead of “Oatmeal cookies” because it’s a lot easier to find what you need an a giant alphabetical list.

blanketswithsmallpox ,

How any large organization gets away with not using YYYY-MM-DD format is beyond me.

Taking over some of my previous directors files is like chaos.

How anybody publishing entire internet memos without a date being on the first page is beyond me. Like wtf am I reading a PDF from 15 years ago or last month?

nikaaa , in new preference war just dropped

I personally prefer dialogs.FileDialog.open()

rockSlayer , in new preference war just dropped

Create a file handler class to avoid the issue

magic_lobster_party ,

Eww, that’s OOP

deadbeef79000 ,

Meh, a class is just a struct of function pointers.

nikaaa ,

FileDialogFactory

morrowind , in new preference war just dropped
@morrowind@lemmy.ml avatar

Where’s file_dialogue_open

janAkali ,

To be fair, it’s also missing open_dialog_file, dialog_open_file and most crucially file_open_dialog

xmunk ,

We’re all trying our best to ignore the Americans and you bring up m/d/y… why!

verstra ,

This is the real big-endian way. So your things line-up when you have all of these:


<span style="color:#323232;">file_dialogue_open
</span><span style="color:#323232;">file_dialogue_close
</span><span style="color:#323232;">file_dropdown_open
</span><span style="color:#323232;">file_rename
</span><span style="color:#323232;">directory_remove
</span>

If I were designing a natural language, I’d put adjectives after the nouns, so you start with the important things first:

car big red

instead of

big red car

dohpaz42 ,
@dohpaz42@lemmy.world avatar

Heathen! You must alphabetize all the things!

Like seriously. It makes scanning code much easier.

funkless_eck ,

If I were designing a natural language, I’d put adjectives after the nouns, so you start with the important things first

So - French?

lunarul ,

The thing is that in French, Spanish, etc. it still makes sense if you put the adjective before the noun, even if it might sound weird in some cases. An adjective is an adjective and a noun is a noun.

But English is positional. Where you put a word gives it its function. So “red car” and “car red” mean different things.

deadbeef79000 ,

That’s because they are romance languages. They come from Latin where word order is irrelevant as each “word” has a different form for the specific use.

lunarul ,

Yes, that’s what I said. My native language is a romance language too. And after speaking it her whole life, my wife has trouble getting the grasp of how in English swapping two words completely changes the meaning of what she’s saying (especially when it’s two nouns, like e.g. “parent council”)

DarkDarkHouse ,
@DarkDarkHouse@lemmy.sdf.org avatar

And “red big car” is wrong.

MonkCanatella ,

literally spanish lol

rekabis , in new preference war just dropped

There is a reason why little endian is preferred in virtually 100% of cases: sorting. Mentally or lexicographically, having the most important piece of information first will allow the correct item be found the fastest, or allow it to be discounted/ignored the quickest.

Static_Rocket ,
@Static_Rocket@lemmy.world avatar

But also, sorting big endian automatically groups elements associated with common functions making search, completions, and snippets easier (if you use them). I’m torn

33550336 ,
@33550336@lemmy.world avatar

I was going to write something like this. You actually wrote about semantic order, but syntactically it is as much important e.g. it is easier to sort dates such as 2024-05-27 than 27.05.2024 in chronological order.

deadbeef79000 , (edited )

That’s actually filtering not sorting.

That being said, it’s more valuable (to me) to be able to find all my things for a topic quickly rather than type.

Foo_dialog

Foo_action

Foo_map

Bar_dialog

Bar_action

Bar_map

Is superior IMHO.

rekabis ,

If you are looking for Bar, it is highly likely that you are already looking specifically for a particular functionality - say, the action - for Bar. As such, it is irrelevant which method you use, both will get you to the function you need.

Conversely, while it is likely you will want to look up all items that implement a particular functionality, it is much less likely you are going to ever need a complete listing of all functionality that an item employs; you will be targeting only one functionality for that item and will have that one functionality as the primary and concrete focus. Ergo, functionality comes first, followed by what item has that functionality.

deadbeef79000 ,

We probably have slightly different work processes.

I’m more likely to be making “foo” functionally complete and then making “bar” complete than I am to be making all my dialogs functional then all my tabs/whatever.

This comes from TDD where I’m making a test pass for “foo”, once done, I’ll do the same for “bar”.

Though it’s even more likely these are different files entirely, rendering the arguments moot.

red ,

I put all those in different files

compont/functions/foo.ext etc.

deadbeef79000 ,

Depends on the language’s constraints, but yes: more smaller files please!

evatronic , in new preference war just dropped

I do one, the other senior dev does the other. We fight about it in pull requests.

livingcoder ,

Your team needs to have a coding standards meeting where you can describe the pros and cons of each approach. You guys shouldn’t be wasting time during PR reviews on the same argument. When that happens to me, it just feels like such a waste of time.

evatronic ,

Preachin to the choir, friend. I’d get worked up about it but I’m paid the same regardless of how upset I get.

OutsizedWalrus ,

Or they need to kit car about stuff like this since it probably doesn’t actually matter.

locuester ,

Agreed. This type of fun is good for the team. Trying to stamp it out, when it impacts very little, is just a buzzkill to the team.

nikaaa ,

This sounds like the typical plot of a story from The Codeless Code.

Edit: How about this story specifically?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines