• 1 Post
  • 13 Comments
Joined 1Y ago
cake
Cake day: Sep 24, 2023

help-circle
rss

Hmm I can’t decide if this is a joke or if I’m just very privileged in the internet department


I remember back in 2013 I picked up the full expansion set at a thrift store for $4 it was the best summer of middle school by far— got the werewolf mod working and went around finding out who was essential to the plot by killing them and then reverting the saves— good times



I do really like the error system in rust for its descriptions. I guess the difficulty for me, which maybe will go away after writing more rust, is that my intuition for what is efficient and what isn’t totally breaks down.

I find myself passing copies of values around and things like that, it might be that the compiler just takes care of that, or that I just don’t know how to do it well but that’s often the point of friction for me.

Totally agree on the refactor though, most of the time it doesn’t even take that much time since you know the skeleton of what you want at that point!


Maybe it’s just because I haven’t had to deal with the scenario yet but does compile time really matter? I mean for small programs it seems it’s almost instant on modern machines and for large programs I would assume, if it exists, that you would be using the equivalent of make so you would only be recompiling the small changes made.


If I were writing code that had had to be maintained by another person or that would need to be depended on I would test it and be a lot more restrained. However, for personal projects and things where I’m just learning I find it kinda fun to be creative; when my creativity comes back to bite me I learn something.

An example of that even my mentor thought was kinda stupid for trying to save space this way was to not use a null pointer for the head of this linked list and to switch up protoAddEvent and subsequentAddEvent in this state sim I wrote a while back: https://github.com/jcuberdruid/stateSim/blob/main/stateSim.c



While I agree wholeheartedly with the idea that we need to emphasize quality over quantity, so long as software pays well there will be people who don’t care. In my university I’ve met a fair few people that complain about having to learn about compilers, assembly, and whatnot because “I’ll never need to know that in my actual job”. While to some extent in the United States you can blame the fact that classes just cost a ton, I think it’s a sad reality that, barring some key change in the way our whole education and economic systems work, there will be unimaginative apathetic people that will ruin things for the rest. Plus people are fallible or something I dunno. But yeah void pointers are my jam because I don’t have to wait precious clock cycles making new ones jk.


On the one side I really like c and c++ because they’re fun and have great performance; they don’t feel like your fighting the language and let me feel sort of creative in the way I do things(compared with something like Rust or Swift). On the other hand, when weighing one’s feelings against the common good, I guess it’s not really a contest. Plus I suspect a lot of my annoyance with languages like rust stems from not being as familiar with the paradigm. What do you all think?
fedilink


Maybe it’s just me but everytime I try and use cython or CPython I end up just thinking it would be easier to write the whole thing in c/cpp. (Note that everytime = ~ 4 times so could just be that).


You could just write a little terminal utility that puts the string literal of the snippet in your copy buffer with a little search and db for finding the right one and storing new ones— might have to have some weird cases for cross platform tho


Also m, while I agree typing speed is an advantage, there’s nothing stoping you from laying out the whole program on paper or with psudo code and then filling it in which can reduce the need to keep it all in your head


(defun clever-comment (comment) (if (equal (count-parentheses comment) (* 2 (count-letters ’LISP))) ’Clever ’Not-Clever))