psychotimmy, to programming
@psychotimmy@mastodon.online avatar

Thought for the day:

"Reading, understanding, and fixing code written by others consumes 90+% of the time a programmer spends ..."

The complete blog post is somewhat on the long side, but the key point it makes is worth repeating, often, as it has been demonstrably true since the 1950s and is highly likely to be true for the next 70 years.

https://chelseatroy.com/2024/05/26/how-does-ai-impact-my-job-as-a-programmer/

#programming #coding #AI #LLM

davidbisset, (edited ) to random
@davidbisset@phpc.social avatar

"Managing My Motivation, as a Solo Dev":

  • Convert external sources to motivation
  • Leave tasks unfinished
  • Address the pain, instead of pushing through
  • Update my users

#webdev #developer #programming

https://mbuffett.com/posts/maintaining-motivation/

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Learn how to split strings and get the first element in R using base R, stringi, and stringr. Check out my latest post for examples and tips. Give it a try and share your experiences!

#Rstats #DataScience #StringManipulation #R #RProgramming #stringr #stringi #strings #Programming #Data

Post: https://www.spsanderson.com/steveondata/posts/2024-06-05/

image/png

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 😁

#mbin #programming

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.

stevensanderson, to opensource
@stevensanderson@mstdn.social avatar

Looks like my and .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!

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

stevensanderson, to programming
@stevensanderson@mstdn.social avatar
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/#mentors-and-feedback

#PyConAU #PyConAU24 #PyCon #Python #Tech #Programming

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:

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.

hankg, to programming

My further experiments with KVM have been great. VM Performance, especially Windows VMs, seems way better than VirtualBox. There are some UX quirks with setting up shared folders in general. I still haven't gotten them working on Windows VMs. But with half my VMs converted and all working concurrently I think I may be switching over in production soon. #programming #VirtualBox #KVM

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

🚀 PyCon AU 2024 is on the horizon! Get ready to submit your talks for Australia's top Python conference. Whether you're a seasoned speaker or a first-timer, we want to hear your unique voice. Check out our guide on crafting a compelling proposal and submit by July 21st.

Join us: pycon.org.au/program

#PyConAU #PyConAU24 #PyCon #Python #Tech #Programming #Coding #PythonProgramming

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

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