Programming

tymwol,
@tymwol@hachyderm.io avatar

How not to be clever (for your own good) when :

  • Always start with a simple solution.
  • Prefer simple solutions over the clever and fancy.
  • Proceed in small steps.
  • Change one thing at a time.
  • Don't future-proof.
  • Commit often.
  • Fail fast.
  • Prefer boring technologies.
  • Better repeat yourself than create unnecessary dependencies.
  • Get rid of dead code ASAP.
  • Make things that are hard to misuse.
  • If it doesn't have tests, it probably has bugs.
tseitr,
@tseitr@mastodon.sdf.org avatar

@tymwol no no no! do a for_each loop over terraform modules for resources that all have their own specifics and then shit gets too complicated and people do -target apply and your whole IAC is broken.

speaking for a friend that have to clean up this mess.

pawelgrzybek,
@pawelgrzybek@mastodon.social avatar

Node.js 20.13 brought great improvements. My highlights:

► Watch mode is considered stable now
► The util.styleText now accepts an array of modifiers

Of course, I have articles about both of those features! I just updated both of them to reflect new announcements.

“TIL — Node v18.11.0 comes with a watch mode, so you might not need nodemon”
https://pawelgrzybek.com/til-node-v18-11-0-comes-with-a-watch-mode-so-you-might-not-need-nodemon/

“Node.js added utility for text formatting — you may not need chalk anymore”
https://pawelgrzybek.com/node-js-added-utility-for-text-formatting-you-may-not-need-chalk-anymore/

alexelcu,
@alexelcu@social.alexn.org avatar
TheErlef,
@TheErlef@genserver.social avatar

Why Erlang?!

Join Kiko Fernandez and Ingela Andin in their talk at @codebeamio!

As Erlang/OTP developers for Ericsson and the Erlang/OTP team, they will provide insights into the history of Erlang/OTP, focusing on what happened after it became open source.

This talk is for anyone interested in Erlang/OTP and computer science! Learn more here: https://codebeamstockholm.com/keynotes/why-erlang/

sos,
@sos@mastodon.gamedev.place avatar

After 29 years, C++23 finally introduces "print" function.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@quelsh @sos
could be deprecated at least

nf3xn,
@nf3xn@mastodon.social avatar

@sos y tho

henrikjernevad,
@henrikjernevad@mastodon.social avatar

Today's post discusses moving from imperative while and for loops to declarative collection functions like map and filter.

https://henko.net/blog/there-is-no-loop/

#programming #softwaredesign #softwaredevelopment

SergKoren,
@SergKoren@writing.exchange avatar

Thanks to a user on Mastodon @glitchcake, there is a programming language known as Emojicode https://www.emojicode.org

Please note, I find this to be the only valid reason to ever use emoji—ever.

AccordionBruce,
@AccordionBruce@mastodon.social avatar

@SergKoren

I’m not a programmer, but if I ever learned to code, I should start with this language

SergKoren,
@SergKoren@writing.exchange avatar

@AccordionBruce Actually, no. You shouldn’t. It’s not a user-friendly language.

nick_tune,
@nick_tune@hachyderm.io avatar

One thing I liked about Scala was the ability to work fairly seamlessly with possible nulls using map, flatMap, orElse, getOrElse and so on....

My first impressions are that it's not so smooth in typescript out of the box to work with optionals.

Hopefully I'm just missing a few key concepts.

devleader,
@devleader@hachyderm.io avatar
aral, (edited )
@aral@mastodon.ar.al avatar

This is a niche one but it might help someone in the future:

How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

https://codeberg.org/aral/gists/src/branch/main/how-to-include-multiple-directories-from-different-places-in-the-file-system-hierarchy-in-an-archive-without-including-the-whole-directory-structure-for-any-of-them.md

TL; DR: use symlinks.

4censord,
@4censord@unfug.social avatar

@aral can node tar not create an archive in multiple steps?
with normal tar, i'd just create an archive and add the first files, and then just append the other files to the archive with a tar command with different working directory

Direktory like:

.  
├── file1.txt  
├── file2.txt  
└── folder  
 └── file3.txt  

Commands:
tar cf archive.tar file{1,2}.txt
tar rf archive.tar -C folder file3.txt

Creates an archive like:
$ tar tf archive.tar
file1.txt
file2.txt
file3.txt

aral,
@aral@mastodon.ar.al avatar

@4censord It can but I’m not sure how I’d do that and keep a stream open to the browser (I’m streaming the archive to the HTTP response).

(I don’t want to create intermediary files.)

tanepiper,
@tanepiper@tane.codes avatar

Anyone else seeing more segfaults with #nodejs 22 and #npm

Going to have to go back to LTS as pipeline keep failing now when installing dependencies when using caching.

tanepiper,
@tanepiper@tane.codes avatar

Turns out the answer is DOWNLOAD MORE RAM.

Runners were using 8Gb images, so we bumped it up to 16Gb and all of a sudden no problems and it runs faster

nette_news,
@nette_news@phpc.social avatar

🥳 Latte 3.0.15 was released!

Latte - the first truly secure and
intuitive templates for PHP.

https://github.com/nette/latte/releases/tag/v3.0.15
https://nette.org/en/releases
https://latte.nette.org/

eed3si9n,
@eed3si9n@mastodon.social avatar

released sbt 1.10.0 featuring

  • SIP-51 support for Scala 2.13 by @lrytz at Lightbend
  • a wide range of Zinc fixes by Jerry Tan et al
  • ConsistentAnalysisFormat by Stefan Zeiger at Databricks
  • CommandProgress API by Iulian Dragos at Gradle Inc
    https://eed3si9n.com/sbt-1.10.0

a screencast of an sbt 1.10.0 session that demonstrates SIP-51 support. first, I type in

DM_Ronin,
@DM_Ronin@mstdn.social avatar

explaining pointers like you're 5

#C

DM_Ronin,
@DM_Ronin@mstdn.social avatar

explaining pointers like you're 5, part 2

#C

Bendodroid,
@Bendodroid@social.nekover.se avatar

@DM_Ronin Part 3 :blobcat3c:

image/jpeg

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:

eniko,
@eniko@peoplemaking.games avatar

@sos the nim guy is an unhinged right wing bigot so that's probably enough of a reason to pass on that one https://peoplemaking.games/@eniko/110652598034999459

sos,
@sos@mastodon.gamedev.place avatar

@eniko Oh that's why the hashtag summoned the trolls.

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