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.

leanpub, to ai
@leanpub@mastodon.social avatar

AI for Efficient Programming: Harnessing the Power of Large Language Models http://leanpub.com/courses/fredhutch/ai_for_software is the featured online course on the Leanpub homepage! https://leanpub.com

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!

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

After I update my #R Package TidyDensity there will be 176 functions...that's a lot of code I wrote. This is just a reflection. Right now it is 172.

#R

nebyoolae, to Podcast
@nebyoolae@masto.neb.host avatar

New Hacking the Grepson podcast episode is out!

Hacking the Grepson 067: Solo vs Team Dev

Matt (@messerman) and Mike (@nebyoolae) discuss the merits of working on projects alone and with others.

Episode Link: https://www.podbean.com/ew/pb-6cuxa-1611697
Show Feed: https://feed.podbean.com/hackingthegrepson/feed.xml
Show Home: https://hackingthegrepson.com

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/

[#reverseengineering #6502assembly #programming #apple2 #retrogaming #retrocomputing

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.


https://matteomanferdini.com/swift-parse-json/

charadon, to random
@charadon@8bit.red avatar

So, I know it's sacrilege to make your own "Build System", but for fun, I decided to give it a go.

It's made up of 3 #Perl scripts:

  • build.pl: Builds the project
  • clean.pl: Cleans up artifacts
  • install.pl: Installs artifacts where they need to go in the system.

build.pl was the most complicated, but that's not saying much, it was incredibly easy to make and it's small. It even supports parallel jobs and not rebuilding an object if the source file is older than the object.

charadon,
@charadon@8bit.red avatar

Now, would I use this in a big project? No way lol.

I can imagine things like subprojects would be a nightmare, and i'm a big fan of Meson/Muon. But it was a fun experiment to see what it's like. (Also, easier to make than a makefile, fuck makefiles.)

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🔎 Selecting Columns Containing a Specific String in R: A Quick Guide 🚀

Hey R users! Need to select columns by a specific string? Here's how in base R, stringr, stringi, dplyr, and with a bonus from data.table.

🆒 R
✅ grepl
📦 stringr
📦 stringi
📦 dplyr

Bonus: 📦 data.table
library(data.table)
df_price <- df[, names(df) %like% "price"]

Happy coding! 🚀

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

#R #RProgramming #Programming #RStats #Coding #RegularExpressions #RegEx #stringr #stringi #dplyr #datatable #baseR

image/png
image/png
image/png

libreoffice, to programming
@libreoffice@fosstodon.org avatar

Something for coders! New post on the #LibreOffice development blog – fixing assertion failures: https://dev.blog.documentfoundation.org/2024/05/14/crash-fixes-part-4-assertion-failure/ #programming #development

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?

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.

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

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 ❤️

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.

hankg, to vmware

Cue the "It's a trap!" meme, especially in light of recent developments post-Broadcom acquisition..."VMware giving away Workstation Pro, Fusion Pro free for personal use"
VMware giving away Workstation Pro, Fusion Pro free for personal use

Jorvon_Moss, to ArtificialIntelligence
@Jorvon_Moss@mstdn.social avatar

My face when my codeing. its not my fav part #maker #Robot #Programming

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

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Want to check duplicate values across columns of a data.frame? Well you can do that in a basic way with TidyDensity and the check_duplicate_rows() function, or you can go through todays blog post for some other ideas with and

#R

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

image/png

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

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

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.

frankel, to programming
@frankel@mastodon.top avatar

Rosetta Code, a #programming chrestomathy site

https://rosettacode.org/wiki/Rosetta_Code

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

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