#programmers-off-topic
1 messages · Page 39 of 1
Is Java actually that bad
(no)
I hate it for its influence
It's not a bad language. Just a bad language to learn first.
But as a standalone language it's fine
Devs who start off with Java pick up too many bad habits and too few good habits.
It's just worse C#
Hi, nice to meet you, I learned Pascal only in Computer Science in high school.
anyway the best joke language is INTERCAL https://en.wikipedia.org/wiki/INTERCAL
I started with vba
Intercal implemented COMEFROM so I have to agree there.
I'm tainted for life
the thing where you have to use PLEASE enough times, but not too many, is comedy gold
You started with VBA maybe, but I'll bet like a lot of us who dealt with VBA, it wasn't on an academic or formal basis, it was just a tool to solve specific (and generally narrow) problems.
Yup
That's different from students being taught Java in the context of "this is how to do programming"
You might be emotionally scarred by VBA, but that's also different.
True to the MathPerson label, then.
We made Conway’s game of life
You could actually do some impressive graphical things with Turbo Pascal as long as you figured out how to set the different VGA modes and such.
It was very obscure, and I don't even remember the details anymore, but it could be done. You could make side-scroller games, even.
My first big code endeavor was probably RPG maker, which I think was VBA
First game modding I did was for the original Sims
I did Django next
Scarred for life 😛
Geez, you really got the short end of the stick on your programming intros.
What was after Django - FORTRAN? Perl?
A Sieve of Eratosthenes benchmark, computing all prime numbers less than 65536, was tested on a Sun SPARCstation 1 in 1992. In C, it took less than half a second; the same program in INTERCAL took over seventeen hours.[10]
see? best.
That's a step up, I'd say.
Are you a teacher?
I have been partially corrected — my fiancé started out in pascal (not in the US education system though)
I’m a professor, but not in CS
(congrats btw)
(I know I'm late)
Cool, I teach Social Studies
It was definitely a thing in some schools. The ones that had some latitude over the curricula, before Common Core and all that.
And presumably outside the USA.
Tbh I didn't even know pascal existed lol
Pascal was all my school had, granted this was in like 97. I mean the internet was barely a thing
That's where PascalCase comes from!
Yeah, that. Also, if you've heard of ADA, I'm pretty sure that's a Pascal variant.
I misread that as PascalCore and thought you made a framework to make pascal mods
American disability act?
ADA used to be the butt of many programming jokes... but again, maybe before your time.
I did not but I will now /s
This is also what it means to me
Actually I'm being senile again, it's not an acronym, it's just "Ada".
Ada is a structured, statically typed, imperative, and object-oriented high-level programming language, inspired by Pascal and other languages. It has built-in language support for design by contract (DbC), extremely strong typing, explicit concurrency, tasks, synchronous message passing, protected objects, and non-determinism. Ada improves code...
For Ada Lovelace?
yeah I was gonna say, isn't it just a name
Anyway, Ada was (is?) big in miltech.
Currently self learning c# for Stardew
Suspiciously on topic
Saying the name of the game in this channel = autoban
I have been modding Minecraft for years, so it has been basically JSON, JavaScript, and learned Python for discord bots.
aw
So, just me then, Ill see myself out.
I would totally ban him anyway just for the lulz, but sadly I lack the executive power,
Not to the game!!!
Anyway, Atra doesn't really want to get banned, where else would he post photos of his needlework?
(And that's a good thing)
R/knitting
And the thread in krobus
Antics? In my unhinged discord server?
We talked about first languages, what was everyone first home computer running
XP
I think it was XP for me too
Yep, I'm old
MacOS 8.6 lol
Casey, this is why I can joke about raising offspring in an anti technology cult
MS-DOS, obviously
In this day and age, I'm on board with that
I'm the type of hardware dev that doesn't trust the damn things
Oh wait... that prize probably goes to whatever the hell the Apple II ran, I don't even know the name.
Atra moving to Amish land confirmed
Our first computer when I was a kid was a dos based 5in floppy disc machine with a green on black screen
Atra send me blue popcorn kernels from Amish land
Blue what?
popcorn
googles
Every day I'm closer to asking my friend who owns a farm if I can. Be a part time farmhand
Midnight blue doesn't count as blue
When you said blue popcorn kernels I was thinking like blue blue
You take that back
Never
is there midday blue
I was going to say blue lives matter but that's a completely different movement
All shades of blue are valid
How can you even call something a color if it isn't colorful
Midnight blue is just fancy black/gray
I mean, the result for "midnight blue" google search looks blue
But that popcorn is NOT blue
Black isn't a color though, and blue is
I learned that too, don't remember why now though
Maybe spreadsheet macros on opensheets
I think technically mine was lua (Roblox), if Game Maker 7's not-text code doesn't count
The first one I properly used was Java in college, but I think i mucked about with simple bash scripting a bit earlier
Oh wait
I remember something maybe older
Well, maybe not
I was gonna say "some software where you moved around a turtle" but that was during middle school I think? And I got into Game Maker at the end of elementary school
Like the python one or
No
Like code academy
Game maker was also elementary for me
If google AI is to be trusted (a big if) it's called Logo
moving the turtle with code was definitely called Logo. i remember it well
Are you saying google AI was actually correct for once???
(i'm not an AI, but can you really take my word for it?)
that's what an AI would say..
oh we also had the turtle moving thing in middle school
I remember Logo, though I don't think it was the first.
(I've heard Pathos's voice but that's clearly just one of those fancy AI voices)
Funny thing is, Logo isn't all that different from SVG.
I want to try a make something using GB Studio
that would be neat
the first C program I ever wrote was an awful version of Pong for game boy
I tried to get my twin brother into gb studio at one point
Looks fairly straightforward visual scripting
Plus the fact you can throw the game you make into a handheld like an anbernic is pretty cool
I think i looked into it at some point, although I think they added a lot more game options, it used to be just kinda Zelda-ish games
Yeah, it has gotten better. I believe it can do color stuff now too
This conversation reminded me of the time I was asking about something on the SFML forums and it turns out I just didn't understand how references worked
(Back in 2010)
San Francisco Market Life
...im not sure whether to believe you
I think a goal of mine is going to try and make a game every month or every 2 weeks in 2025
To what standard
to the standard of whatever i can get done in 2-4 weeks
Like are we talking Any% game dev, maybe it has sound, maybe the character is a square
i think i can get more than that hopefully, but yeah mostly little tech demos
I should get back into making small games too
Honestly same
it wont be from scratch, there are a few engines I know how to use, Pico-8, some Godot, Love2D, then some others I'd like to try such as GB studio
My problem is usually coming up with an idea I like
Most of the game ideas I really like are larger
I guess I should try stripping them down to the bare minimum and building that
I feel you
It's hard personally to imagine something on the scale of like, an arcade cabinet
yeah im awful at coming up with ideas
An actual arcade cabinet would be fun tbh
Like
With leds
Give me a reason to lasercut
I think I'm thinking of pinball actually
I used to be able to do it, hence my ~5ish Ludum Dare games
(Though a couple were pretty bad)
Hey Casey, would you ever be interested in making a pinball
This was able back before I used any game engines - just me, C++, and SFML
Fancy!
(I mean, I guess you could argue I still don't since I only rarely use Godot)
is SFML just SDL but fancier
Basically, it's object oriented
I don't actually know how pinball physics work 
neither do I
SFML is written in C++ instead of C, so it can do fancy C++ things
And it's hardware accelerated since it uses opengl (which I think newer SDL might? But SDL at the time you had to use opengl directly for hardware acceleration I think)
Isn’t it just bouncing?
Pinball physics are definitely not normal gravity.
Maybe with a tiny bit of gravity
Well sure, but don't you have to like. Know what direction the ball is going based on the angle it hits and stuff
That part should just be normal vector reflection?
Pinball gravity is whack, but reflection is normal, or as normal as it gets for rounded surfaces.
i mean, yes, like, yes. I can indeed deal with kinematics
I also don't know what "pinball" "scoring" is
You probably don't even need to deal with kinematics, I'll bet pinball would run just fine with standard collision dynamics and a bit of screwing around with gravity.
Ah, I assumed you meant software given you asked me if I wanted to 😛
(same)
you made a controller!
And a controller is... like a pinball cabinet? Hm...
I mean, I did the code for it, but not the hardware. I told you the only way to control the buttons was to manually connect the wires, right? 😛
perfect! I'll start with a cad model shortly
Are you planning on shipping me an entire arcade cabinet for me to work on or something 😛
I'll figure it out 
You know that these machines are vertically integrated, right? Like, putting together a non-functioning cabinet and then saying "ok, software now" is not going to work.
Don't be such a pessimist - I'm sure atra has some fancy magic to make things that simple
inb4 Atra recreates the Hanaho arcade cabinets
Yes, PinballBase and PinballCore will solve everything, surely.
I've always wanted to harmony patch reality to get past those silly physical constraints
I can't hear you, I'm on digikey shopping for fpgas
PinballCore will be written in Verilog. You know Verilog, right Casey?
Vaguely
No hallucination 
Has the professor been secretly replaced with AI? Quick tell them to ignore previous instructions and sing I'm a Little Teapot
I might just give up on this class, the first 5 classes were on data analysis in biology, so I didn't understand much...
what a wild class
The heck
that's insane
your professor is a void person who has fully bought the hype of generative AI replacing work, so they are teaching you how to be an effective prompt jockey
yep, information science department
the worse is that it's not even the same class as the LaTeX class I was talking about last time
I asked copilot chat for advice recently in an act of desperation but then it gave me some super generic advice I had no use for that was simultaneously also incorrect
oh, this is stardew so i should clarify: "void person (derogatory)"

I actually do have it write generic data parse code for me all the time
Although I might be getting an intern soon so
copilot helps me quite significantly with setting up mappers and data models
it just doesn't do anything technically complicated
Soon your intern will have it write generic code instead of you having to do it yourself
in this case, you're asking it something that you know how to do but is borring and takes time, my case is replacing learning (in some sense)
One of my super smart professors has developed an obsession with AI and uses it for just about everything.
He's developed tools which use AI to advise students for him (like what classes they need to take)
Some of the assignments I do is graded by AI lol
If I was paying for a class and I had that happen I would be complaining to literally everyone I could.
it seems I picked the right time to graduate
wrong chat lol, try #making-mods-general
now my message looks weird
my current semester has also been very disappointingly focused on AI and discarding everything else but thankfully ive not actually been asked to use it yet
so yeah id say you chose the right time
Tit for tat: if it's OK for the professor to grade it with AI, then it's OK for you to write it with AI.
You'd figure as much, but it's one of those "rules for thee but not for me" kind of thing. Ironically enough, my college has a strict policy on plagiarism and AI.
the funny thing is, I also had an assignment this semester in which I had to generate an essay with AI.
The difference? we had to then rewrite the thing ourselves to highlight the difference in the quality of output of ChatGPT and a group of masters students. the whole point was to show how genAI isn't the best for academic/legal writing and it was honestly quite interesting, plus we still had to conduct academic research as usual
the class that was for is on regulating AI, though
Do they now? I wonder if the professor is really as exempt from the rules as he believes he is.
Depends on how the rules are structured - Examination Rules of Ethics would not apply to a prof if they're designed to cover the academic conduct of the students only, and not the grading process. 
Oh of course, of course, I'd never even think about suggesting any sort of work-to-rule scenario, merely musing about the hypothetical possibility.
I'm wondering the same! Just also... slightly traumatised by all the fear-mongering my current university does over plagiarism
The fear of accidental plagiarism is very much at the front of my mind at all times when doing an assignment.
One might almost be led to believe, incorrectly of course, that the rules are designed to be enforced selectively and arbitrarily.
My University doesn't have written out rules for AI use by professors, he looked into it before he started using it.
Of course they don't have written out rules for professors; that's hardly my point.
When one intentionally designs a system with exploitable vulnerabilities, one tends to find them being exploited by rivals and enemies as well as allies.
System.out.println("Hello world");

.choose do anything, flail around uselessly
Choose result: flail around uselessly
True
order received 🫡
Thanksgiving is a good day to take off 
Something behind me at work is beeping
If you never hear from me again, you know why
Also I need to get one of those shirts that say "if you see me running, run faster"
This shirt but for chemicals instead
Something was beeping in the house yesterday
We thought it was the smoke alarms, but we took all of them down and it was still beeping
So we narrowed it down to the games cabinet with careful listening
But then it wasn’t the games!!
There was a smoke alarm hidden in the games
Oh darn, what job do you do?
Interesting place to put an alarm. Lol
the only time my smoke alarm has ever gone off was when I burnt a grilled cheese sandwich
Mine does it every time I cook pizza in the oven.
The suspicion I have is that it was placed there as a convenient shelf when the smoke alarm was last being replaced
It doesn’t normally live there p sure
my fucking smoke alarm was going off very briefly in the middle of the night then stopping, every two weeks
after like two months i finally figured out which one was malfunctioning
my mom bought a smoke alarm once that every hour or so just does 1 very loud high pitch beep just to show that it's still working
it was miserable
This one was chirping
Chirp!
Yeah that's terrible
Just a little bip every minute or two
We make specialized integrated circuits
Nice, that sounds super cool!
The last time I went through this it:
- Started at 2am
- Ended up being the carbon monoxide detector I had forgotten I even had
Neither, it just got too old. I assume the sensor eventually goes bad like in smoke detectors.
Makes sense
Mine are from early 2020, and usually these things are 10 year, so I haven’t had this experience yet
My grandfather died from CO poisoning, so I’m a pretty staunch supporter of having detectors
Oh I'm so so sorry 🫂
Something I want to do when I eventually finally do smart home things is set up a bunch of air quality sensors.
Hopefully none of you have to deal with the hardwired detectors that shriek even louder if you try to disconnect them.
That was the kind we were dealing with yesterday lol
Though if you yank the battery asap it's not too bad
Don't worry I'm very good at ignoring my esd monitor bitching at me
Ancient house, ancient fire alarms
I was thinking of the hardwired ones that only use the battery as a backup. So removing the failing battery just makes them more angry. Don't even think about ignoring it, you can hear it loud and clear on the next floor or even in the next house.
Why anyone would design something so insane, I can't even guess. Maybe they expected the battery to literally last forever. Or maybe they just hate you.
Luckily it seems like the ones yesterday aren't like that
But the fire alarm in that house likes to go off randomly
Like literally for no reason
That's probably a failing sensor, yeah.
It's also a duplex, and the two sides are wired together, which sort of makes sense but is also hella annoying
So it could be any of like 30 different sensors
Yep, you can find entire townhouse blocks that are on one gigantic hardwired "network".
There were 4 on one floor alone, and each side has 4 floors
So realistically who knows why, it could even be the neighbors doing something that actually reasonably sets off the alarms but isn't a fire
Even better if they're installed in a home with 9- or 10-foot ceilings, so good luck getting to one without a full ladder. Little step-stool or small utility ladder won't cut it.
At a certain point it makes you think, "I'd rather take my chances with the fire".
Clearly you need stilts
You forgot the second half of your pitch. ("And lucky for you, I just happen to be selling them at a 20% discount! Buy yours today!")
How powerful does a laptop need to be to run mods for sdv? I've been thinking of buying it on steam and trying to use mods but idk if my laptop will be strong enough
Probably because of the holiday
Yeah same. I feel like I've had a longer weekend thanks to the Holiday.
I had one (1) additional day off this week, but today was pretty chill at work
and I suspect tomorrow will be chill too
Re: Smoke Alarms: Everyone's favorite nerd has a video on the two types of smoke alarms
https://www.youtube.com/watch?v=DuAeaIcAXtg
(this reminds me that I need to swap out the annoying ionization one I have near the kitchen)
Which one is better? Now that's a burning question.
Also, don't start tearing apart smoke alarms and playing with the americium. It's mostly harmless when outside your body but if it gets in there can be trouble.
Links 'n' stuff:
The 60 minutes programme;
https://www.youtube.com/watch?v=LT6pFzyAov8
This channel is supported through viewer cont...
Anybody picked apart how Ui info suite 2 does the subtexturing for the weather icon? Though of taking some time to put in a pr making it more agnostic and potentially custom-weather compatibile, but don't really understand how its generating its own texture sheet
I'm having more fun than expected with the LaTeX without GenAI assignment
I put a huge part of the Bee Movie Script in there
Better off in #making-mods-general
ok thanks
Are there a lot of complex maths equations in the script that benefit from LaTeX layout? 
nope, it's just for filling material, to practice formatting
also I put some screenshots from it since I had to include figures.
I normally use Lorem Ipsum for filler when I'm starting a new paper but I might give the Bee Movie script a try
It's almost time for....advent of code!!!!
hopefully I'll have the time to do more than 4 days of it this year 
is there a private leaderboard for this server?
Idk about you but they get released at 14:00 every day for me, so it's a very good timezone
they release in the middle of the night for me and I can't do them till after work so I've never paid it much attention
I'm in a private leaderboard I've been in for years but I don't think half of them are even participating this year
idk if there's a leaderboard the modders have been using
Ah it comes out at midnight
yeah they drop in the middle of the night for me
not helped by the fact that I get home late
tbh I used to do lots AOC, now you have to pay me to code in my free time
(SDV mods doesn't count)
seems legit
I enjoy AoC still
other than usually like 1 or 2 days near the 20
usually some optimization problem that takes 17 months to complete unless you figure out some specific trick
those are fun only when I do figure them out

Tbh AoC is the fun part of code isolated
Just puzzles and code, no maintenance or users
What's not to love?
I understand, but do not share your definition of fun.
Haha it's less "users" but the ten percent of really annoying users tbh
But I do find it fun to just mess around and not have to care about, like the future
Write some bullshit that runs really fast that isn't maintenable
slap in some random optimization that makes the code entirely unreadable and fail to work on an input that isn't your own
Messing around with no finding out. The dream.
I like to throw in some Parallel stuff that I would never normally use
To me it's more about having a finished product that gives some sense of pride or satisfaction, and I don't really get that from contrived or academic problems.
Lot of folks obviously do - thus the "understand but do not share" part.
Fair! But I get the "useful project" from work already
Plus, I'm an academic at heart still lol.
I can get the "useful in a vacuum" sense from work - useful in terms of someone else's wants, needs, requirements, etc. But it's very abstract, and takes away a lot of the sense of personal connection and accomplishment.
Yeah, I even like to golf the first few days so that they aren't too boring
this laptop has proven itself extremely unreliable for benchmarking with some massive variability between runs
but on my server today's task takes 48 microsseconds
it is an evil abomination that would get me fired
completely free of heap allocations
barring loading in the input lines in the first place but that's placed outside my benchmark in a convenience wrapper
Avoiding the allocation of an array with stackalloc actually seems to make performance worse this time
but still fun to have a zero heap allocation version
so sad that it's faster with allowing some allocations
it's almost like the heap does actually exist for a reason
stackallocs, fancy
fancy but actually worse than just using arrays in this case
Oh, it's the first?
the first of december
Hmm should I try aoc this year
don't need to commit to all 25 days or anything
It's a work day so I guess I'll try
Haven't even picked my language yet
I'm thinking cpp
a life without rayon
Got cilk though
I can push it down a little further if I accept that it only parses the "real" input specifically where every number is exactly 5 characters with exactly 3 spaces in between the numbers
to 27.6
I don't like to go that far though
it wouldn't even work on the examples anymore
🎉
Wow! This a big community. ❤️
Hello Stardew Valley gurus! I just have an itch today. Do you know if there's a way to tail game events as they happen somehow? Google hasn't presented a mod or clear answer yet. I'm arriving from a web dev angle. I though it would be neat to track what day I'm on externally or have a guide show details for the odd item I just picked up. Too many ideas. Too little time...
are you making a mod for stardew? if so head to #making-mods-general
I'm not sure yet. 🙂 I can ask there though for sure. I've never compiled a dll file, which is why I thought I would start here.
ppl here dont play game thats why it's off-topic 
Cool. Thanks for the context and have an awesome day! (I've been playing this game too much lately...)
wait there's a game?
no you're mistaken. it's the stardew valley framework
a game engine
Any of y'all done AOC today?
not today yet no
after work
part 1 looks simple
part 2 is apparently more substantial
but idk what it is
yup
Part 2 not too bad because brute forcing it has no downside yet
probably does if you're strict on yourself for performance...
kills me that I won't know what part 2 is till after work
literally no point in doing that but you do you
I enjoy it!
I try to get all 25 days together to run in less than 1 second
did the same last year
done so two years so far I think
once in haskell and once in rust
now C#
So far did both days
I am trying to learn rust with it.
I know I won't complete all 25 days (I am not that good) It'll be interesting to see how far I go
oh
i should've read that
(image is of instructions)
brute forcing this is totally fine as it turns out even for me
part 2?
ah nice
I'm sure there's a smart way to do this
I gotta do tomorrow's in ruby
that'll be interesting
This repo already looks like a mess lol
hope you don't get screwed with getting a very bad fit of a language for one of them
Thanks :D
Mhm
That's what the wheel landed on
:D
I was super lucky
probably, I'll settle for just a way, though
I stayed up late working on it and my answer was wrong so I'm gonna make some unit tests tonight and figure out what I effed up 😄
zig is the only one I don't recognize
Fortran. You put in fortran
zig is neat
Some people like to eat spicy peppers, maybe that's like putting Fortran down ?
you could have zig solve the entire problem in compile time and just have it print the result as a constant at the end
You could also do that with Rust, C++, Lisp.... Zig isn't really special here.
I mean true but as far as I know zig is quite loved for compile time evaluation stuff
by rust people anyway
rust is fairly limited as far as compile time evaluation goes
Limited how? Macros (proc or otherwise) can do just about anything.
Same sort of thing with C++ templates and so on.
idk the details tbh
can they do compile time tetris: https://blog.mattbierner.com/stupid-template-tricks-super-template-tetris/
Murderous rage against labview
AoC in Labview?
You should add uiua, it's a fun language
today's one is very easy with python
this was more an exercise in regex than my actual language
true
ig you can always challenge yourself to not use regex, but that would make the puzzle 10 times harder.
(No, work code.)
i heard that in c++ (not sure if in c#) every thing is in classes just like in html every thing is in div
for C++ I believe that's simply incorrect
for C# that's almost kind of true
also not true for html but it's ok
though in the modern web landscape I feel like people are forgetting most html tags exist
now in many websites div is the only tag that's used
I meant that you should do all 25 days of AoC in Labview.
I would reply but I'm not interested in breaking server rules today
Well now you're just making me curiouser.
Feel free to imagine what kind of insults I can come up with
exciting
oh that was ||actually quite easy||
Thank you
The best insults I can imagine you coming up with sound like Monty Python's Frenchman.
Cobol is in there too but I never landed on it luckily
I'm pretty sure someone did AoC in factorio
Monty what
Even if you live in a bubble, everyone else knows what I'm referring to.
https://youtu.be/QSo0duY7-9s?si=O-XTHi8wCZgrFHdL&t=74
^ (That is Atra, I'm sure of it)
I don't need to click to know ye
Yup, I'm very dumb and grew up under a rock
Personally, I think you just pretend not to get half the pop culture/nerd culture references.
Idk why but I thought atra is british 
I've seen what looked like Spanish text in some of the mods, but that doesn't necessarily prove anything.
(atra asking "what is X" is something of a bit)
Yeah, sometimes it's very clearly farce, and sometimes I think it's implied non-farce but actually still farce.

It's one part real (I am not read into nerd culture) and one part a joke
Like I know enough to knit a Taylor Swift sweater
But if you ask me about TV I've watched, well
How do we feel about House MD?
Bad.
Plus I don't tend to watch TV or movies, and I'm pretty depressing in the books I read
(So I see from other server here!)
I like how shaped the main actor is
He would make a great plaster cast head for art students I think
Tbh Thirteen is hot
And I'll forgive a lot for thirteen being hot
Apparently I'm one of the 0.0001% of users on this server who aren't miserable.
She is also very good shape much contour
if house was made in 2024 would they have made him and wilson smooch
god as my witness i thought House was still airing
you may be thinking of the other medical drama show that will keep getting new seasons until civilization collapses
you're talking about greys anatomy but no i thought thye were both still showing
house ended 12 years ago lol
i realize this now b ut i did not until just a minute ago 
house may have ended but I don't think they ever stopped airing it anyway
they've got that one on perpetual reruns I swear
(I mean, a lot of us have major diagnosed mental illnesses yes.)
And for the rest of us, they're undiagnosed
"Underdiagnosed" is a pithy euphemism for "not a victim of medical malpractice".
Y'all might not be surprised to hear that I've not watched Friends
neither have I
i only have one problem with hugh laurie, which is that when i see him in anything, i tend to think "i would rather be watching jeeves & wooster right now"
Raise your hand if you can write capture groups without googlijg the syntax for accessing them
Because I never can lol
no lol
For regular expressions? Sure, why not?
I do always forget the obscure stuff like negative lookahead and lookbehind, though.
I always forget the syntax for regular expressions. I usually have to google it.
(?:myloved)
I try to forget that regular expressions exist
It's not my favorite thing to use but I've found regular expressions to be extremely useful for certain stuff.
today's puzzle required 2 different solutions for each part. part 2 was easier in my opinion
this is unfortunately very true
regex makes you actually feel like a wizard tho
it's the closest we get to manually writing obfuscated code
advent of code is ||actually quite doable this year||
oh it works first try on the real input.. this is unusual
Regex doesn't make me feel like a wizard. That's IL and transpilers for me. I write too much regex it's just normal stuff
Regular, you could say
People at my work think it's magic when I'm able to "automate" certain code changes using VSCode's regex replace in all files
It's stupid small things like needing to update a bunch of code to use a different linked service, and everyone's dreading how tedious it will be to make hundreds of changes manually, then I just handle it with a single regex.
dont be silly. That's what vim macros are for
the sample works but not the input
vim makes me feel like Iron Man. Not in the good way but in the "I'm stuck in a cave with something lodged in my chest and this is the nonsense I have to deal with" way.
Just make nano the default text editor already
I'm a never vim-er
It's nano when I have to. Otherwise, vscode is my text editor of choice.
If I'm at a point in my life that I need to edit a text file from a shell, I never want to have to think about how to use the editor.
Linux maintainers don't seem to realize that
I know 10x programmers never have their fingers leave their split keyboards. I'm too much of an old dog to gain the muscle memory to not use my mouse.
When I can manage about 100wpm without even technically typing "properly" (never learned, just brute forced my own style), I think I'm fine just sticking how I am.
I'd like to love the split kind of keyboards, but...
I like the idea of having one of these and somehow having all the hotkeys burned into my brain to navigate the desktop, but at this time I don't have the patience to learn to walk again
I mean... I created a whole mod so that I wouldn't have to memorize any hotkeys in SDV
i literally have one of these, and i'm a vim guy and a never-nano-er
some distros do, and for me it is always a nasty surprise
If a distro isn't Gentoo it should not use vim by default
10x programmer, here
Like cool you like vim, but this kinda thing is literally why Linux adoption has taken so long. The default should be whatever is easiest for the average person
cool you like nano, but i do not care how fast average persons adopt linux
It's not your job to care. It should be the job of people maintaining distros though
To really appeal to the "average person" there shouldn't be any reliance on the command line at all
But I do think there's a space between average and pro that is not as catered to. Like power users who aren't super well-versed.
I panic every time I’m dumped into a text editor from terminal
I think it’s nano but idk
When it happens it’s time to gtfo and rethink what I’m doing
I get by pretty fine as an amateur sysadmin, but sometimes I run into cryptic issues that require me to copy+paste code that I don't fully understand to fix the issues.
It's probably vim
nano is the simple editor. Vim is the one that typing doesn't result in typing, but in issuing commands.
And you have to know all the commands to navigate, save, or even escape from that hell
The idea of different distros, though, as opposed to a monolith like Windows or Mac OS, is that some distros are going to be for text- and shell-oriented developers and tech sorts. For the normies you've got Ubuntu, Mint and so on, and I think (?) some of them do use nano as default.
That's the beauty of linux. There can be an endless possibility of distros that serve an endless possibility of people. I pretty much always go with Ubuntu.
I tried using Pop!_OS for a while and it only lead to a bunch of problems
I know :x and :q and ctrl-C all help me escape
dang I can't believe I'm sharing this chat with a bunch of casuals
It's $400
I can't justify thad
what is the max amount you'd spend on a keyboard
Only a noob would buy for $400. Better to spend months and possibly more money to make one yourself. https://www.youtube.com/watch?v=7UXsD7nSfDY
The Caldera keyboard, a completely custom, from scratch DIY keyboard I've been working on building for months. This shows the process, as well as a high level tutorial on how to build your own completely custom keyboard
Let me know if you have any input on the video (I'm new to this!), or questions I can answer, I'll try to answer everything in...
If you don't print your own PCB are you even a programmer?
I've spent $200 on a keyboard. Wouldn't really want to spend more than that
I've spent $100-$200 on a keyboard... like 6 or 7 times...
My current lifetime keyboard budget is... sort of embarrassing, yeah.
I just got a new keyboard and I'm already feeling like I need a new one. I love the software and the switches, but I'm not totally pleased with the layout.
I spent about $400 on mine. I'm happy with it... mainly because I spent $400 on it
that's one advantage of spending lots of money; it forces me to use it until it explodes 15 years later
Is it a budget if you already spent
This is my current keyboard+mouse setup
fellow gmmk numpad user
This keyboard almost would be perfect if it wasn't missing HOME+END keys
the monstrosity was costly, but i enjoy using it. i do wish it had just a few more keys though; i mostly don't use the layers so i would like a few more easy buttons
I absolutely hate the software for my 10key, but as a 10key it serves it's purpose well
i've become accustomed to ortholinear keys, so going back to the stagger always feels bizarre and crooked
saddens me that the MNT reform (a computer i did not buy) got rid of their ortholinear keyboard
I've tried an ortholinear before but I have stupid fingers that refuse to adapt.
I think it's just to not be qwerty with how qwerty was designed with typewriter levers and such in mind?
You jest but
Yeah, if anyone here could make a 100% custom keyboard...
some ergonomics specialist could probably tell you (and it might even be accurate) something about natural finger extension or whatever. to me it just feels nicer to type on
I got one of these, it was very expensive and my wrists still hurt. OT says it's because my problem is tendons not nerves
I made a custom head unit for my truck once. That's kind of like making a custom keyboard? Has a couple physical switches and a rotary encoder. ... no custom PCB though, it's Pi-driven.
Tbh I have issues with anything over like $20
Mostly touch screen, but not having physical buttons for some things in a vehicle is a huge pet peeve for me.
It's better than the alternative of spending irresponsibly and finding yourself in crippling debt
Which thankfully is not the case for me, but there was a time....
I take this is your daily driver then? /s
Nah, got a cheap Logitech lol
this is viscerally unpleasant. i'm vomiting
(my parents had one of those. it feels like trying to pop bubble wrap with ten fingers)
(but uh not half as pleasant as actual bubble wrap)
Popping bubble wrap is a guilty pleasure tbh
speaking of wack keyboards, I saw one of those laser projection keyboards some time ago. I can think of zero practical use for those, no idea why they are invented or even built
Portability perhaps?
Portability is why Selph's fruit roll up up there was invented
Laser projection keyboards are just a completely impractical "hey look at this it's shiny"
Personally I'd rather have brain surgery
atra don't get a neuralink don't do it typing with your mind isn't worth it
just pay a little more for a keyboard
(It's a joke because I'm seriously considering vagus nerve stimulation tbh)
i'm willing to believe that typing with my mind may be worth it in some different future where the world's largest baby is not involved. but it's definitely not worth whatever neuralink is up to
Mostly killing monkeys from what I've gathered
(Also, lying about killing monkeys.)
I've never had a keyboard with a layout I liked better than the MS Natural keyboard, it's just too bad that the construction itself is meh. Have to choose between mechanical keys or an ergonomic form, it seems.
On a related note, it annoys me how much emphasis there was on the home row when I was in school and they had typing classes. Like you HAVE to keep your fingers on ASDF and JKL: the entire time if you aren't going for a specific letter.
And that's not even a comfortable natural position for your fingers. Mine rest on AWEF and JIO: naturally. (I use a standard US layout, staggered keyboard)
damn I'm late to a conversation about ergonomic keyboards
my opportunity to once again shill the Moonlander keyboard
or glove80 if you prefer
honestly I'll shill any keyboard with thumb clusters and QMK/ZMK
having experienced thumb clusters I don't want to do anything beyond regular typing without having them
Tbh if I could take a photo of my worksetup I would
Lol
Cheap keyboard, random pcbs everywhere
Ergonomic this is not
our office desks are probably opposites
The keyboard is literally on the base of my monitor rn
Eh, split keyboard isn't automatically ergonomic to me.
I can share my desk so here u go
the regular keyboard is still connected for those moments where someone else wants to type something at my pc
clean 
yeah my work laptop is a glorified SSH client, I would use a desk PC if they offered it
Man the DP report has me looking at Framework's website again. I want a new laptop so much, lol.
I would say yes immediately if they offered a desktop pc instead of a laptop
Hmm, looking this up again, Dygma Defy looks promising. Expensive as hell, though.
while I love it, the nice programmable ergonomic keyboard market is pretty expensive
This month's report was by far my largest so far.
I don't care about programmable, I want (a) mechanical keys, (b) forward tilt and (c) tenting which is sort of related to (b).
damn
You'd think it'd be an easy combo to find, but... not.
programmable is one the main things for me
or more specifically, being able to define more layers
Not that it's a bad feature, I do like the media keys, it's just not absolutely essential.
Also my calculator key.
I rely heavily on my symbol layer for programming. Having {}()[] and the likes all right there in convenient spots
what's the DP report
Nexus Donation Points
You're talking about the thumb cluster again?
Well, the Dygmas have that too... it'd be my first time using them, but you're right, that does sound convenient for the various brackets.
well the layer key is on one of the thumb clusters but the symbols in question aren't
I just hold a key on my right thumb cluster and then I have a symbol layer + numpad combo
It really comes down to ergonomics, though. I don't care about saving a quarter-second on some keystroke because I spend most of my time thinking, not typing.
What I care about is having my wrists hurt after spending 8 hours on that.
oh yeah i just find it comfortable. My typing speed has never really been a factor when it comes to programming
if all the code I wrote was so easy to write that my ability to type it out quickly was the limiting factor... idk what I'd even be doing
I don't know about any of you, but I don't do thinking when I'm typing generally. I pre-think what I need to type, and do the typing when I've "finished" what I need.
I also... honestly don't really care about saving a teeny tiny amount of time on keystrokes.
I just want all the keys to be somewhere that allows me not to move my hands very much
I'm definitely thinking at the same time as typing. Typing is almost an entirely unconscious process.
while I am also a vim keybind user I also don't use that due to some potential slight improvement to my keystroke efficiency
it just makes programming a little more comfortable with all the navigation and handling being possible with simple to reach keys and no mouse
Yeah, it's not that typing takes up thought for me, it's just that... even though I type fairly quickly, if I think while I'm doing it, my brain will overtake my fingers and then I'll hit a brick wall and probably explode or something.
So I am curious, do you use the brown or blue key switches?
When I got the Corsair one (that I kinda hate), I wasn't paying attention and just saw the "Cherry MX". But it's the blue that I actually like, and it's not very common. I notice the Moonlander offers it though.
uh I use silent tactile switches so closer to brown but with much of the mechanical noise also dampened/removed
I don't like when my keyboard makes noticeable amounts of noise
Ah... probably one of the Kailh then.
I'm either hard blue (I'd use buckling spring if modern keyboards were made with them and were affordable and looked nice), or perfectly linear.
I use boba u4t silent tactile switches if you want the specific ones...
I use Pandas
I thought blue is just clicky
It's not the noise I like per se, it's the feel. But the ones they call "tactile" often don't really have that.
these boba switches made me realize how chery mx browns are barely even "tactile"
tbh MX brown being the representative of tactile switches kinda give tactiles a bad name
exactly lol
these boba u4t thingies have a very noticeable large bump when pressing them and I love it
I can't stand linear switches
idk how anyone types on them
So you bought something as expensive as a Moonlander and replaced all the switches?
all this keyboard talk tempting me back into that impulse keyboard purchase i almost did a while ago but didnt have the confidence in
I already had the switches before I got the first moonlander though
I first got the switches for a keychron K2
that keychron is now happily used by my sister instead
I have spent more money on keyboards than any rational human being ever should but I don't really regret it cause I do actually use them
Looks like the Kailh brown are the most similar to Boba U4 (but not as good).
you did say popping bubble wrap is a guilty pleasure 
The Pandas actually look like they'd suit me, although apparently they have to be lubed.
Is this the Panda you were talking about? https://www.gloriousgaming.com/products/glorious-panda-mechanical-switches
Their website is hella confusing to navigate. And no idea if they're compatible with other keyboards.
that's the one I use, yes, but there are Pandas made by other brands
they use the standard MX stems and sockets, so they should be compatible with the vast majority of hot swappable keyboards and keycaps
in rare cases hotswappable boards don't support the 3 pin switches but I only remember seeing that once
or wait was it something else
Cripes, that $360 is just the base price, with all the extras they want to charge you $600+ for a freaking keyboard.
yeah it's wild
At that price point there really needs to be some try-before-you-buy thing.
well there are key switch testers
even those are often fairly pricy however
Key switches I'm less concerned about, it's like $30 for a box of switches so I could just buy a new box if I don't like the first.
If I don't like the ergonomics, though, I'm out $600 because of some wireless, RGB and tenting stuff that would have been essential if it was the right fit.
Ah well, filed under the "maybe someday" category.
this is where working with traditional retailers would be helpful, though I suppose that's only an option for the most mainstream of brands
It's a bygone world, gone the way of Fry's Electronics.
Maybe not gone forever, but a lot would have to change in order for it to make a comeback.
I don't imagine it ever truly coming back. Big box retail in general is mostly dead aside from wherever they're able to continue existing.
I had a Micro Center nearby where I used to live. Arguably just as good as Fry's used to be. I'd love to have one of those in my current area.
I was thinking somewhat more of the smaller hobby shops than big box retail, but it's a similar story in both cases.
it's not quite as dire here but it's mostly webshops now, just small webshops
especially computer hardware. That doesn't really have gigantic retailers where I live
though finding anything except the most popular keyboards that exist within my country at all is a tall order
Northern Europe is not nearly as far along that path as the USA is, and Eastern Europe even less so, but they look like they're heading in the same direction right now.
Web shops don't have much of a sense of locality or individuality and will almost always eventually be overtaken by Amazon or some Amazon-like entity. It's consumer demand for the brick and mortar itself that keeps them in business.
Speaking of unmonetized hobbies....if my local habit for humanity doesn't do builds, do I have a good source for physical (ie build shit) volunteer work?
Like, property construction, as opposed to gadgets? I'm sure you'd have no shortage of takers with a Facebook or Nextdoor post. Although it's actually better to charge a nominal (small) fee so that it doesn't come across as a scam.
our amazon-like entity is Bol.com
amazon has tried very hard over the last few years to gain a foothold but they've failed as far as I can tell
wh... where's all the STUFF
did someone rob your desk??
I know, right?
Who doesn't have a low noise amplifier on your desk?
And a pile of papers
And ofc two teas and one coffee
Three textbooks
a cat
Awwww I don't have wfh
1 kirbo
pretty!
She's a great coworker
Although I did heat up some pie earlier and had to get her treats of her own to get her to stop climbing on me
But she's cute, so.
Fluffy!!!!
Nice things about Christmas: everyone's lights make it so much easier to run at night
Bad things: I think this neighbor is trying to give people seizures
His lights are flashing
My neighborhood is usually very dark during Christmas. Nobody sets up lights outside.
I like to see a nice mix of tasteful lights and actually-Christmas-themed decoration.
Same. I try to go Christmas light hunting at least a couple times during the season.
I have no aesthetic sense when it comes to landscaping and decoration so I usually personally go with the bare minimum.
But the neighbors do a good job. I appreciate it.
today's AoC is quite nice
it was a very simple one
I'm waiting for the first one where there's actual concerns with run duration
so far they've been very fast
So
I wanted to be silly
so I
I think it'll crash at the integer limit though
might have to use BigInteger instead
or make an actual algorithm
I'm not sure I"m fully grasping what you're doing
oh i forgot about aoc
it's
randomizing the input
until it passes all the rule checks
oh god
I just added some optimizations and reran so it'd go faster
but yeah it's taking a bit
Lol
the irony of adding optimizations to a very unoptimal way to do it
plus it's funnier if i brute force it
hey I mean now I can generate random stuff faster
I just didn't really want to think of an algorithm to work around "cyclical" cases
I believe people report free games in dms and then they're posted through governor
For the free epic games it does automatically check, but for everything else, one of the mods add it to a queue
The couple of commands live here if you're super curious: https://github.com/aquova/governor/blob/master/bot/games.py
Thats classified
i too like posting classified info on a public github repo
It's the ultimate disguise, really.
You'd never think anything in a public repo could be important or classified!
truly, remember when several corporate API keys were leaked because someone just scraped github lol
That would absolutely never happen.
Oh, wait...
...this repo is a hellscape.
Public/private certificates, too!
In glorious combat
This "GitHub" seems to be a hosting service like AWS, I suppose we can host our password DB there
secrets management
For absolute privacy, store your secrets in /dev/null. No one will ever steal them.
The dev stands for developer
the loops.. (aoc)
i appreciate labelled loops so much now
You can label loops in JS
needs more loop
you can
Not sure how good TypeScript's support of labels is, but base JS definitely has them.
I miss rusts loop labeling in other languages a lot
I miss it in C#
but only really during AoC for some reason
I don't think I've ever had a need for that in actual work
Be brave. Use a goto
I did in a quick draft for aoc this year
this is unprecedented. I got part 2 first try too
move / there for ultimate safekeeping
wdym?
why is there IReadOnlyList but also ImmutableList
Read-only describes the API, not the data structure. Read-only lists aren't necessarily immutable, they just don't provide any methods to mutate.
The purpose of IReadOnlyList is for the receiver of the list to be able to say "I want a list and I'm only going to read from it"
didn't need to, it would make the exercise impossible.
||i felt so smart doing part 1. part 2 will be painful||
on the bright side, ||these would be fun to visualise||
for today's or yesterday's
today
today's task was the first one with genuine performance demands
oh boy. I haven't gotten to it yet.
I hate getting behind
..because then people are talking about a completely different one, but, I'm using it to learn new stuff so I need/want to spend more than an hour or two on each one!
I spent hours optimizing the one for today cause of my arbitrary personal goals of staying under 1 second for the total runtime of all days combined
getting to know the jetbrains rider profiling tools
while the trial on it lasts, luckily for the whole of AoC
I think it's possible to bruteforce in reasonable time (less than a minute), but my BF solution was wrong somehow
but my optimized solution worked without issue, so I won't look into it too much
yeah I mean you can brute force it within a few seconds
we're not yet at the ones where if you fuck up the time complexity it takes 12 centuries to compute
what language are you using?
C#
I've done the same thing in previous years with Haskell and Rust
also did two years with elixir but I didn't have a performance requirement for that one
I think I would've cried if I had to stay below 1 second total using elixir
for rust it didn't end up really being challenge
for haskell I fought for it
do it in python 
I don't even like python 
cython go brrr
what you want is a python-esque language, but compiled and statically typed
-# and don't want parallelism
there's an entire programming category dedicated to "python-esque but fast"
I technically go by my home server benchmarks to see whether I stay below 1 second but I hadn't tried it yet for the ones for this year
day 6 really was brutal. Appparently much more on my server than on my pc where it runs in 5 ms
I'm sure there's worse performing days ahead
if only there was such a thing... I believe C++ is the next best thing.
yes we all know python and C++ are pretty close in experience
hopefully next year there will be some funky language that intrigues me to do this with
waiting for that 0.1 release for the Roc programming language
Use Julia
I did consider julia at one point but the language was strange to me
I don't really understand languages that really try to push a repl on you
julia has had many years to mature since then though. The editor that was recommended for it at the time has even been discontinued by now(atom)
julia was very clearly for a kind of person that I am not. Like data science or mathy people
today marks my first advent of code "failure"
technically
because I did solve parts 1 and 2
but I did so using python which violates the challenge
I was able to get part 1 in Haskell
but I failed part 2 in Haskell
Still got the answers
but I'm only giving myself half a point for that since part 2 was python
Yeah... Tomorrow is R as well...
For the ones I'm unfamiliar with I will attempt to write them in python and then convert to the other language
usually I can get the logic right but implementation in unfamiliar territory is hard
That's a super cool challenge btw
I wanted to do polyglot but I don't have time this year
what's that?
oh for advent of code? Mine had repeats because of the AoC picker I used
it didn't remove names after getting them
Yeah the polyglot challenge is that you get to pick your language but you can't do repeats
So you pick yhr worst language first
Ofc I haven't even started this year yet lol
I don't really have free time after work at the moment (other than exercising which is super important)
oh okay this explains our diametically opposed preferences in languages 🙂
wait a minute, what?? 😆 I've been doing them all in Python
That's fine
I mean, I'm happy enough with it. It's fun and I'm getting to try lots of new things.
The challenge I'm doing is on my github which is attached to my profile under the repo name AOC-2024
Just trying to solve it in a random language each day
Here's a link actually: https://github.com/V-Karch/AOC-2024/
Hah, cool! I don't think I could do that, but that's awesome
For ones I'm not familiar with I'm just writing them in python and getting the logic down and then trying to swap it over to the new language
Oh that makes sense!
I was able to for part 1 of day 6 but not for part 2 of day 6 so I'm going with a failure for that one even though I got the right result from my initial python code
at least you know if you ever need to find an elf historian in real life, you'll (probably) be ok
well, I managed to BF both of today's stars, I'm not very proud of this one but it works
good old ||from itertools import product||
today was pretty alright
another day the list
2.5 millisecond runtime for this one on the server
Would you mind sharing how to solve this type of problem without BF? I've always been able to ignore it so I've never looked into it

