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

Resources for begginer programmers (chat-to.dev)

If you've never programmed before I suggest you read Think Python, 2d edition. Its author was kind enough to provide it on his website free of charge. Though you can also buy a physical copy of it if you'd like. There's also a Java version available as well though I recommend you choose the Python version. If you've never used a...

**The Fall Guy( 2024 ) FuLLMoviE Download FilmyZilla Free 720p, 480p 1080p

13 secs ago - Still Now Here Option to Downloading or watching The Fall Guy streaming the full movie online for free. Do you like movies? If so, then youll love the New Romance Movie: The Fall Guy . This movie is one of the best in its genre. The Fall Guy will be available to watch online on Netflix very soon!...

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
hankg,

I've been in a bit of a developer rut. It's not lack of projects I want to do and can work on. It's more like analysis paralysis on some, death by a thousand cuts aversion on others. So I piss away time on social media. I decided to try to get some dev momentum by picking up something I first tried back in 2020 the last time I got dev writers block: The Ray Tracing Challenge. Back then it was Kotlin and I only got as far as basic ray projection before wrestling with the Cucumber test system and "real work" derailed me. This time I'm going to be trying it in Dart and Flutter. My progress, or lack thereof, will be in this repository with a corresponding plain text developer log.

gitlab.com/HankG/raytracerchal…

stevensanderson,
@stevensanderson@mstdn.social avatar

@hankg This happens to me from time to time and I get discouraged, then all of a sudden I'll bust out all my issues on GitHub in like a day or two, then I'll be exhausted. Happened to me last week, killed 20+ issues and released an update then got sick and weekened ruined.

scala_space,
@scala_space@softwaremill.social avatar

v1.3.0 is out! We have added support for Scala Native 0.5.1, which will now be the default version used by the CLI on the --native platform. Regarding Native, take note that some tools which Scala CLI integrates with are not yet available on Scala Native 0.5.x.

javajuggler,

have you ever done anything with Luan? what was your experience like?

TheOneCurly,

Uhh, based on the website I don’t think anyone should really be using this. www.luan.software/why.html

It starts fairly normal, takes a turn towards religious, takes a further turn into far right, then goes on for a bit of orientalism, then goes back to tech stuff.

TheOneCurly,

And as far as I an tell, unlicensed. There at least isn’t one in the mercurial repo or on the site anywhere I can find. I would definitely not recommend using unlicensed code in anything other than a personal use only project.

jutty,
@jutty@bsd.cafe avatar

After a while trying to understand if either ksh or zsh provided a way to prevent taking strings and undefined variables as 0 when doing arithmetic evaluation, there seems to be no feature specifically for it, sadly.

Closest is using set -o nounset (ksh) and setopt no_unset (zsh) to prevent undefined variables from evaluating to zero. If a "string" contains only numbers, a dot and whitespace, it will be treated as a number. Also, if it only contains the name of any other variable and whitespace, it evaluates to that.

Not that I expected shell languages to provide accurate arithmetic.

As a bonus though, it was cool learning about ksh's compound variables, force_float option and especially discipline functions.

jumpingrivers,
@jumpingrivers@fosstodon.org avatar

🚀 🌟 Thank you to our amazing speakers who generously shared their insights and expertise at, 'SatRdays,' in London this past weekend. Your contributions were invaluable in making this event a success. 🥳🎉

Thank you to our attendees who joined us for the enthusiasm & energy you brought to the conference! 🙋🎤

Special thank you to our partners, CUSP London & R Consortium.

We look forward to future collaborations & discussions within our vibrant community. 📊🔬👩‍💻 👨‍💻

image/jpeg
image/jpeg
image/jpeg

faassen,
@faassen@fosstodon.org avatar

It's interesting that programming languages introduce limited postfix notation all the time for convenience: method calls (and chaining) in a variety of languages, type declarations after the variable, .await in Rust.

Yet general postfix languages like Forth are quite uncommon.

deshipu,
@deshipu@fosstodon.org avatar

@faassen I blame the ingraining of the infix notation for the mathematical operators. We teach it that way at school, and it's hard to shake it off.

deshipu,
@deshipu@fosstodon.org avatar

@faassen Then again, I wouldn't say they are uncommon. Forth, LISP and all the offshoots of it, PostScript with PDF and other of its offshoots, Python bytecode – it's being used a lot everywhere, it's just usually not exposed to the "average" user.

ดูหนัง Tee Yod/Death Whisperer IMAX(2024) - ธี่หยด เต็มเรื่อง HD (SUB-THAI) (github.com) Indonesian

ดูหนัง Tee Yod/Death Whisperer IMAX(2024) - ธี่หยด เต็มเรื่อง HD (SUB-THAI) - ดูหนัง Tee Yod/Death Whisperer IMAX(2024) - ธี่หยด เต็มเรื่อง HD (SUB-THAI)...

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