Programming

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.

vascorsd,
@vascorsd@mastodon.social avatar

Sophie Collard CONTRAVARIANCE: INTUITION BUILDING AND EXAMPLES Scalar Conference 2024
https://www.youtube.com/watch?v=YSpkToittJY

vascorsd,
@vascorsd@mastodon.social avatar

Nicolas Rinaudo THE DEBATABLY FREE MONAD Scalar Conference 2024
https://www.youtube.com/watch?v=Yci07bMTcsM

stevensanderson,
@stevensanderson@mstdn.social avatar

If you work with text data in R, the gregexpr() function is essential for pattern matching. It finds all occurrences of a pattern within a string. Key parameters include pattern, text, ignore.case, perl, fixed, and useBytes. You can match characters, ignore case, use advanced regex, and search fixed strings.

#R

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

image/png
image/png

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

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

Adorable_Sergal,
@Adorable_Sergal@hachyderm.io avatar

I really should finish C so I can do Matlab

#matlab #programming

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?

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

“Which programming language should I use?”

#programming #softwaredevelopment #softwareengineering

preslavrachev,
@preslavrachev@mastodon.social avatar

Let's put an end to the age-old database debate, shall we?


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

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

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

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

stevensanderson,
@stevensanderson@mstdn.social avatar
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.

#programming #gamedev

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.

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