swiftcraft, to iOS
@swiftcraft@hachyderm.io avatar

🌟Don't miss @dimsumthinking keynote session at !

Explore the intersection of mathematics and Swift development, and gain insights into Macros, Models, and ML.

https://youtu.be/sr1l3Ke6Uao

Secure your spot now! https://swiftcraft.uk/tickets 🚀

lorddimwit, to programming
@lorddimwit@mastodon.social avatar

Who called it linear typing and not “once in a lifetime”

Who called it const and not “same as it ever was”

Who called it a stack trace and not “well, how did I get here?”

jjimenezshaw, to programming
@jjimenezshaw@mapstodon.space avatar

"If the authors of computer programming books wrote arithmetic textbooks..."

A colleague used this image to describe the documentation of a library. Meaning that the documentation was the example with the rabbits, but they have to use the library as the second part of the image.

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

Not many people know about bleh debugging.
It's a technique I use when I want to check whether a certain piece of code is being compiled at all, such as if it's been ifdef'd out.

It works by inserting the following keyword in the piece of code you're looking at:

bleh

This is a special word that triggers an error in compilers of all programming languages, resulting in a message like "error: 'bleh' undeclared" if the code gets compiled. If not, the code is compiled out.

viking, to programming
@viking@fosstodon.org avatar

I have a newfound enormous appreciation for curl's ability to re-use connections in combination with the curl multi interface. Lightning fast way to make craploads of HTTPS requests!

beejjorgensen, to ReverseEngineering
@beejjorgensen@mastodon.sdf.org avatar

Someone reverse-engineered Apple ] Choplifter, an amazing game from my youth. Awesome write-up of the process and link to the assembly code.

https://blondihacks.com/reversing-choplifter/

[

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

Parsing JSON Data is a fundamental in modern SwiftUI apps. This comprehensive guide covers all the aspects of the Codable protocols in Swift.

#JSON #Programming #Swift #SwiftUI #macOS #iOS #visionOS #Codable
https://matteomanferdini.com/swift-parse-json/

ArneBab, (edited ) to random German
@ArneBab@rollenspiel.social avatar

define-typed: a static type syntax-rules macro for to create API contracts and help the JIT compiler create more optimized code:

https://www.draketo.de/software/guile-snippets#define-typed

Improved thanks to feedback from Vivien and Zelphir in the Guile User mailing list.

Just 26 lines to get argument and return value typing without changing Guile.

I love the flexibility of ❤️

technige, to programming
@technige@fosstodon.org avatar

languages can be split into three categories: static (e.g. Java, C#), dynamic (e.g. Python, Ruby), and cosplay static (e.g. TypeScript, Python-with-typing).

albertcardona, to Java
@albertcardona@mathstodon.xyz avatar

In java, is there a simple, idiomatic, standard-library built-in way to iterate a Stream n elements at a time? E.g., in pairs, using a BiConsumer or similar two-argument Function?

davep, to python
@davep@fosstodon.org avatar

I’ve just released v0.14.0 of Tinboard, my client for the . This release adds the start of an application settings dialog, with the first couple of options letting you set the default value for the "private" and “read-later" state of new bookmarks.

https://blog.davep.org/2024/05/14/tinboard-0-14-0.html

argv_minus_one, to rust
@argv_minus_one@mstdn.party avatar

I wonder if anyone has ever written an embedded in which there is no run-time interpreter, and all SQL queries are translated into machine code at compile time.

Kinda like sqlx, except queries are fully compiled at compile time, not just checked for correct syntax and types.

I'm guessing this would be extremely specific to one language, and outright impossible in most programming languages.

Jorvon_Moss, to ArtificialIntelligence
@Jorvon_Moss@mstdn.social avatar

My face when my codeing. its not my fav part

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌟Exclusive offer for job seekers!🎉

Dive into the world of Swift development at SwiftCraft's main conference for just £90 + workshops or tutorials for an additional £90 each!

Find out more and apply! https://swiftcraft.uk/jobseekers

lefebvre, to programming
@lefebvre@hachyderm.io avatar

Save 20% on Xojo, a bargain at any price! Also, SQLVue (my SQLite database editor) is only $12 during this sale!

https://www.xojo.com/store/

(Click on Extras tab for SQLVue.)

nette_news, to php
@nette_news@phpc.social avatar

📝 Group and Sort Data in Latte Templates Like a Pro

In the latest update of Latte, we are introducing several significant enhancements that will simplify and make more efficient the work with data in your templates.

https://blog.nette.org/en/group-and-sort-data-in-latte-like-a-pro

devstory, to php Czech
@devstory@mastodonczech.cz avatar

phpFashion.com ( @davidgrudl ) - How to Handle Getters When They Have Nothing to Return?

https://phpfashion.com/en/how-to-handle-getters-when-they-have-nothing-to-return

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/

dirkdierickx, to programming
@dirkdierickx@mastodon-belgium.be avatar

1984 - Ashton-Tate introduces the dBase III relational program for IBM PC-compatible computers.

dBase was one of the first database management systems for microcomputers and the most successful in its day. The dBase system included the core database engine, a query system, a forms engine, and a language that tied all of these components together.

zeroiee, to programming
@zeroiee@techhub.social avatar

A clean Git history is the key to successful teamwork and quick bug fixes. Errors can only be successfully tracked down if it is always possible to trace when and where code was changed by whom and for what reason.

🥴 However, in the rush of the battle, the changes that are packaged in a commit are sometimes not taken very seriously. Who has never experienced this? A change that is actually unrelated to the current work package has made it into the commit because the file has already been saved temporarily.

💡The solution: With an "interactive add" (git add -i), you can pack partial changes ("hunks") into a commit and specify line by line what should be included in the next commit.

:git: "Staging patches": https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging

pablolarah, to programming
@pablolarah@mastodon.social avatar

🟠 Avoiding the soft delete anti-pattern
by Tim Fisken @culturedsystems

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 #cpp #programming #gamedev

Crell, to python
@Crell@phpc.social avatar

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

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

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

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