oblomov, to programming
@oblomov@sociale.network avatar

I have a question for people with better theoretical background on and especially for developers.

Is the following pattern known and does it have a name?

I have a number of classes (call them C1, C2, etc) that all derive from the same class B. I have a superclass (template, actually) D that derives from C1, C2 etc. To have a single B, the standard solution is to go with virtual inheritance to close the diamond (so far, so good).

1/n

dominucco, to programming
@dominucco@mastodon.social avatar

JarJar is such an epic coder that he’s monitor is backwards

BentiGorlich, to programming
@BentiGorlich@wehavecookies.social avatar

It is very annoying that I think about working on mbin all the time when I am at work.

I started working on messages between users yesterday and I keep having new ideas how to implement them 😁

Jigsaw_You, to python
@Jigsaw_You@mastodon.nl avatar

NumPy 2.0 is planned to be released on June 16, 2024. 👍

https://numpy.org/devdocs/release/2.0.0-notes.html

schizanon, to webdev
@schizanon@mastodon.social avatar

> Three.js introduces its own 'TSL' shader language as a way to write WebGPU shaders with JavaScript rather than the WebGPU Shading Language.

https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language

pragmaticmarg, to books
@pragmaticmarg@hachyderm.io avatar

Reminder: Use promo code 2024Redux to save 50 percent on the ebooks listed in these articles, only at pragprog.com until June 5, 2024.

https://medium.com/pragmatic-programmers/book-sale-redux-in-case-you-missed-it-338512cbf8a9

#books #sale #programming #pragprog

pbarker, to programming
@pbarker@social.afront.org avatar

Never, ever write the words:

"I'm planning to send [the next version of my patches] in the next hour or so, assuming my tests pass."

This is actually a magic spell which will cause your tests to immediately fail with a NULL pointer dereference.

taxorubio, to programming
@taxorubio@fosstodon.org avatar

It's one of those Mondays...

pyconau, to python
@pyconau@mastodon.pycon.org.au avatar

🎤 Ready to take your public speaking skills to the next level? PyCon AU has your back!

Whether you're a Student, Educator, Graduate, or Professional, we want YOU! We're seeking talks from first-time or seasoned speakers, and we have a fantastic mentoring program to help your proposal shine.

Read more about it here: pycon.org.au/program/-and-feedback

pikurasa, to music
@pikurasa@mastodon.social avatar

So, I saw this locked up piano at the mall today, and I thought of this meme.

So, what do ya' think?

levlaz, to python
@levlaz@hachyderm.io avatar

spent an hour debugging jinja template before realizing I was passing in the list variable but not by name. :facepalm: #python #programming

orchidpink, to php

Would you be surprised if I told you the array key gets converted to an integer?

Well, it does. In PHP array keys that are numeric strings are converted to integers.

ant_games, to indiegames Ukrainian
@ant_games@mastodon.gamedev.place avatar

I spent a whole day programming this boat to react when the player jumps on it but it still works badly

video/mp4

smeg, to ChatGPT
@smeg@assortedflotsam.com avatar
LGUG2Z, to rust
@LGUG2Z@hachyderm.io avatar
jesus, to javascript
@jesus@mastodon.gamedev.place avatar
nicola, to dotnet
@nicola@fosstodon.org avatar

Today, I learned how to handle custom claims in an Open ID Connect-authenticated ASP.NET Core app.

https://nicolaiarocci.com/how-to-handle-custom-claims-in-an-oidc-authenticated-aspnet-core-app/

#dotnet #csharp #programming

joachim, to programming
@joachim@drupal.community avatar

I've just seen a #programming pattern in #PHP where a method could return two lists of things. Instead of doing that, it takes as a parameter a callable, and passes the two lists to the callable. Instead of:

[$a, $b] = getLists($param);
// Act on both lists.

we have:

$callable = function($a, $b) {
// Act on both lists
}
actOnLists($param, $callable);

Is that a #FunctionalProgramming pattern?

danvolchek, to privacy
@danvolchek@mastodon.social avatar

I'm trying out ProtonMail!

The price is super reasonable, and I'm happy to pay rather than be surveiled.

Migrating my emails from gmail and configuring my custom domain was easy.

I missed having separate sections for unread and read emails, so I wrote a tampermonkey script to add that! It's available at https://codeberg.org/danvolchek/browser-scripts 😎

Next up is importing my calendar!

I'm excited to see this goes 😄 Thanks @protonprivacy !

LukasBrausch, to opensource
@LukasBrausch@mastodontech.de avatar

What's the best alternative to ?

darkghosthunter, to linux
@darkghosthunter@mastodon.social avatar
faassen, to programming
@faassen@fosstodon.org avatar

A new blog post.

Tool maven versus language maven. Do modern development environments enable you to be both? How does this affect languages?

https://blog.startifact.com/posts/the-tooling-shift/

ericsedge, to programming
@ericsedge@bitbang.social avatar

I’ll livestream again this Saturday morning at 9 am Eastern. The question is what topic?

I could go over more of my Adventure game. Perhaps describe the funky game file format and query code for retrieving information.

Or I could jump into some 64 in .

Or answer questions about HyperCard authoring?

What say you?

adanskana, to RSS
@adanskana@mastodon.social avatar

Can anyone recommend some good programming blogs (in the realm of lisps, emacs, guix, technical deep dives) that offer RSS feeds? I've already got https://wingolog.org/ from @wingo which is pretty much the exact genre of blog I'm looking for. https://ianthehenry.com/posts/ from @ianthehenry is also a good one (although the RSS feed doesn't seem to work with GFeeds :).
I just think it would be cute to have a selection of RSS feeds to browse through :)

[

nilesh, to ai
@nilesh@fosstodon.org avatar

I have started porting Microsoft's multi-agent #AI framework Autogen to #elixir : https://github.com/nileshtrivedi/autogen

Have never built things in Elixir. Wish me luck! 😁
#programming

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines