TehPers

joined 1 year ago
[–] TehPers@beehaw.org 2 points 3 hours ago

The "'modern' development stack" we used at my school when I was in a CS program was C++98 or something, compiled using gcc directly. This was in the last decade. It technically wasn't C!

But we did use C in my computer engineering classes so I guess they technically did teach it. I feel very fortunate that I haven't needed to use it since then.

[–] TehPers@beehaw.org 3 points 4 hours ago (1 children)

I have no idea how doable this is, but are you able to 3d print them?

[–] TehPers@beehaw.org 3 points 8 hours ago

Framework 16 laptops come with a 180W charger. The laptop itself might not draw that much (depends on your laptop configuration and settings), but the charger can draw that much to charge the laptop if needed.

Not quite 200W, but there are more powerful laptops on the market than the ones Framework sells.

[–] TehPers@beehaw.org 2 points 11 hours ago (1 children)

The previous article in the series has a couple paragraphs at the start to introduce the idea and why:

Modern JavaScript frameworks like React JS and Vue JS have popularized the functional programming paradigm and declarative approaches to web app development. While these frameworks have made creating dynamic web applications more accessible, it's worth exploring the potential of web components in this landscape.

To me it seems more like an exploration and PoC for the purposes of learning than a real alternative to any particular frontend library, but that's just my interpretation. The subject is interesting anyway, even if I won't do this myself in a real world project at work.

[–] TehPers@beehaw.org 7 points 19 hours ago

Adding a single unused function should no effect on runtime performance. The compiler removes dead code during compilation, and there's no concept at runtime anyway of "creating a function" since it's just a compile-time construct to group reusable code (generally speaking - yes the pedants will be right when they say functions appear in the compiled output, to some extent).

Anyway, this can all be tested on Godbolt anyway if you want to verify yourself. Make a function with and without a nested unused function and check the output.

[–] TehPers@beehaw.org 7 points 3 days ago

I can think of a few things I dislike about MTG as a whole (3yr standard and general powercreep of the format comes to mind), but my complaints about specifically Arena would be:

  • Cost. I'd probably play more if sets didn't cost more than an entire new game on Steam to get the preorder bundles. Why are boosters so damn expensive?
  • Grind. The F2P way to get cards is to grind like a madman to get your daily wins and finish the quests. The problem is I prefer slower decks, and I'm not going to play monored for my daily chore if I can just play a different game entirely.
  • BO1 standard. This is more of a personal opinion, but I wish they'd keep a separate banlist for BO1. They've done it in the past with Nexus of Fate, but BO1 is so dense with aggro decks. Unfortunately, the daily wins system incentivizes more quick games rather than fewer interesting games, so I understand why these aggro decks are so popular. Maybe changing the daily wins system would solve this as well without the need for a separate banlist?
[–] TehPers@beehaw.org 20 points 4 days ago

Someone I know failed an algebra exam for using calculus to get the vertex of a parabola. It'd be one thing if the reason was that it wasn't a method that was taught yet, but the teacher straight up didn't know any calculus and failed them by saying it was nonsense.

[–] TehPers@beehaw.org 3 points 5 days ago

From the article:

Western-owned brands manufactured in China, such as BMW and Tesla

Looks like you're safe buying a Tesla.

[–] TehPers@beehaw.org 3 points 2 weeks ago (1 children)

I was expecting a meme about how few cards actually have "phasing" (and phase in/out automatically in the untap step). Instead it's a list of cards that make things phase out.

The list is a little more practical this way, but I'm still disappointed that WOTC dropped "phasing" itself entirely instead of trying to revisit it now that they've started printing cards that phase things out. They could have revisited the phasing lands idea with a tapped Ancient Tomb with phasing (and no self damage), or added cards that grant your opponent's permanents phasing (like [[Teferi's Curse]]).

[–] TehPers@beehaw.org 12 points 3 weeks ago

Sorry if I'm missing some sarcasm here, but if this is all you have to contribute, then as a professional software developer, I'd much rather work with the author of the article on a daily basis.

[–] TehPers@beehaw.org 4 points 1 month ago* (last edited 1 month ago)

Pushing HTML even further, one could say it's a declarative programming language that programs a UI in a mostly-stateless manner (inputs aren't really stateless but you can argue the state is provided by the UI rather than managed by HTML).

I'm not sure I'd make this leap myself though, I have a hard time classifying it (or any other markup language) as a PL. As far as I am aware, you can't really program a state machine with pure HTML, though you can accept inputs and return outputs at least.

[–] TehPers@beehaw.org 3 points 1 month ago

Biden gets a rousing tribute from Democrats as he passes

I knew he was sick, but holy crap.

the torch to Harris in 2024 DNC speech

Oh, phew

view more: next ›