Programming

sos,
@sos@mastodon.gamedev.place avatar

Every single time I check out one of those upcoming shiny new programming languages that claim to be simple:

raptor85,
@raptor85@mastodon.gamedev.place avatar

@sos one of my current goals with my new engine (well, "new" as in being updated from the same basic codebase I've used since like 2001) is to allow M68k and Z80 asm to be used as scripting languages.

mike,
@mike@jammer.social avatar

@raptor85 @sos lol, it probably wasn't Medium, but that's how I often feel every time I visit (for a blog site this is remarkably slow).

publicvoit,
@publicvoit@graz.social avatar

What happens, when you join two paths in a language when the second one is an absolute one?

join("foo", "/bar")
returns "foo/bar" or "/bar"?

The wonderful @meisterluk wrote a great article about that you might want to read: https://lukas-prokop.at/articles/2024-05-03-filepath-join-behavior

I can not tell what version I'd actually prefer. There are situations where both versions would be "proper".

#C++

soc,
@soc@chaos.social avatar

@publicvoit @meisterluk Neither of those choices is correct.

The right solution is using the type-system to prevent obviously wrong code from compiling:
✅ join(AbsolutePath, RelativePath)
✅ join(RelativePath, RelativePath)
❌ join(RelativePath, AbsolutePath)
❌ join(AbsolutePath, AbsolutePath)

Another benefit is that AbsolutePath is not restricted to the root of the filesystem, but could express things like "the user's cache directory", increasing portability of paths saved to config files.

publicvoit,
@publicvoit@graz.social avatar

@soc @meisterluk Well, that's not something the compiler is able to decide when the parameters are not known during compilation.

stevensanderson,
@stevensanderson@mstdn.social avatar

working on the next release of TidyDensity

#R

michaelten,
@michaelten@mastodon.social avatar

@stevensanderson
Github link?
Thanks and limitless peace

stevensanderson,
@stevensanderson@mstdn.social avatar
firusvg,
@firusvg@mastodon.social avatar

"The hard part of is building and maintaining a useful mental model of a complex system. The easy part is writing code."

-- Jennifer Moore, "Losing the imitation game" #q

rladies_bergen,
@rladies_bergen@hachyderm.io avatar

It's May already! Let's do something fresh and learn about how to use containers with your projects!
RSVP here:
https://www.meetup.com/rladies-bergen/events/300711368/

Drmowinckels,
@Drmowinckels@fosstodon.org avatar

📝 New blog post 📝

'The IDEs I use'

🧏 People who code have a tendency to spend a lot of time in various IDEs (Integrated Development Environments). They can be as simple as a text editor or as complex as a full-blown development environment. In this post, I'll go through my two go-to IDE's, RStudio and VScode, and why I switch between them rather than sticking to a single one. ---

👀 Read more at https://drmowinckels.io/blog/2024/ide

#R #programming #IDE #RStudio #VScode

Drmowinckels,
@Drmowinckels@fosstodon.org avatar

@adamhsparks nice to know my idiosyncrasies are not so idiosyncratic after all! 😊

Ive never tried neovim, its not available on the server i ssh into, which is the main place i use him, as I can't call a UI in there. Maybe I can ask for it, now that we are getting an upgrade from redhat 7 to rocky9... Would be fin to give it a go. Though, as I understand, it needs extensions to really work well, and I am unsure of how much time IT wants to dedicate to that.

milesmcbain, (edited )
@milesmcbain@fosstodon.org avatar

@Drmowinckels I enjoyed this read 😀

You’re right about the file browser in RStudio, it’s oddly primitive compared to rest of app. I don’t think it’s had much love since early versions.

Not sure if you’re using it or not but one thing in favour of VSCode for me is the workspaces feature: https://milesmcbain.micro.blog/2022/10/18/are-you-data.html

Myself I’ve used only VSCode for a few years now with the vim extension but am the process of transitioning to neovim.

davidbisset,
@davidbisset@phpc.social avatar

Happy Anniversary to BASIC.

Turns 60. 🎉

https://arstechnica.com/gadgets/2024/05/the-basic-programming-language-turns-60/

I believe my first language (if you don't count LOGO) was Apple Basic.

oalders,
@oalders@fosstodon.org avatar
smoku,
@smoku@vivaldi.net avatar
metacpan,
@metacpan@fosstodon.org avatar

What's New on CPAN, March 2024 edition.

https://www.perl.com/article/what-s-new-on-cpan-march-2024/

@perl @tag@relay.fedi.buzzl

adamcrussell,
@adamcrussell@mastodon.sdf.org avatar

@metacpan @perl I just saw the list of bioinformatiocs modules from @ChristosArgyrop

aral,
@aral@mastodon.ar.al avatar

JSDB 5.0.0 published 🎉

• Custom classes must have a constructor that accepts a parameter object as its only argument. Constructors are run during deserialisation.

• Custom classes can now safely extend other classes (e.g., EventEmitter).

• Properties that begin with an underscore (_) are treated as private and ignored.

• Objects with null prototypes are supported. i.e., objects created with Object.create(null, …).

Full details: https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions-of-jsdf

#JSDB #NodeJS #database

aral,
@aral@mastodon.ar.al avatar

JSDB 5.0.1 published 🎉

• Fixes #14: Crash if DataProxy getHandler() called on object with null prototype. (https://codeberg.org/small-tech/jsdb/issues/14)

To install update:

npm install @small/jsdb@5.0.1

Learn more about JSDB:

https://codeberg.org/small-tech/jsdb#javascript-database-jsdb

#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev

aral,
@aral@mastodon.ar.al avatar

JSDB 5.1.0 published¹ 🎉

• Forgetting to pass a custom class that’s persisted in your database in your JSDB.open() call now throws instead of corrupting your database by falling back to using an untyped object.

• Added JSDF ver. 2 to 3 database migration script (i.e., JSDB version 2-4 to 5)²

To install update:

npm install @small/jsdb@5.1.0

¹ https://codeberg.org/small-tech/jsdb/releases

² https://codeberg.org/small-tech/jsdb#version-2-to-3

JSDB

jperkin,
@jperkin@federate.me.uk avatar

We're hiring!

https://www.mnxsolutions.com/careers/senior-backend-developer

Come and help us maintain and enhance a fully open-source operating system and cloud stack that has been battle-tested in very large production environments.

There are plenty of interesting problems to solve, all the way from writing device drivers and debugging early boot issues, to writing new UIs in Rust.

I think we're a pretty friendly team to work alongside too ;)

Happy to answer any questions.

#SmartOS #illumos #nodejs #rust #DTrace #pkgsrc

davidbisset,
@davidbisset@phpc.social avatar

Client: "We would like to keep adding to this project and have the final product not look right as a result."

🤔

davidbisset,
@davidbisset@phpc.social avatar

@alda reminds me of a movie idea: 80's movie "The Fly" but with code.

alda,
@alda@topspicy.social avatar

@davidbisset AKA The State of the Word?

ai6yr,
@ai6yr@m.ai6yr.org avatar

BBC: Airline keeps mistaking 101-year-old woman for baby. "A 101-year-old woman keeps getting mistaken for a baby because of an error with an airline's booking system. The problem occurs because American Airlines' systems apparently cannot compute that Patricia, who did not want to share her surname, was born in 1922, rather than 2022." https://www.bbc.com/news/articles/c9wz7pvvjypo

cihi1970,
@cihi1970@mastodon.social avatar

@ai6yr
I thought the millenium bug was solved long ago?

ai6yr,
@ai6yr@m.ai6yr.org avatar

@cihi1970 LOL you would have thought.

Ant8e,
@Ant8e@fosstodon.org avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • DreamBathrooms
  • magazineikmin
  • hgfsjryuu7
  • InstantRegret
  • everett
  • rosin
  • Youngstown
  • slotface
  • ngwrru68w68
  • mdbf
  • cisconetworking
  • kavyap
  • Durango
  • PowerRangers
  • anitta
  • thenastyranch
  • ethstaker
  • khanakhh
  • tacticalgear
  • osvaldo12
  • tester
  • normalnudes
  • vwfavf
  • cubers
  • GTA5RPClips
  • Leos
  • modclub
  • provamag3
  • All magazines