Programming thread

  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
They're fine tools if you know what you're doing. I can tell Claude to write unit tests for some module and it'll produce pretty acceptable output.

The same people who took a community college class on Python and were telling me that they could totally do my job they just don't bother applying for any programming jobs because pajeets and troons are gonna put us all out of work are now saying it's gonna be ChatGPT. Yeah the job market sucks but that's a different problem.
 
crossposting it here because you might find it more interesting/actually understand what im talking about

tl;dr: a remastered version of a game was announced, one of the translators was asked to put the binary in ghidra cuz his nda expired, turns out the remaster used the game's decompilation as a basis
clarification: the remaster at first was meant to be a fan project, the decomp team was never contacted, the reason why only those classes appear in RTTI table is because they are the only classes with inheritance (those and the midi shit that was removed)
a SNCA addendum i can give is that the original owners of the decomp (a frenchman with a celeste profile pic and a french tranny) are delighted that the decomp is used, in fact thats why they chose the license to be CC0
other contributors are various level of angry, and are changing licenses of the portable branch and other decomps to GPLv3

a technical addendum on the game is that the minimal requirements list windows 10 (2002 game btw) but apparently you can run it under windows 7 if you copy over some c runtime dlls
it's interesting that they would pick the decomp in the first place, the codebase itself is dogshit and uses directx 8, while the remaster uses dx11 and also works on ps5 and switch 1-2, in a way it would genuinely be easier to start over than to modernize the original code
 
Found a programming related channel that is, in my amateur retard opinion, good.
https://youtube.com/watch?v=4xqkI953K6Y
Yeah, this is pretty good. In Design vs Performance he misses the point a bit, maybe because of the aftereffects of Clean Code (cursed be its name, looking forward to watching his review of that later). He seems to equate "simple and clean code" with "highly abstracted code that does a lot of things on the side", which is not what Ousterhout means. It's about avoiding the competing layers of abstraction that cause performance friction between each other and slowly strangle performance, and that really is a good way to get something that's fast enough for most purposes. To put it in an oversimplified and somewhat silly way, if all you need is to transfer objects into a database, then go build your objects and send them off in one fell swoop instead of going through five layers that all kinda do nothing. I've seen the latter so many times.
 
Abstraction in itself is a spook, any abstraction that doesn't make code easier to write and easier to work with is a maladaptive pattern
Fuck your gay ass factories
 
Fuck your gay ass factories
Obligatory AbstractSingletonProxyFactoryBean
Convenient superclass for FactoryBean types that produce singleton-scoped proxy objects.
Manages pre- and post-interceptors (references, rather than interceptor names, as in ProxyFactoryBean) and provides consistent interface management.

Some dishonorable mentions:
ConfigurableBeanFactory ListableBeanFactory (Don't mix the two up).
ConfigurableListableBeanFactory (Yo dawg, I herd you like bean factories...)
AutowireCapableBeanFactory
and that's just a few.

It confounds me how people came up with and made this shit.
 
and that's just a few.
Watch this:
HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor
InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState

Also:
ObjectFactoryCreatingFactoryBean
A FactoryBean implementation that returns a value which is an ObjectFactory that in turn returns a bean sourced from a BeanFactory.
:lossmanjack:
As such, this may be used to avoid having a client object directly calling BeanFactory.getBean(String) to get a (typically prototype) bean from a BeanFactory, which would be a violation of the inversion of control principle. Instead, with the use of this class, the client object can be fed an ObjectFactory instance as a property which directly returns only the one target bean (again, which is typically a prototype bean).

I found one more factory factory:
BeanFactoryAspectInstanceFactory
But be cautious!
Note that this may instantiate multiple times if using a prototype,which probably won't give the semantics you expect.Use a LazySingletonAspectInstanceFactoryDecoratorto wrap this to ensure only one new aspect comes back.
 
Última edición:
This is a question for @y a t s or anyone else knowledgeable:

How hard would it be to make something like a browser or a simple program that runs only kiwifarms and only allows packets from either a VPN or TOR.

What I would want to do: I want something that is set it up and forget it for most of the time that is super easy to set up and use something like installing an exe file and clicking a button and opening a browser that is set up for KF and only KF and only uses a VPN or TOR to connect to KF. It also only has the VPN active for that one specific browser and only for KF. It doesn't have to be specifically this. But something like this.

I want this for two reasons. First I want this for myself because there have been instances, thankfully over a month ago, where I have turned off my VPN before closing KF and I want something that wouldn't let me do that. Secondly I think part of the reason more people don't use a VPN or TOR is because it is effort. Cyber security is hard for normies because it tends to cause friction and friction sucks. If we want more people to use VPN or TOR to access the site then we need to make it as easy as possible to do so. I myself am turned off by needing to have a VPN active for the site because it makes using certain websites outside of KF a pain in the ass. Imagine what someone who isn't as diligent feels.

I think this is important given the situation with Liz Fong Jones.
 
Making a bespoke solution to this is going to be much less simple than existing solutions.
People who can't use tor or a proper vpn are lazy at best. If you keep Kiwifarms only in tor, which is accessible using Brave, then you're fine. Good VPN clients these days have a setting to stop all traffic if the VPN connection isn't established, so Mullvad VPN + Mullvad Browser are a similar solution that will run faster for people who want that.

For you, you can set up a container or virtual machine and access Kiwifarms exclusively through that, if you want.
 
This is a question for @y a t s or anyone else knowledgeable:

How hard would it be to make something like a browser or a simple program that runs only kiwifarms and only allows packets from either a VPN or TOR.

What I would want to do: I want something that is set it up and forget it for most of the time that is super easy to set up and use something like installing an exe file and clicking a button and opening a browser that is set up for KF and only KF and only uses a VPN or TOR to connect to KF. It also only has the VPN active for that one specific browser and only for KF. It doesn't have to be specifically this. But something like this.

I want this for two reasons. First I want this for myself because there have been instances, thankfully over a month ago, where I have turned off my VPN before closing KF and I want something that wouldn't let me do that. Secondly I think part of the reason more people don't use a VPN or TOR is because it is effort. Cyber security is hard for normies because it tends to cause friction and friction sucks. If we want more people to use VPN or TOR to access the site then we need to make it as easy as possible to do so. I myself am turned off by needing to have a VPN active for the site because it makes using certain websites outside of KF a pain in the ass. Imagine what someone who isn't as diligent feels.

I think this is important given the situation with Liz Fong Jones.
For tor, you would want to stick with the tor browser to guard against fingerprinting. You will stick out like a sore thumb if you don't.
If you really want to do tor without the tor browser, you can use a socks5 proxy through normal browser settings or proxy manager extensions. Caveat emptor.

For vpn use, most vpn clients give you the option for selective routing (per-app vpn routing rules). Mullvad calls theirs "split tunneling". Also possible with the standard cli wireguard client, if you're skilled enough. Dedicate a specific browser (e.g. mullvad browser) to KF use only and set up a routing rule for it.
 
Atrás
Top Abajo