#amCoding

2025-05-30

I want to make a linter rule for our team that you are not permitted to name a variable "data"

const data = JSON.parse(message)

#ffs #amCoding

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-05-20

Don't force software developers into using and producing #AI tools. If you want prompt engineers, get prompt engineers, not software developers—these are two vastly(!) different professions (for a reason!).

Otherwise, the industry will beg for coders in a decade, if even that far into the future—mark my words. Because they will either have quitted, unlearned or ever learned coding.

#amCoding #amProgramming #ArtificialIntelligence #generativeAI #genAI #softwareDevelopment #softwareEngineering

2025-03-15

Well, finally got through all the dependencies I needed to do a little refactoring to document what I want to do with my fun project. Not sure if "writing documentation" is fun by itself.

Project Layout (v4.0.0, 2025-03-15)
https://d.moonfire.us/garden/project-layout/
https://src.mfgames.com/dmoonfire-garden/project-layout

So, the initial version of v4 project layout that explains that last year or so of my development evolution on private projects:

  • Expanded philosophies
  • Why I switched to Just
  • My reasons for using .config/ for configuration files
  • High-level use of Nix flakes including my two project setup flakes
  • Standard directories on polyglot projects

#NixOS #DigitalGardening #AmCoding #AmDocumenting

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-03-04

#artificialIntelligence still can't reasonably(!) replace you (sure, you can be fired due to the #AI hype nonetheless), but AI can destroy the whole industry sector by destroying the trust in honest programmers:

linkedin.com/posts/intrepidkar

#amProgramming #amCoding #genAI #generativeAI #ChatBot #LeetCode #softwareEngineering #softwareDevelopment

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-02-08

#Laravel 12.x is coming to us on February 24th

Looking forward to it! 🚀

#PHP #amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDev #webDevelopment

2025-02-05

Yes! It's so satisfying when you refactor your code after three weeks of experimenting with a new library, and you have some thousand lines of code less but more features and improved stability.
I'm more than happy :D

#coding #amCoding #python

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-02-04

Another #CodeGolf puzzle for #JavaScript #WebDev people:

I have n functions that type one argument of the same type and return a boolean.

The current usage is:
function a(b) {
return c(b) && d(b)
}

I boiled down a to
a = (b) => [c, d].every(fn => fn(x))

I assume, this can be further boiled down via bind/ #PartialApplication/ #Currying

What do you think?

#amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering

2025-02-04

Today's log for trying to get fiss (my Rust CLI for duplicating some of TaskWarrior's functionality using Forgejo issues) doing something useful. Tonight's goal is to get fiss list showing a list of issues to subscribe forge projects which no regards for filtering.

It's a weekday and I need to figure out how to assemble a weight machine, so hopefully this won't take wrong.

Narrator: Dylan was wrong, of course.

The rest will be unlisted.

#AmCoding #RustLanguage

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-30

When using a #MySQL database, is it possible in one go, when adding a new column to an existing table, to use one default value for existing columns (initial migration, so to speak), but another for every new row going forward (real default)?

Scenario: I want to set the value in pre-existing columns to true, but in all subsequent rows to false by default.

#amCoding #amProgramming #softwareDevelopment #softwareEngineering #databaseEngineering #databaseArchitecture #dbms #SQL

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-30

Has someone attempted to build a #CodeReview tool that relies more on #git itself like using git notes and git trailers and such?

#VersionControl #VCS #PullRequest #MergeRequest #GitHub #BitBucket #GitLab #Gerrit #Gitea #forgejo #Codeberg #amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDevelopment

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-28

Please, please, when talking about runtime stuff, call it #JavaScript, not #TypeScript—String.prototype.toLowerCase() is a JavaScript feature, not a TypeScript feature, so your tutorial "How to change my string to lower case in TypeScript" doesn't make sense

Please, please, when talking about server-side features, call it #NodeJS, not JavaScript—I know, it's also JS, but people WILL get confused, because JavaScript is mostly understood as a totum pro parte for client-side JavaScript

#amCoding

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-28

#TypeScript devs: I have the following class, emitting the type error below. How is it that TS isn't able to infer the type of the props correctly and how can I make it?

#amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering

class MyClass {
  readonly key: string | number | boolean
  readonly value: string | number | boolean
  
  constructor(key: string | number | boolean, value: string | number | boolean | undefined) {
    this.key = key
    this.value = value ?? key
  }
}

enum MyEnum {
  A = 1,
  B = 2,
}

const myInstance = new MyClass('A', 'a')
const myIndex = MyEnum[myInstance.key]
// Error: Type 'false' cannot be used as an index type.(2538)
// Error: Type 'true' cannot be used as an index type.(2538)
Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-28

#TypeScript/ #Vue devs: I have this generic component using defineModel(). Now, I want to make the type conditional:
– if props.multiple, return T[] | undefined
– else, return T | undefined

How would you approach this?

#amProgramming #amCoding #webDevelopment #softwareDevelopment #softwareEngineering

<!-- GenericComponent.vue -->
<template>
	<select v-if="multiple"></select>
	<select v-else multiple></select>
</template>



<!-- SomeComponent.vue -->
<template>
	<GenericComponent @update:modelValue="(model: string) => console.log(model.toLowerCase()">
</template>
<!-- Error: Cannot call toLowerCase() on string[] -->
<!-- Error: Cannot call toLowerCase() on undefined -->
Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-16

When in doubt if your comment an a #PullRequest/ #MergeRequest/ #CodeReview or the like was substantial enough to be credited via a git trailer (e.g. Co-authored-by), what would you prefer that the other developer would do by default in that case?

#amCoding #amProgramming #softwareEngineering #softwareDevelopment #git #gitTrailers

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-13

Was sind eure "dummen*" ersten Worte beim daily standup meeting, wenn ihr sowas macht?

* "dumm" deshalb, weil unnötig/unpassend

#amCoding #amProgramming #softwareDevelopment #softwareEngineering #remoteWork #scrum #agile

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-12

Dear #openSource maintainers,

when you are not interested in a change—which, of course, is totally fine—please straight out say so instead of discussing it at length for weeks or months, signaling interest with this, until you just say "no". #FOSS volunteers can waste their time better.

#webDev #webDevelopment #amCoding #amProgramming #softwareDevelopment #softwareEngineering

2025-01-11

Listening to the Met Opera Saturday matinee and coding... you?

#amCoding #nowListening #opera

Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-09

I am sure. I would love to disable it, but you deliberately didn't include a "disable" button and then sent all the devs into their Christmas and New Year vacation

#GitHub #AI #GitHubCopilot #ChatBot #ArtificialIntelligence #genAI #generativeAI #amCoding #amProgramming #softwareEngineering #softwareDevelopment #ensh11n #enshittification #chokepointCapitalism

GitHub war live: Not sure how to best use GitHub Copilot for your projects? Come learn some tips and tricks!
Zuri (he/him) 🕐 CETshaedrich@mastodon.online
2025-01-07

#GitHub bot be like: No replies to this issue. Can I close it?

Well, this is because YOUR OWNERS didn't bother to reply yet. Nothing, I can do about this. I hope, you realize that your question comes across rather cynical.

#amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst