Sign in

Kyle Wascher

@waschlogic.com
176 followers 747 following 130 posts

Current: #ReactNative #ComputerVision #ML #typescript #android #ios Past: 14 years of corporate dev, #csharp #dotnetcore #react #sql #MLS #ColumbusCrew #USWNT #USMNT #Fishing

PostsRepliesMedia
Kyle Wascher @waschlogic.com · 03/12/2024
Typescripts biggest lacking feature -> Go to definition for TypeScript literal strings github.com/microsoft/Ty...
A VSCode Screenshot showing some typescript and react code.

VSCode has a goto definition dialog open, with "Go to Definition" highlighted.
020
Kyle Wascher @waschlogic.com · 19/11/2024
/shutters
110
Kyle Wascher @waschlogic.com · 15/11/2024
Here's a real world example: I originally hard coded my fish species with a human friendly string. Ex: "Smallmouth Bass" Later during development I realized It makes more sense to have its own table. Here's a patch that adds `species_id` and removes `species`.
ALTER TABLE fishing_trip_catch ADD `species_id` text REFERENCES fish_species(id);--> statement-breakpoint
UPDATE fishing_trip_catch SET species_id = 'bass_smallmouth' WHERE species = 'Smallmouth Bass';
UPDATE fishing_trip_catch SET species_id = 'bass_largemouth' WHERE species = 'Largemouth Bass';
UPDATE fishing_trip_catch SET species_id = 'catfish_channel' WHERE species = 'Catfish';
UPDATE fishing_trip_catch SET species_id = 'crappie_black' WHERE species = 'Crappie';
UPDATE fishing_trip_catch SET species_id = 'muskellunge_northern' WHERE species = 'Muskie';
UPDATE fishing_trip_catch SET species_id = 'northern_pike' WHERE species = 'Northern Pike';
UPDATE fishing_trip_catch SET species_id = 'perch_yellow' WHERE species = 'Yellow Perch';
UPDATE fishing_trip_catch SET species_id = 'salmon_chinook' WHERE species = 'Chinook Salmon';
UPDATE fishing_trip_catch SET species_id = 'salmon_atlantic' WHERE species = 'Atlantic Salmon';
UPDATE fishing_trip_catch SET species_id = 'trout_lake' WHERE species = 'Lake Trout';
UPDATE fishing_trip_catch SET species_id = 'trout_brown' WHERE species = 'Brown Trout';
UPDATE fishing_trip_catch SET species_id = 'walleye' WHERE species = 'Walleye';

ALTER TABLE `fishing_trip_catch` DROP COLUMN `species`;
110
Kyle Wascher @waschlogic.com · 15/11/2024
I use sql migrations. I have a simple folder with straight sql files for schema changes. (They are randomly generated names lol)
110
Kyle Wascher @waschlogic.com · 07/11/2024
Starting to see lots of tech folks in my timeline! The time has come.
Friendship ended with x, now BSKY is my best friend.
040