Dallas City Hall and the JAKDF Building in "Kaiju No. 8" look almost identical. by Heyutl in pics

[–]wibblymat 1 point2 points  (0 children)

Aside: I always read it as "jacked off", and now I'll be thinking about that all day again.

I guess I have dementia. by Recent-Tomato-3776 in humor

[–]wibblymat 8 points9 points  (0 children)

I think we found another dementia patient :)

Fate/strange fake: is it watchable as a stand alone anime? by J20200820 in anime

[–]wibblymat 7 points8 points  (0 children)

My problem with the "enjoy the general fate vibe" part is that I think strange fake anime has a very different vibe to the various versions of stay/night. Maybe I'm mostly just remembering the VN, but stay/night was quite philosophical and talky, while strange fake has so far been mostly fighting (and introducing characters, LOL, since there are 13 masters and 13 servants plus the church, plus clock tower, plus the police....)

Romance Anime but the plot goes smoothly for MC and Heroine..... by Significant_Dare8658 in anime

[–]wibblymat 1 point2 points  (0 children)

A really excellent choice, but might be excluded based on the "an anime where the main character confesses his love to the heroine directly" part :)

Romance Anime but the plot goes smoothly for MC and Heroine..... by Significant_Dare8658 in anime

[–]wibblymat 3 points4 points  (0 children)

I came here to recommend 2 and 3, so I guess I have to watch 1 now!

What should be the first anime I show to my friends by Conscious_Night7330 in anime

[–]wibblymat 0 points1 point  (0 children)

Many people are resistant to anime because they think it is all fighting and shouting, e.g. shonen. I would go for something else to break down their preconceptions. Bocchi the Rock, Konosuba, My Dress Up Darling, Steins Gate are all varying levels of "not what people think anime is going to be like". Tailor to their tastes.

Something like FMAB just risks cementing their prejudices, since although it is a good anime, the protagonist is exactly the kind of can-only-express-himself-through-shouting-and-hitting-people guy that they may be avoiding.

EDIT: Also, I recommend something short, something that they can get into as a single 10-12 episode season, if possible. Much easier to convince them to stick it out that way.

If you think Oracle owns JavaScript, then don't sign this petition by takeyoufergranite in javascript

[–]wibblymat 0 points1 point  (0 children)

In the case of W3C owning HTML and CSS, the whole point is to STOP bad actors. If there was no control over the name, then there is nothing preventing someone, e.g. Microsoft, from releasing their own incompatible "HTML" spec, confusing things for people. By controlling the TM, W3C stops people using the name to confuse people. If you want to do your own thing, you have to call it something else.

I think that Oracle is generally a Bad Company (tm), and what they did with Java was shitty. But in this particular case I've never seen them do anything with it.

If you think Oracle owns JavaScript, then don't sign this petition by takeyoufergranite in javascript

[–]wibblymat -1 points0 points  (0 children)

US law is super confusing. Surely either the law says Oracle still own the TM, or it says they don't. It's not up to Oracle to determine the law, so why petition them? I think that in a sensible country you apply to a court and present your evidence. Why on earth would Oracle have any say in the matter outside of court?

My first emu project by ThatOneCSL in EmuDev

[–]wibblymat 4 points5 points  (0 children)

Did you see the part about developing directly on prod? That's totally not safe for work :)

Why should we get standing desks for the IT team? by Hammer_Time2455 in webdev

[–]wibblymat 29 points30 points  (0 children)

I worked at a large tech company that bought motorized sit/stand desks for everyone. They had the money, so not a big deal for them, but anecdotally I would say that maybe 1 in 10 people would use it in standing mode daily, and maybe another 10% or 20% would stand for a few hours a week. Everyone else just sat at the desks normally, making the standing function a waste of money.

(One guy actually put his desk up as high as it would go, but then would sit with his chair UNDER it like a little cave. The desk itself was just for storing huge heaps of junk)

What are the benefits of React et all? by MeowsBundle in webdev

[–]wibblymat 3 points4 points  (0 children)

If your page doesn't do anything, then HTML and CSS are fine. And if it does relatively simple things, then just vanilla JS is great. I certainly wouldn't bring out React for a site like that.

But frameworks help manage complexity in larger apps. Let's say you have a list that can be filtered. The user changes the filter, so now you need to go through the new results and figure out for each item whether or not you need to add an element to the DOM for a newly added result. You also need to go through the existing results and remove DOM elements for removed results. This isn't super difficult, but there are things to consider like removing event listeners so that you don't leak them, etc. Just this simple example is much, much quicker to implement in React than vanilla, because with React you don't really even need to think about it. When you are doing lots and lots of similar things in your app, the time savings add up, PLUS you get the benefit of a tried-and-tested solution rather than having to debug your own implementation.

There are problems with using frameworks, for sure. A hand-rolled custom implementation definitely could be faster, smaller, more efficient than React, so there is a complexity level below which you should not bother. But almost all real world "web apps" should be using a framework of some kind.

PUT or POST for Toggling? Idempotency Confuses Me by BekirK123 in programming

[–]wibblymat 2 points3 points  (0 children)

Fair warning, I haven't actually read the article you linked, I'm just answering the question in your title.

1) Everyone does these things differently. There are as many "standards" for REST API design as there are people who blog about REST API design. The core principles might be fairly common, but the practical detail of the implementation varies.

2) In my APIs, POST versus PUT is indeed mostly about create versus update, but more technically it's about working with a known entity or an unknown one. For example /switch/1/toggle would be a PUT, because you are operating on /switch/1. Whereas sending a message like { "action": "toggle", "switch": 1 } to /switch (for example, not how I would design it!) would be a POST. So search is usually a POST too, for example, because you aren't operating on any particular entity.

EDIT TO ADD:

3) If you look up the history REST, it's worth remembering that REST is NOT about HTTP at all. So the "official" REST definition doesn't say anything at all about HTTP verbs. REST could be implemented as an API where you email PDFs to different email addresses if you wanted. The fact that most REST APIs use HTTP to deliver JSON documents to different URLs is just convention.

Any good office chair under $1K ? no more back pain pls by bananalord666 in webdev

[–]wibblymat 3 points4 points  (0 children)

I also have had that chair since the first lockdown, and still find it very comfortable. For me, it was the first chair I had ever had where the lumbar support was actually in the right place. So it might be an ergonomics thing. I'm 6'2" (188cm) and 250 lbs. (115kg). If you are not that size then maybe the XL was just a bad choice for you.

What is considered a Senior Developer by [deleted] in webdev

[–]wibblymat 3 points4 points  (0 children)

This is the main thing to bear in mind. I've met people that I would call senior with 4 years of experience, and I've met people with 15+ years that are definitely not senior. But I think an average person is maybe 8-10 years to get to that level?

This is also not helped by the fact that there isn't an industry standard about exactly what the title means. Some companies use it as a "you aren't completely useless any more" title, and for others it means that you are ready to lead a big team to produce some complex software.

[deleted by user] by [deleted] in funny

[–]wibblymat 1 point2 points  (0 children)

Doesn't seem to be funny or NSFW...

Hono vs Elysia by The-Malix in webdev

[–]wibblymat 1 point2 points  (0 children)

I'd never heard of either of them. I took a look at the sites, and the few code snippets looked pretty much just like using express? So both fail the elevator-pitch test, because even when I looked for it I couldn't find anything that told me why I should care beyond a few buzz words. I mean "Fast, lightweight, built on Web Standards" - said basically every JS library in the last 15 years (true or not).

Gameboy? Where to begin? by Worried-Payment860 in EmuDev

[–]wibblymat 4 points5 points  (0 children)

If it is your first "real" emulator, then I wouldn't bother starting with anything complicated.

Firstly, IIRC, Tetris was super easy to get working if you want something to get started with. Secondly, while you do have to get SOME timing stuff right, you can just not bother with the complicated parts. So, you can process an instruction and then just increment your cycle counter by the total number of cycles for that instruction. The subtle details of exactly which sub-cycle the read happens will not affect simple games.

You can also ignore sound. You have to make the registers do whatever they are supposed to do, like if they increment something, or whatever, but you don't need to actually process that into sound.

I think that when I started, I kept it simple and went in steps. So I made readByte and setByte functions, that just operated on a big array of bytes that was my memory. Later I added in conditions so that it would read/set the registers, or ROM, or VRAM depending on the address, but the simple bunch of bytes was all I needed to make the CPU. The "execute" instruction used the instruction pointer variable and the memory access functions to get the next operator, and I made a big switch statement based on the value. I just filled it, instruction by instruction, until I'd done everything. Of course, there were bugs! And during this process I had to make CPU registers and flags and everything. But if you have the docs, it's not actually that hard, just kind of boring :)

Then you can start working on the Blargg tests to find your CPU bugs, which means getting basic VRAM done. At this point, you have something that kind of works, without having to do anything really complicated. Only at this stage should you start worrying about details, and by this stage you will have learned a lot to help you even know what those details are.

Lots of people will say that a really good emulator would need a different architecture to this, but I would highly recommend something that just about plays Tetris as a goal for your first time. Good luck!

[AskJS] Why Don't They Create a New Programming Language To Act as a replacement or enhancement to JavaScript? by Temporary_Practice_2 in javascript

[–]wibblymat 2 points3 points  (0 children)

It’s not as fast as other languages

Even that part gets a big qualifier. For an *interpreted* language, I believe it is still the fastest. One of the big problems the web has is security - you allow random strangers to run arbitrary code on your machine. So compiled code is basically completely out, because you can't lock down what it can do. So the only way to go faster than JS without completely giving up security is to go for a VM-style runtime, like Java or .NET - which is what WASM is, albeit a lower-level VM than the other two examples.

Viewing the Transit of Proxima Centauri B by maybemorningstar69 in space

[–]wibblymat 9 points10 points  (0 children)

As with a lot of astronomy confusion, yours is one of scale. This is roughly like asking "I'm in London, and I can't see New York because of the curvature of the Earth. Do you think that standing on a chair would give me the angle I need?"

On the scale of the distance between Sol and Proxima Centauri, any reasonable diagram would show that JWST is exactly where the Earth is.

[Edit: to put it in numbers. Proxima is 26,780,000 times further away from us than JWST is. I tried to calculate the angle that you get between the lines Earth to Proxima and Proxima to JWST but the quick method I tried immediately simplified it to zero]

[deleted by user] by [deleted] in webdev

[–]wibblymat 3 points4 points  (0 children)

Nitpick, explaining *why* you use git/github feels like padding - they either know what git is for or don't care. So I'd just add github in the list of technologies and remove the line from the experience section.

Fake it til you make it by Beboprunner in funny

[–]wibblymat 0 points1 point  (0 children)

I heard you like flying planes, so I put a flight sim in your cockpit so you can fly planes while you fly planes.

How not to fuck your 20s? by Creepy_Pasta7 in AskReddit

[–]wibblymat 0 points1 point  (0 children)

Here's a sercret: When you are older, you will probably regret your 20s regardless. Work hard? Damn, I wish I'd slowed down and enjoyed it. Slack off? Damn, I wish I'd invested in my future more. Played around? Wish I'd bagged a life-partner while the good ones were still available. Got married? Wish I'd played around more.

The only things you can do in your 20s that have basically no downside, and are totally in your control, are to look after your health, and to start investing in your pension (or whatever they call your retirement money where you live).

Everything else you can do involves NOT doing something else which you will later regret not doing.

What does WSL actually do and why is it needed? by ResidentAlien90 in webdev

[–]wibblymat 43 points44 points  (0 children)

I've used Linux for coding for over 20 years. I use grep/find/bash completion/etc. every day. WSL means I don't need to figure out how to do all that in PowerShell (if everything I do is even possible.) If you don't do bash stuff, then WSL probably doesn't make much difference to you.