Programming

gregorni,
@gregorni@fosstodon.org avatar

When a programming language's website says it's a "general-purpose language", I already kind of want to not use it, because it probably won't offer anything that I can't get in another language.

I'd like to see a world where every language serves exactly one area of programming, and is highly specialized for that area.

#programming #programmingLanguages

camelCaseNick,
@camelCaseNick@floss.social avatar

@gregorni I like being guided by languages – forced, not just optinally. I find it reassuring. You see so many multi-paradigm languages. But I want to be called out for writing one part functional and another object oriented. Code that compiles and does what I want – okay – but clean code is just so much easier to maintain. And on that note, I just can't stand type inference. It's cool what the compiler understands, but do I, and do we agree? And yes, those catch all languages make you choose.

gregorni,
@gregorni@fosstodon.org avatar

@camelCaseNick But this is a different problem. I'm not talking about the safety, convenience, or intelligence that a programming language may or may not come with. I'm simply talking about the type of programming tasks that a language is intended to be used for (AI, Game Development, Systems Programming, Data Science, Embedded Systems). In this context I find being "General Purpose" a disadvantage, since you can't specialize in any specific area, or add features that only benefit that area.

mikaeleiman,
@mikaeleiman@mastodon.sdf.org avatar

Recruiter wants me to describe what the position entails, and give at least three examples. I come up with:

  • development
  • debuggning
  • … isn't that all we do?

johnefrancis,
@johnefrancis@mastodon.social avatar

@mikaeleiman put down "consensually massaging the synergies"

javajuggler,

hello my username is JavaJuggler i am a programmer and i love to create things that help people in their daily lives. i am the creator and developer of https://chat-to.dev which is a site where programmers of all levels can create chat rooms to talk, share, teach and learn things related to programming. with this i decided to invite you to visit my site and enjoy all the features it contains. give me feedback if you visit my site. thanks

julienbarnoin,
@julienbarnoin@mastodon.gamedev.place avatar

I'd like to suggest that anyone who says Copilot saves them time is an indication that they're not doing their job, ie accepted the code without taking the time to think through each line and its implications.

To properly review code, you have to consider for each variable, each expression, whether it's appropriate, how it interacts with the rest of the program, etc.

Since you didn't author the code I'd say this should take more time than if you wrote it yourself.

tony,
@tony@hoyle.me.uk avatar

@julienbarnoin
The only people who say this appear to be paid to do so by ad agencies.

Bad code can cost you hours especially if it looks superficially correct.

alexelcu,
@alexelcu@social.alexn.org avatar

This is old news, but there's now an official announcement — Apache Pekko is now a top-level project:

https://news.apache.org/foundation/entry/apache-software-foundation-announces-new-top-level-project-apache-pekko

#Scala #Akka #OpenSource

oalders,
@oalders@fosstodon.org avatar

I'm handling sponsorships for this year's Perl and Raku Conference. Please share this far and wide so that we can get as many new sponsors as possible. ❤️

https://www.perl.com/article/this-is-your-opportunity-to-sponsor-the-perl-and-raku-conference-2024/

@perl @tag@relay.fedi.buzz

sjn,
@sjn@chaos.social avatar

@oalders @perl @tag@relay.fedi.buzz

Everyone! If your #business depends on #Perl or #RakuLang please consider supporting the communities you rely on!

One good way to ensure a sustainable future for #OpenSource ecosystems like these, is to support active and fertile venues for learning and teaching these technologies.

Right now, you can help by supporting the Perl and Raku Conference, and later this year, the London Perl Workshop.

Is this relevant for you? Forward it to your manager! 💯

SocketSecurity,
@SocketSecurity@fosstodon.org avatar

LDAPjs, an LDAP client and server API for Node.js, was decommissioned after its maintainer received an abusive email from a user, raising concerns about this form of abuse as a potential attack vector. https://socket.dev/blog/ldapjs-open-source-project-decommissioned-after-maintainer-receives-abusive-email

julienbarnoin,
@julienbarnoin@mastodon.gamedev.place avatar

Nowadays terminals and other text views can get rendered with GPU acceleration support, like the kitty terminal that I use.

🤔 That means we could get bloom, chromatic aberration, distortion, depth of field and other post process effects into our terminals, what are we waiting for?

#programming #linux #terminal #cli #bash #vfx

hamoid,
@hamoid@genart.social avatar
jacob,
@jacob@me.dm avatar

“Which programming language should I use?”

stevensanderson,
@stevensanderson@mstdn.social avatar

🎉 New Post Alert! 🎉

Counting words in a string is a fundamental task in data analysis.

  1. Base R: Use strsplit(), a straightforward method to split strings and count words.

  2. stringr: The str_split() function from the stringr package makes the code more readable.

  3. stringi: For powerful and efficient string manipulation, stri_split_regex() from the stringi package is your go-to.

Happy coding! 🚀

#R #RStats #RProgramming #Programming #regex #Coding #strings

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

damien_dupre,

@stevensanderson what about stringr::str_count(x, "\\w+")?

stevensanderson,
@stevensanderson@mstdn.social avatar

@damien_dupre yes that works too

TheErlef,
@TheErlef@genserver.social avatar

Don’t miss the chance to participate in the Erlang Workshop!

The Erlang Workshop brings together the open source, academic, and industrial communities of Erlang, other BEAM-related languages, actor model programming, distribution, and concurrency to discuss techniques, technologies, languages, and other relevant topics.

Important dates:

Paper submission: May 30
Notification: June 27
Camera Ready: July

Get to know more at this link: https://icfp24.sigplan.org/home/erlang-2024#Call-for-Papers

lorddimwit,
@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?”

dannotdaniel,
@dannotdaniel@mastodon.social avatar

@lorddimwit who called it a core dump and not a FECALITY

sciencebase,
@sciencebase@mastodon.social avatar

@lorddimwit once in a typeface

julienbarnoin,
@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.

bobmagicii,
@bobmagicii@phpc.social avatar

@julienbarnoin the technical term for that i think is tombstone. in my web work we're mostly looking to see if they leave markers in the logs.

joelanman,
@joelanman@hachyderm.io avatar

missing from native Node - write a file and create any necessary folders in the path

fs.writeFileSync('a/b/c.txt','hello', {recursive:true})  

joelanman,
@joelanman@hachyderm.io avatar

@jscholes ah you're right! I was sure it threw an error but recursive: true doesnt, thanks!

joelanman,
@joelanman@hachyderm.io avatar

you can do this, thanks @jscholes

const filepath = 'a/b'  
fs.mkdirSync(filepath, { recursive: true })  
fs.writeFileSync(filepath + '/c.txt', 'hello')  
viking,
@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!

adnan,
@adnan@1210.nl avatar

@viking is that from the command line? How do you do it?

pixel,
@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/

davidbures,
@davidbures@mstdn.social avatar

@pixel Jk on the picture, this is probably the best guide I’ve seen so far. I’ve been struggling with adopting Codable for years

krisajenkins,
@krisajenkins@mastodon.social avatar

From to and beyond, there are coders that love the actor model. But how does it work? How do you design systems in an actor-based world?

Hugh McKee joins me to talk about the best patterns and approaches he's found for breaking the problem down and building an actor-system back up.

📺 Watch on YouTube: https://youtu.be/CBUWcUuG6Ss

🎧 Listen on Spotify: https://open.spotify.com/episode/6LvibKMNLLiJA1f1bfgzYI

jjimenezshaw,
@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.

davidbisset,
@davidbisset@phpc.social avatar

OH: "What's the difference between a light bulb and a ?

A light bulb stops working when it burns out."

davidbisset,
@davidbisset@phpc.social avatar

@webaware @nixCraft hence the “OH” :-)

davidbisset,
@davidbisset@phpc.social avatar

@webaware @nixCraft and I remember this joke at least a decade ago too. A classic.

swiftcraft,
@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

#coding #programming #swiftlang #softwareengineering #ios

lefebvre,
@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.)

vanilla,
@vanilla@social.spicyweb.dev avatar

Last month's exclusive video at The Spicy Web demonstrating a CodePen example of Signals—what they are, how they work, and why frontend frameworks and fans of vanilla alike are adopting them rapid-fire—is now available to view for free! Check it out:

https://www.spicyweb.dev/videos/2024/signals-are-eating-the-web/

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