Crell, to php
@Crell@phpc.social avatar

I've just tagged a new release of Crell/Serde, version 1.2.

This release includes support for Unix timestamps, makes TypeFields more flexible and customizable, and fixes an issue with handling null values. Note that the latter fix has a very small BC break that only impacts a select number of custom Importers, so odds are you won't notice.

Get it while it's hot!

https://github.com/Crell/Serde

stevensanderson, to programming
@stevensanderson@mstdn.social avatar
dominucco, to programming
@dominucco@mastodon.social avatar

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

bcon,
@bcon@fosstodon.org avatar

@dominucco not pictured is a mirror. Jar Jar is all about his tricks… sneaky Jar Jar

hankg,

@dominucco …at least they got the fingers right for once, ironically lol…

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

omalley,
@omalley@fosstodon.org avatar

@oblomov most of the newer languages (eg. or ) don’t support inheritance between classes/structs. They only support implementation of traits, which only define interface and not implementation. In general, using inheritance for implementation reuse is brittle and I like to avoid it.

oblomov,
@oblomov@sociale.network avatar

@omalley as interesting this may be, it's not really what I was asking about 8-D

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 😁

BentiGorlich,
@BentiGorlich@wehavecookies.social avatar

@melroy
Maybe that would be a good idea 🤔

Btw I was impressed to learn that federation for messages is not only not working it is not implemented at all 😅

melroy,
@melroy@mastodon.melroy.org avatar

@BentiGorlich It is indeed not implemented at all in kbin indeed. It never was. So if we implement this, then Mbin has another new bullet point for on the readme page ;P

stevensanderson, to opensource
@stevensanderson@mstdn.social avatar

Looks like my #TidyDensity and #healthyR.data #R packages are doing well post release. Seems the newest TidyDensity maybe the fastest downloaded for me yet!

helathyR.data I think will be the fastest yet for it as well, I'll be posting more about it as time goes on!

Thank you everyone who has tried them, contributed or offered advice and suggestions, would not be here without you!

#RStats #OpenSource #Programming

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...

taxorubio,
@taxorubio@fosstodon.org avatar

I hereby declare war on int.

numeredevs,
@numeredevs@fosstodon.org avatar

@taxorubio Yeah, especially important, if you write files in binary mode and don't lock the bit sizes. We had that problem also during the 64 bit migration

upmultimedia, (edited ) to random
@upmultimedia@mastodon.gamedev.place avatar

When programming a function to check if something is allowed, is it a better pattern to start with a True variable and negate it or start with a False variable and confirm it?

#c

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

anderseknert,
@anderseknert@hachyderm.io avatar

@levlaz I spent half an hour the other day debugging an issue where none of the changes I did seemed to make any difference. Turned out that file was in a different directory than the one I was in.

levlaz,
@levlaz@hachyderm.io avatar

@anderseknert I swear this happens to be once a month 😅

Especially with go because Im always opening sub dirs in their own vscode instance because I am too dumb to get go.work to work for me consistently in complex projects.

  • 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