henrikjernevad, to programming
@henrikjernevad@mastodon.social avatar

Should you build software that is extensible and future-proof?

That sounds like a good idea, doesn’t it? Well, that depends on how good you are at predicting the future.

https://henko.net/blog/design-for-today/

leanpub, to books
@leanpub@mastodon.social avatar
pablolarah, to programming
@pablolarah@mastodon.social avatar

🟠 Avoiding the soft delete anti-pattern
by Tim Fisken @culturedsystems
#Deletion #programming #webdev

https://www.cultured.systems/2024/04/24/Soft-delete/

julienbarnoin, to cpp
@julienbarnoin@mastodon.gamedev.place avatar

All this time I've been using the return value of snprintf as the number of characters actually written, when it's in fact the number of characters that would be written if the max size passed in were large enough.

In fact: "If the resulting string would be longer than n-1 characters, the remaining characters are discarded and not stored, but counted for the value returned by the function."

BRB, got a bunch of files to go back over... 😓

#c

lily, to rust
@lily@glaceon.social avatar

the rust "impl" keywork is kinda weird.

usually, it is used to define methods, but in function arguments, it serves as syntactic sugar so you don't have to name generic types... but in a return type, it has a meaning that is slightly different, and actually expresses a semantic not even vanilla haskell can represent!

basically, instead of being able to return any type implementing a trait, it states that it can return at least one type that implements a trait.

in haskell terminology, specifying a generic type parameter is "forall a", while returning an "impl" is "exists a".

Crell, to python
@Crell@phpc.social avatar

Teaching folks the joys of clear and explicit object type definitions. An interesting experience...

saturn85, to programming
@saturn85@mastodon.world avatar
elevenhsoft, to programming Polish
@elevenhsoft@mastodon.social avatar

Wooohooo! Finally, we are on , friends! :)

Web Apps is available to install via directly from flathub: https://flathub.org/apps/io.github.elevenhsoft.WebApps

I'm happy ^^

julienbarnoin, to programming
@julienbarnoin@mastodon.gamedev.place avatar

Sometimes when tweaking things that are very sensitive, such as audio generation or physics systems, I just play around with parameters for a while, sometimes getting cool results, sometimes screwing up, quickly saving and testing as I go.

Then I feel like going back to something I had earlier, but it's hard to reproduce it. I don't have a great solution for that yet, maybe I should just have a mode where I commit every save to git or something?
Does anyone else do that?

sarah, to php
@sarah@phpc.social avatar

Have you gotten a FREE copy of my book, Mastering Object-Oriented PHP, yet? You can get yours at https://masteringobjectorientedphp.com

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Discover essential techniques to check for column existence in R data frames!

Use %in% with names() or colnames(), explore dynamic checks with exists() and within(), or identify patterns with grepl(). Experiment with these methods in your projects.

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

#R #RStats #RProgramming #Programming #Coding #Data

image/png

WetHat, to HowTo
@WetHat@fosstodon.org avatar

Advanced C# Tricks for Developers 🔥 | Medium

Ten methods to boost code efficiency and readability for experienced developers.

https://medium.com/@kmorpex/10-advanced-c-tricks-for-experienced-developers-26a48c6a8c9c

Crell, to programming
@Crell@phpc.social avatar
slashtechno, to programming
@slashtechno@fosstodon.org avatar

I'm working on a project () and I want to make a post about it on .
It is functional and works quite well for having started work on it recently. Should I just make the post on HN?

claras_universe, to github
@claras_universe@ieji.de avatar

Im still onto my streak. Its 132 days now. There is no going back, I have to fill the whole thing xD

godmaire, to rust
@godmaire@mstdn.social avatar

Is it not possible to use grave accents in rust proc-macros? When I do, I get an "unknown start of token" error, even though it /is/ the whole token. When taking a peek at the TokenStream given to the proc-macro function, the grave doesn't appear at all

vascorsd, to guix
@vascorsd@mastodon.social avatar

So many cool things here.

Goblins, Shepherd, Capabilities, Actors, Whippet, Pre-Scheme, NLnet grants 🎉


Distributed System Daemons: More Than a Twinkle in Goblins' Eye -- Spritely Institute
https://spritely.institute/news/spritely-nlnet-grants-december-2023.html

collaborationgames, to programming
@collaborationgames@mastodon.gamedev.place avatar

My first legit 'while(true)' usage in a long time.🙌😉
It's gonna be smooth with zero consequences, right?😋
#programming #unity

pixel, to swift
@pixel@social.pixels.pizza avatar

“To use for await item in streamOfItems {...}, you need an AsyncStream. It is very common that you already have an existing Combine publisher, and you want to use the nice Swift Concurrency syntax.”


https://samwize.com/2024/05/06/how-to-create-asyncstream-with-a-publisher/

halildeniz, to programming
@halildeniz@mastodon.social avatar

DHCP Spoofing Tool

This tool is used to spoof DHCP servers. It sends fake DHCP offers to a specific network interface and manipulates the IP addresses of network devices.

For more join our discord server:
https://discord.gg/nGBpfMHX4u

davidbisset, to programming
@davidbisset@phpc.social avatar

"My debugger crashed just now."

🤔

fuopy, to gamedev
@fuopy@mastodon.gamedev.place avatar

If you are an unemployed software dev in the states, this directly affects you. Greedy corps aim to permanently undercut prospects of today's countless unemployed devs (experienced and new) by promoting a false narrative of a "labor shortage." Take a look and please consider leaving a comment within the remaining 2 days. If this passes, you can kiss your job prospects goodbye.
https://www.reddit.com/r/cscareerquestions/comments/1cogset/amidst_mass_layoffs_the_us_department_of_labor_is/

jhpratt, to rust
@jhpratt@mastodon.social avatar

Preview of what I have been working on recently. The core of this crate is a mere two traits. The crate will ship with a number of parsers and combinators, none of which rely on anything not exposed to downstream users.

I've attached a real-world situation, taken verbatim from the test suite. Parsing integers isn't as efficient as it could be yet, as it's using a naïve method.

Parsing in general compiles to be extremely efficient, and using it is ergonomic.

pub trait Combinator<'input, P> where P: ByteParser<'input>, { type NewParser: ByteParser<'input>; fn apply_to(self, parser: P) -> Self::NewParser; }
#[test] fn parse_date() -> parcom::Result<()> { let parser = ascii::int:: .limit_length(4) .and(verbatim(b"-").discard()) .and(ascii::int::.limit_length(2)) .and(verbatim(b"-").discard()) .and(ascii::int::.limit_length(2)); let (seq!(year, _, month, _, day), remaining) = parser.parse("2021-07-04")?.into_parts(); assert!(remaining.is_empty()); assert_eq!(year, 2021); assert_eq!(month, 7); assert_eq!(day, 4); Ok(()) }

ks982579, to golang
@ks982579@techhub.social avatar

Level up your programming skills with Go! ⏫

My main focus for my Master's in Computer Science has been on Rust, but I'm always looking to expand my skillset. That's why I'm excited to dive into the Golang Programming bundle by hashtag on Humble Bundle. This bundle offers a great opportunity to learn Golang, a powerful open-source language gaining traction in the tech industry. I'm particularly interested in the "Go Programming - Beginner to Professional" book, which seems like a perfect starting point for anyone new to Go, like myself.

Is anyone else exploring Golang?

Feel free to share your experiences or learning resources in the comments below!

https://www.humblebundle.com/books/golang-programming-packt-books

djumaka, to php
@djumaka@phpc.social avatar

Guys I need some helping hand. I need some good reading (book/article) on the proper way of writing OOP. I gave a project where we use classes, but they are more used as a package if functions then working like objects. Like a class of only statics, passing around IDs not the real objects of data (this sending SRP down the drain), arrays, generally functional programming with extra steps. I'd fancy even a discussion as I want to slowly explain all that to my teammates
TIA

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