leanpub, to programming
@leanpub@mastodon.social avatar

NEW! A Leanpub Frontmatter Podcast Interview with Phil Sturgeon, Author of Surviving Other People's APIs | Watch here: https://youtu.be/KxDT3kXS82w

vascorsd, to programming
@vascorsd@mastodon.social avatar
vascorsd, to programming
@vascorsd@mastodon.social avatar
vascorsd, to programming
@vascorsd@mastodon.social avatar
hungryjoe, to programming
@hungryjoe@functional.cafe avatar

Potentially silly question

A lot of codebases have a CI step that validates that the code is formatted correctly

Is there a compelling reason not to do this as part of the unit test framework?

Like, pull in your code formatter as a test dependency, and write a test that checks the formatting.

Advantages are

  • the CI config would be simpler
  • you're less likely to forget to run the formatter
  • versioning the code formatter along with the other dependencies
  • you get the formatting errors bundled with the test output

Disadvantages are???

trick, to Blog
@trick@hachyderm.io avatar

🤖: Kaixo! AutoTrick here with your daily . Yesterday, Trick made 3 posts on his . Including posts about: , & .

Here's the day's archive for you to read: https://trickjarrett.com/2024-05-19.html

lefebvre, to programming
@lefebvre@hachyderm.io avatar
eniko, to gamedev
@eniko@peoplemaking.games avatar

tfw game developer

#GameDev #IndieDev #Programming

ALTAnlp, to programming
@ALTAnlp@sigmoid.social avatar

CALL FOR PROBLEMS FOR SHARED TASK FOR #ALTA2024 WORKSHOP

The ALTA shared tasks are targeted at #university students with #programming experience.

They should be related to a #language #technology task, able to be automatically evaluated, with training and test #data able to be distributed to participants at low- or no-cost, and should be fun!

📆 Submissions by Friday 7 June 2024.

✉️ shared-task@alta.asn.au

https://alta2024.alta.asn.au/calls

tripleo, to random
@tripleo@fosstodon.org avatar

All you nutcases still using #Perl, what's actually wrong with it?

aka What are the sharp edges?

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@tripleo #Perl’s “sharp edges” are mainly early syntax and features that later experience with large and networked #programming found dangerous, but are preserved for backward (and we do mean “backward”) compatibility.

See the details of the strict and warnings pragmas, and successively missing items in feature bundles:

https://perldoc.perl.org/strict
https://perldoc.perl.org/warnings
https://perldoc.perl.org/feature#FEATURE-BUNDLES

And the summary of policies included in #PerlCritic: https://MetaCPAN.org/pod/Perl::Critic::PolicySummary

mjgardner,
@mjgardner@social.sdf.org avatar

@tripleo I would also be remiss not to mention #Perl's included perltrap manual page, which notes both the strict and warnings pragmas and also has nice lists of things for those coming from other #programming languages and tools like #AWK, #C and #CPlusPlus, #JavaScript, #sed, and #shell.

https://perldoc.perl.org/perltrap

mjgardner,
@mjgardner@social.sdf.org avatar

@tripleo You’re thinking of #Perl’s “taint mode” (stop your teenage giggling), where outside data is untrusted unless it’s the extracted subpattern match in a #RegularExpression.

It’s only enabled under certain conditions. Read about it in the perlsec manual page: https://perldoc.perl.org/perlsec#Taint-mode

#programming #security #InfoSec #CyberSecurity #RegEx #RegExp

ovid, to Lisp
@ovid@fosstodon.org avatar

, , and are three powerful programming languages that share a common feature.

Nobody knows how the hell to capitalize them.

smurthys, to llm
@smurthys@hachyderm.io avatar

I just finished a productive Copilot session on a complex programming task. I came up with much of the algorithms, and wrote a lot of the code, and had to guide it a lot throughout, but credit where due, Copilot did make small but meaningful contributions along the way.

Overall, not a pair programmer but someone useful to talk to when WFH alone on complex tasks.

Enough for Copilot to earn a ✋🏽. And I like how it responded to that. It has got that part down. 😉

wezm, to programming
@wezm@mastodon.decentralised.social avatar
matdevdug, to ai
@matdevdug@c.im avatar

One thing that’s funny about #ai and #programming is I keep hearing the same thing. “Oh I use it for generic snippets, just common tasks and functions”.

The amusing thing about that is when I first started working with a #php app years ago there was already a solution to that problem. It was called “the PHP Cookbook” published by O’Reilly. I was told “oh we buy you a PDF copy and you just search for whatever you are trying to do and use that code. It saves a ton of time for junior programmers.”

Not only was it true, it did save me a ton of time and headaches, but we didn’t need to steal anything. The authors got paid, it worked offline, it didn’t require scraping the entirety of human knowledge to write or nuclear power plants worth of energy to distribute.

It also helped me learn. Since I would have a solid foundation to the solution, I felt more confident experimenting. I always had a known-functioning standard library solution as my base. So when something broke I knew where to start debugging.

Just an incredible thought that instead of paying $20 for a pdf once we decided this was the way to go.

mikaeleiman, to programming
@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?

gregorni, to programming
@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.

pixel, to apple
@pixel@social.pixels.pizza avatar

The story of how the graphing calculator application made it onto the Mac.


http://www.pacifict.com/Story/

neloj, to haskell

I've been trying to make this work for a few days and finally I achieved it, the most basic form of a wayland client using unix sockets, and well in other languages it was not difficult at all, I did it in hare, c, typescript (deno), and in the end I wanted to try with a language that I had never used, Haskell, and I learned many things but I still don't know what a monod is, anyway, here I leave a link to the code for those who are interested: https://gitlab.com/-/snippets/3711372

weirdwriter, to programming
pixel, to iOS
@pixel@social.pixels.pizza avatar
Crell, to php
@Crell@phpc.social avatar

Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.

#PHP #Laravel #Programming

iammannyj, to programming
@iammannyj@fosstodon.org avatar

Basic programming language celebrates its 60th birthday

The first Basic interpreter went live in May 1964. This was intended to make it easier to learn programming. However, the computers to go with it were not available until much later.

Basic is the abbreviation for "Beginner's All-Purpose Symbolic Instruction Code". In other words, it is a general-purpose programming language for beginners.

https://www.digitec.ch/en/page/basic-programming-language-celebrates-its-60th-birthday-32957 #basic #programming #coding

matdevdug, to python
@matdevdug@c.im avatar

Hey experts, what’s the best way to make a single binary on Linux for Linux that I can deploy safely without needing a container? Is it PyInstaller? Nuitka? Bazel? Thanks!

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