claras_universe, to rust
@claras_universe@ieji.de avatar

I am now working on my own chess API and it’s actually pretty fun. I learned that using bitboards is apparently very efficient. So I now use 8 64bit bitboards, 2 for the color and 6 for the pieces (I thought about just using 7 because you COULD theoretically represent the colors in one bitboard, but using 2 makes it faster at the expense of an extra 64 bit, which is neglegible). Gonna continue on this in the upcoming days :3

aksharvarma, to programming
@aksharvarma@mathstodon.xyz avatar

Evolution of how I think of while :

  1. When I first learned "loops":

while (condition is true) {do these things, adjust things so a slightly new condition is checked}

// That's where I first saw infinite loop and how there are intentional infinite loops.

  1. A small step to move condition update out of the loop body:

for (i=0; i< N; i++) {do these things}

// After the couple of days it took to get used to them, I found them neater and closer to how I think of things.

  1. Most of the time, the i from before is indexing into something, so let's directly deal with the item being indexed:

for item in collection:
do stuff

After the few days to rewire syntax muscle memory, going back would decidedly feel like a step back.

I don't want to give up automatic (and transparent) out-of-bound checks.

  1. There are actually only about 3/4 things one does inside a loop:

map/fold/scan/filter function-to-call collection-to-traverse-through

;; Getting rid of explicit indexing was just step one.
-- After a few days/months/years, I now realize that it is more important and less buggy if I think only of the function to call (and whether I want to end up with a new (maybe pruned) collection, a single thing, or "both" (that's how I think of scans))


Alternatively, my evolution as I learned new languages idioms:
-->
or -->
-->
or --> ???

demiurg, to random
@demiurg@fosstodon.org avatar

Believe it or not, but developing good software has nothing to do with the language you use!

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

working on the next release of TidyDensity

#R

stevensanderson,
@stevensanderson@mstdn.social avatar
dcz, to opensource
@dcz@fosstodon.org avatar

The feeling when 87.5% of the discussion under your contribution is about : unreliable CI and insignificant .

Congrats, the project has created a barrier to entry for anyone who hasn't been into it for years already.

Hint: give everyone a freaking that satisfies your needs and let us move on to actual work, without having to redo the same stuff 8 times. Sheesh.

davidshq, to NoStupidQuestions
@davidshq@hachyderm.io avatar

I've got a strange one for all my #coding friends today.

I rebased a local branch of a repo and did the usual #git push --force to overwrite the remote branch.

A git status shows everything is great but five seconds later #VSC is showing the same conflict due to the diverging branches.

If I exit out of VSC I can run git push --force and the conflict doesn't return.

I can open the files in WebStorm and all is fine.

But the moment I open VSC the conflict returns

#question #problem #help

itsfoss, to linux
@itsfoss@mastodon.social avatar

Fedora users, ready to code? 💻

https://itsfoss.com/install-vs-code-fedora/

poachme, to random
@poachme@mastodon.social avatar

Join us for our weekly showcases featuring cutting-edge products designed to enhance client satisfaction and elevate your digital strategies for achieving increased success! Immerse yourself in an interactive virtual setting as we assist you in enhancing user interaction.

video/mp4

VoxDei, to ai
@VoxDei@qoto.org avatar

Argh... reviewing a colleague's python code, and he's used ChatGPT or Copilot or some other AI "helper" to write a bunch of the code. And it's just got a load of "Why the hell have you done this?" bits. Especially in the unit tests - it really doesn't know how to write pytest tests.

If you don't know what you're doing it looks halfway reasonable, and it kind-of-sort-of works, but... you'd never write that code if you were doing it yourself.

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Exciting news for R users! TidyDensity's latest update introduces util_chisquare_param_estimate(), leveraging MLE to estimate Chi-square distribution parameters like dof and ncp.

Generate a dataset with rchisq() and use util_chisquare_param_estimate() to analyze it, even without knowing the underlying distribution. Visualize results with tidy_combined_autoplot().

Try it in your next R project!

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

#R

image/png
image/png
image/png

gnulinux, to python German
@gnulinux@social.anoxinon.de avatar

Wie kommen eigentlich die Screenshots in die Mint-Anwendungsverwaltung?

Ein (sehr nerdiger) Blick unter die Haube des App Stores einer der beliebtesten Distributionen, die es gibt.

https://gnulinux.ch/wie-kommen-screenshots-in-die-mint-anwendungsverwaltung

Lumpbucket, to demoscene
@Lumpbucket@mastodon.social avatar
stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Exciting news for data analysts! Try check_duplicate_rows() from TidyDensity in R to identify duplicate rows in datasets.

This new function simplifies data cleaning and enhances accuracy in analyses. Give it a go today!

#DataAnalysis #RStats #R #Programming #Coding #Data

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

image/png

stevensanderson, to python
@stevensanderson@mstdn.social avatar

Feeling stuck with Excel for data analysis?

My new book which was co-authored by David Kun, Extending Excel with Python & R, shows you how to leverage the strengths of BOTH worlds!

Here's what you'll gain:
🧐 Advanced data manipulation & cleaning
💻 Powerful statistical analysis & modeling
📉 Eye-catching data visualizations
🌟 Seamless integration back to Excel

Get your copy today! https://packt.link/oTyZJ

#dataanalysis #python #R #excel #data #visualization #booklaunch #Coding #Programming

stevensanderson, to programming
@stevensanderson@mstdn.social avatar
awoodsnet, to vim
@awoodsnet@phpc.social avatar

People often talk about Emacs vs Vim. Every developer I’ve met uses Vim. Occasionally, some of the vim users will say they have previously emacs, but switched to vim.

So where are all the people who are currently using Emacs?

I’m not trolling or looking for an argument. I legit want to know!

Ryan,
@Ryan@mastodon.mackners.com avatar

@awoodsnet
has been great for writing, listening to internet radio, connecting to and , managing multi accounts and maybe some if I get bored. It's more than just a text editor and can be a to many great applications.

noellemitchell, to webdev
@noellemitchell@mstdn.social avatar

Just updated the HTML on my Neocities homepage to semantic HTML, I think it's an improvement over what the HTML was previously 😅

https://noellesbookshelf.neocities.org

clarinette, to python
@clarinette@mastodon.online avatar

Google lays off its entire team.
Google's decision to lay off its talented workers may backfire, as their competitors will be happy to hire them. https://www.linkedin.com/pulse/google-gets-mckinseyed-sergei-polevikov-abd-mba-ms-ma--gqnde?utm_source=share&utm_medium=member_ios&utm_campaign=share_via

GlenDownton, to random
@GlenDownton@mastodon.au avatar

What better way to spend a glorious autumn Sunday afternoon than refactoring a pile of to make it thread-safe?

Actually, even I can't tell if I'm being serious here or not :/

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

I have published version 1.4.0 of my TidyDensity #R

I’ll share the updates all next week

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Discover efficient string splitting in R using strsplit()!

Learn practical examples and unleash the power of regular expressions.

Enhance your data cleaning skills and level up your R programming.

Experiment with strsplit() today!

Post: https://www.spsanderson.com/steveondata/posts/2024-04-26/

#R

image/png

GlenDownton, to random
@GlenDownton@mastodon.au avatar
metin, to programming
@metin@graphics.social avatar

The more modest a developer is, the smaller the application version increments. Some indie coders add brilliant new functionality, and change the version from 0.9 to 0.9.1, while corporations often add a few minor improvements once a year, and jump from 1.0 to 2.0.

drcaberry, to ArtificialIntelligence
@drcaberry@blacktwitter.io avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • DreamBathrooms
  • provamag3
  • modclub
  • mdbf
  • normalnudes
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • tester
  • anitta
  • cisconetworking
  • Leos
  • JUstTest
  • All magazines