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

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

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 😁

desertplains, to python
@desertplains@mastodon.social avatar

I wonder if there's a more efficient way of implementing decimal to conversion in

Without recursion, it's ok, but there will be variable assignments operations, which seems to me as something not so efficient, comparing with recursion...

image/png

diazona,
@diazona@techhub.social avatar

@desertplains You could make a helper function which is a generator and just yield digits instead of appending to a string. Then call ''.join(helper_function(n)) to get the final result. That avoids a bunch of string concatenations. Or another (slightly less elegant IMO, but totally valid) way to do it is to build up a list of characters in the loop instead of appending to a string. You may find working with a list is more efficient.

If you really want to get into high efficiency (within the constraints of what Python allows, of course; it'll never be as fast as C), you might try something like using a lookup table and accumulator to produce blocks of 3 bits at a time. I don't know if that'd actually turn out faster, but it may be worth checking. I can elaborate if you're interested.

#Python #programming

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

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

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.

smeg, to ChatGPT
@smeg@assortedflotsam.com avatar
xorn, to programming
@xorn@mastodon.social avatar

The great thing about writing software is that after you spend 3 days figuring out a simple solution to a complex problem you're left with no evidence as to what you did with the rest of your week.

"You wrote 15 lines of code?"

"No, I wrote 4500 lines of code. Those 15 were the ones worth keeping."

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

leanpub, to programming
@leanpub@mastodon.social avatar

The Ruby On Rails Interview Bible 2023: A Comprehensive Guide with 500+ Essential Questions and Answers! https://leanpub.com/therubyonrailsinterviewbible

jesus, to javascript
@jesus@mastodon.gamedev.place avatar
LGUG2Z, to rust
@LGUG2Z@hachyderm.io 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

pixel, to SwiftUI
@pixel@social.pixels.pizza avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines