#amProgramming

Zuri (he/him) ๐Ÿ• CETshaedrich@mastodon.online
2025-06-18

Fellow people in #softwareDevelopment: How do you do "#CodeReview post-processing", meaning what do you do with the review comments that either weren't (considered) directly actionable during the MR/PR (e.g. follow-up tickets) or contained general feedback/shortcomings that have to be addressed outside the scope of the MR/PR (e.g. improve our handbook, "replace this in the whole codebase", "we need to discuss this as a team" etc.)?

#amCoding #amProgramming #softwareEngineering #webDevelopment

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

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

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

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

#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

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

Zuri (he/him) ๐Ÿ• CETshaedrich@mastodon.online
2024-12-28

In #TypeScript, is it possible to have a dependent string literal type like this:

type SomeType = `a.${keyof typeof B}.c.${keyof typeof B[d]}` // <-- B[d] is the important part here

#JavaScript #ECMAScript #amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering

Zuri (he/him) ๐Ÿ• CETshaedrich@mastodon.online
2024-12-17

Is it somehow possible to have a #TypeScript type like this:

`Model` here would be used both as the actual type and as the types name (as a string), similar to `class-string` in #PHP

#amCoding #amProgramming #softwareDevelopment #softwareEngineering

interface Related<Model> {
  [`${Lowercase<Model>}`]: Model,
  [`${Lowercase<Model>}Key`]: UUID
}
Zuri (he/him) ๐Ÿ• CETshaedrich@mastodon.online
2024-12-16

Has someone attempted to create a version of #ConventionalCommits based on using git trailers instead of the commit message's subject?

I mean, there've always been people complaining that this kind of semantic metadata wouldn't belong into the free-form subject

A reddit user also suggested using git notes for this purpose, but compared to git trailers, they have some trade-offs in functionality

#amCoding #amProgramming #softwareDevelopment #softwareEngineering

Zuri (he/him) ๐Ÿ• CETshaedrich@mastodon.online
2024-12-15

It would be nice to have organisation-level and repository-level profiles on #GitHub. This would enable users to customize their profiles based on the organisation/repository.

#amCoding #amProgramming #softwareDevelopment #softwareEngineering #WhatSoftwareCouldLookLike #DevEx #developerExperience #DX

Dries Vints GitHub profile but at an organisation levelshaedrich's GitHub profile but at an repository level

Client Info

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