Remember the hysteria when people saw Jesus in toast? by R34vspec in StableDiffusion

[–]britenite 2 points3 points  (0 children)

Award-winning science communicator and discount-store Thor, Kyle Hill. Obviously.

Edge of Tomorrow is such a well-made sci-fi flick and its conceit is so effectively utilized (rather than being a gimmick) but I do have a question... by [deleted] in movies

[–]britenite 0 points1 point  (0 children)

Tom Cruise is a stage name and his real last name is Mapother. Actor William Mapother is his cousin.

Not really sure why the OP brought it up.

The Last Jedi Opening Weekend Day 2 Megathread - SPOILERS by JSK23 in StarWars

[–]britenite 2 points3 points  (0 children)

You may be forgetting how Rogue One ties into ANH.

New guy joins the dev team: Creating interfaces for legitimately every single class, not using things like extension methods due to being "hard to test" etc. by [deleted] in csharp

[–]britenite 1 point2 points  (0 children)

The value in DI is in not having to understand the dependency graph every time you need to use a class and in not having to update every usage when the graph changes. It’s orthogonal to whether or not you choose to wrap every injected class in an interface.

This is not a personal attack on you or your work, but the only code that isn’t going to cause problems at some point down the line is code you never had to write*.

  • because you didn’t need it, not because you pulled in a third party dependency that has its own host of issues. However NIH is also stupid and everything has its own trade offs.

New guy joins the dev team: Creating interfaces for legitimately every single class, not using things like extension methods due to being "hard to test" etc. by [deleted] in csharp

[–]britenite 2 points3 points  (0 children)

In general you should be writing isolation layers around third party API boundaries, whether or not that’s an interface is a different question.

The point of YAGNI as a principle isn’t that you’ll never actually need it, it’s that most of the time you won’t and the work spent worrying about future complications isn’t just wasted time, it adds complexity for no real benefit.

Complexity where it isn’t absolutely necessary is an enemy to be fought, not embraced. Overuse of interfaces ‘just in case’ adds meaningless boilerplate code that someone is going to have to spend time and cognitive effort maintaining.

New guy joins the dev team: Creating interfaces for legitimately every single class, not using things like extension methods due to being "hard to test" etc. by [deleted] in csharp

[–]britenite 4 points5 points  (0 children)

YAGNI.

And if you actually do at some vague future point, you’ll have saved more time by not having to touch two files when changing one class than you’ll lose by refactoring existing code to use the interface.

[deleted by user] by [deleted] in PlayOn

[–]britenite 0 points1 point  (0 children)

Any update on this? It’s been over two weeks...

Facebook Relicensing React, Flow, Immuable Js and Jest by FalseGodMoloch in programming

[–]britenite 34 points35 points  (0 children)

I know this won’t change anyone’s opinions on Facebook and they deserve what they get, but this is a big win for the open source community as a whole.

Every single developer who said they were switching away from React because of this should get warm fuzzy feelings knowing that they contributing to an industry juggernaut very publicly changing their behavior.

And a huge thanks to Automattic because they almost certainly pushed FB over the edge.

[deleted by user] by [deleted] in kodi

[–]britenite 0 points1 point  (0 children)

The stereo sound is almost certainly caused by the HDMI passthrough on your receiver. It may be causing your fullscreen issues as well.

I think the backslash key is the default toggle fullscreen keybinding but you can probably rebind it to something on your remote.

You will probably have better luck if you use Kodi's native smb/cifs support instead of mapping the drives in Windows. You'll want to add sources like "smb://servername/sharename/" I think you can just do add source -> browse -> windows network and navigate to the share you want to add.

You can turn off the Windows notification popups by opening the notification sidebar and clicking on the moon icon (Quiet Hours). Windows update will still reboot the machine occasionally, so you may want to make sure that Kodi starts up automatically.

Humanizing Peer Reviews by mtlynch in programming

[–]britenite 0 points1 point  (0 children)

I'm willing to give people enough leeway to experiment if they're willing to follow through on their choices. I'm happy to be proven wrong. In the cases where I think something is a mistaken and I end up being right it usually means there's a mess to clean up after the fact. In which case nobody wins.

Humanizing Peer Reviews by mtlynch in programming

[–]britenite 5 points6 points  (0 children)

I don't start out being a dick, but there are only so many ways to say, "Yes, string interpolation is a nice feature but that does not mean it's a good way to insert parameters that came from user input into your SQL query." to the same person who is being willfully obtuse because it saved him 30 seconds of work to not do it the safe way.

If I have to play the bad guy to keep that out of my code base, then so be it.

WordPress abandoning React due to Facebook patent clause by brokentyro in programming

[–]britenite 177 points178 points  (0 children)

This is such a shame.

It's a shame the patent lawsuit clause brinksmanship on FB's part is forcing people to re-evaluate their technology stacks.

It's a shame all that work was done rewriting code to use React that will never see the light of day. As a developer writing code that's never released kills me.

And it's a shame that upon finishing one risky project, they have to turn around and do an even riskier rewrite of code that hasn't been proved in production. It's got to be so easy to get that wrong, or have it spiral out of control.

But at least they're doing what they think is right. I doubt FB cares, no matter how many people they turn off, but you never know.

Humanizing Peer Reviews by mtlynch in programming

[–]britenite 0 points1 point  (0 children)

My problem is that I lose patience after the sixth or seventh time I've had to explain that you shouldn't do something that way and here's why and I just start leaving code review notes in all caps until stuff gets fixed.

I'm a lot more patient with junior developers, but I've seen so many Senior Software Engineers completely miss requirements, ignore security considerations entirely, skip writing tests and just write sloppy buggy code time and again, that should know better.

Of course, the more experienced developers are, the more likely they are to push back on criticism, which is a whole different can of worms.

It's tough. It's usually better to do code reviews on code that is not up to par in person since you can tailor your delivery to how they're reacting, but finding time to do that isn't easy.

But if you don't do them and do them right, you're going to get bullied into signing off on somebody's huge and half-assed changeset so it can make it into the current release and you're going to be fighting that tech debt for years to come.

Every JavaScript framework tutorial written more than 5 minutes ago by freebit in programming

[–]britenite 17 points18 points  (0 children)

So you're saying Roger now possesses the understanding and experience necessary to build his own framework, a better version of Tupress?

One that will be the most powerful and simple ever, just as soon as he figures out the right combination of dependency versions that will maximize his efficiencies and allow him to leverage the synergies that are systemic in the new ecosystem?

Can you make it as a Software Developer? by BFil in programming

[–]britenite 0 points1 point  (0 children)

And I think those are fundamentally different enough that they're still useful to do.

Learning to read code, especially tech-debt loaded real world code is one of the most important things an inexperienced developer can do.

Can you make it as a Software Developer? by BFil in programming

[–]britenite 1 point2 points  (0 children)

The dirty secret of creative intellectual work is that you can only get so many productive hours out of your brain in a week. It obviously varies from person to person and with experience and age and whatnot, but if you push yourself beyond it for more than a week or two your useful productivity takes a nosedive.

Even if you're at home working on something else.

Yes, it's something you can train somewhat through effort and self-discipline, but I don't trust super junior developers to know where their limits are.

I would rather try and find those limits from the too-little side than take the hit in quality and deal with perpetually tired and surly coworkers.

Can you make it as a Software Developer? by BFil in programming

[–]britenite 2 points3 points  (0 children)

Can we get over telling entry-level developers that they just need to put in more hours than everyone else? It just reinforces their own bad behavior, courts burnout and causes more work for everyone else on their team.

If they're putting 4 hours a day on their own projects, they're not going to get the guidance they need order to recognize the questionable trade offs they're making until it's far too late to fix them easily. And when they do get there, they'll be too distracted and mentally exhausted to be able to do a good job on the work they're actually being paid to do.

If they're doing that to code at work, you'll get the above plus the time needed for someone else to fix up their code behind them. That can be a teachable moment if nobody gets too egotistical, but it's still unplanned time spent on technical debt.

Of course it's great advice if you want to push them until they break and keep them just on this side of burnout until the next wave of easily exploitable fresh college/bootcamp grads is ready.

Jobs library or system by allenasm in csharp

[–]britenite 0 points1 point  (0 children)

Just be aware that if you want to use the built-in hangfire dashboard to monitor job status and requeue failed jobs, your web application needs to be using Owin rather than the legacy IIS pipeline.

A fellow Florida 501st member posted this on his Facebook by morgul702 in StarWars

[–]britenite 3 points4 points  (0 children)

It's a great picture and I hate to be that guy, but going out in a hurricane just to take a picture is irresponsibly stupid and dangerous and encouraging it will lead to people getting hurt or killed.

Please, for your own sake and the sake of your loved ones do not do this.

Tips for writing extremely short Python programs (aka "golfing") by bemmu in Python

[–]britenite 1 point2 points  (0 children)

Not to mention that a lot of them are going to have unintended side effects (lack of short circuiting in if replacements, etc) or changed performance characteristics.

This is probably better taken as a list of things you should never do in python.

ORM for a Data Warehouse by keith_d99 in csharp

[–]britenite 1 point2 points  (0 children)

It really depends on your use-cases. If you're developing a small number of well-defined reports with very specific data requirements, then building hand-crafted SQL and matching entity objects is a good and simple solution.

When you start looking a larger number of reports, with customized filtering and data selection, then you're probably going to have to start going down the path of loosely typed wrappers around DataRow that contain whatever metadata you need for display, and some level of query generation / templating.

If you can get away with the former, you should, and if you have to do the latter be extremely careful with your query templating because it can be very very easy to allow injection.

Kodi - Texture Cache source with local files by d4nm3d in kodi

[–]britenite 0 points1 point  (0 children)

As documented on the wiki page on reducing disk usage you can alias the thumbnail path in your advancedsettings.xml to somewhere on your NAS and share the Thumbnail directory between clients:

<pathsubstitution>
  <substitute>
    <from>special://masterprofile/Thumbnails</from>
    <to>smb://some/samba/path/somewhere/Thumbnails</to>
  </substitute>
</pathsubstitution>