this post was submitted on 06 Dec 2023
207 points (99.1% liked)

Programming

17450 readers
76 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
top 13 comments
sorted by: hot top controversial new old
[–] NAXLAB@lemmy.world 49 points 11 months ago (2 children)

Is commenting for engagement boost a thing?

This is incredible and I never could have imagined it. This will democratize the power of programming

[–] can@sh.itjust.works 29 points 11 months ago

Comments impact some of the lemmy sorting algorithms such as active.

Active uses the post votes, and latest comment time (limited to two days).

[–] mac@programming.dev 11 points 11 months ago* (last edited 11 months ago) (1 children)

Yeah active is currently the default sort in programming.dev until scaled sort comes out so commenting helps the most out of everything here

[–] can@sh.itjust.works 5 points 11 months ago

Default sort is a profile setting too though so many may have overridden that.

[–] WetBeardHairs@lemmy.ml 39 points 11 months ago (1 children)

Neat. I don't like that the implementations have to name the function by some cryptic identifier, though. Real words matter in source code.

Who can tell me what this function is?

def Z10096(Z10096K1):
    return Z10096K1 == Z10096K1[::-1]

How about this?

def isPalimdrone(myString):
    return myString == myString[::-1]
[–] lemmyvore@feddit.nl 4 points 11 months ago (1 children)

Tbf it wasn't so much the names that tripped me as the weird Python operator. I would've never guessed that's a string reversal if you hadn't told me (I don't know much Python beyond recognizing the syntax). If I had to guess I would've said it's an array pop.

[–] WetBeardHairs@lemmy.ml 6 points 11 months ago

When I originally typed it, I made a function for string reversal and called that. But I didn't include it since I didn't want to define that too.

Honestly... this wiki has a seriously difficult path ahead of it. I mean - it'd be fantastic if it did simplify things like that to let you write simple, elegant, and easy to read functions while linking to other functions.

But it'd also have to lint those and make sure that contributors don't implement recursive dependencies.

[–] peter@feddit.uk 7 points 11 months ago (2 children)

I thought they were struggling for money?

[–] randomaccount43543@lemmy.world 13 points 11 months ago

They are not struggling for money. In fact they have so much money they don’t know what to do with it.

https://www.makeuseof.com/tag/wikipedia-millions-bank-beg/

[–] Kissaki@feddit.de 9 points 11 months ago

The work is being supported by grants from Google.org, The Rockefeller Foundation, and the Wikimedia Endowment.

Either way they did get some additional funding for this project.

[–] dukk@programming.dev 2 points 11 months ago

This is fucking cool. I can imagine the many times this could’ve helped me quite a bit, and honestly even if I didn’t find the function I needed I could still probably hack out a decent implementation in whatever language and actually contribute towards this. In 5-10 years, this could be really useful.

[–] fzz@programming.dev 2 points 11 months ago* (last edited 11 months ago) (1 children)

It’s to teach AI more properly?

[–] Jummit@lemmy.one 1 points 11 months ago

I hope it's going to be used instead of machine learning. Seems much more correct, secure and efficient to me.