There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

daniyyel , in Easy peasy

Arstechnica runs on WordPress on AWS, and they have a really nice series of articles about it. Sure, you could use just one EC2 instance for everything, but on a high traffic website you would need a bit more.

agressivelyPassive ,

But how many sites really are high traffic?

That’s the thing with almost all of the cloud stuff: reasonable at scale, but overcomplicated garbage for 95% of the users.

gornius ,

95%? More like 99.999%, considering how many Wordpress sites are there.

And in many of these 0.001% cases, simple horizontal scaling would do the trick.

And if you need more than that, just use something that can work on the edge.

thejodie ,

There’s a big chunk of sites that have WP running but are mostly just static content, confusingly. If you update the content once a month and disable all comments, maybe another tool could fit better there. ¯*(ツ)*/¯

henfredemars ,

I thought the same thing and tried to do a static site generator for a while, but I just liked the WordPress UI too much for composing and editing vs manually placing my images in an assets folder and remembering the file names to add them in my markdown.

Besides, with a good caching solution, isn’t WordPress effectively a static site with extra steps for many use cases?

thejodie ,

I’ve definitely used WP in that manner as well. At that time there were plugins that would render the pages out to static HTML in object storage. I’m sure there still are, but possibly not the same ones I used.

I just prefer not to use or manage WP whenever possible.

dilawar , in Haskell researchers announce new discovery

“I’m kind of surprised I’m the only person on earth who gives a shit about it,” Briars continued. “I’d have thought there would be more people following the press releases closely and then not using Haskell. But they all just skip the press releases and go straight to the not using it part.”

I know right!

rtorlas , in It always gets me

u for undo. vi forever!

Synthead ,

Don’t forget that Vim also keeps every tree of undo history. Wrote someone one way, wanted to try another way, and changed your mind? Switch to the other undo future! Change your mind again? Go back!

And there’s persistent undo, where your undo history is written a file. Quit Vim, power off your machine for 5 years, power it back on, and you can still undo!

Kusimulkku , in Read only friday

I’ll just push the new virus detection files, what’s the worst that could happen

RickyWars , in I Will Fucking Piledrive You if You mention AI Again

Great read. Even in STEM research as a grad student I’m very tired of every saying “let’s try machine learning on this problem” to get something that works marginally better than some conventional models but requiring huge amounts of computation and data.

xmunk ,

I work professionally with actually useful ML stuff (we parse a lot of weird ass files and it’s extremely powerful in that context) - we’ve looked at integrating gpt3 and it scored much worse on accuracy than the model we trained in-house. We’re also investigating adding front-end AI bullshit to placate the CEO. Even at the good shops, you’ll probably get buried in this bullshit - but there are good opportunities out there!

lazyneet , in this is what peak web traffic looks like

The sad reality is that when you look at the files being requested, it’s usually scrapers looking for exploits.

Emmie , in What it's like to be a developer in 2024

Maybe don’t use google. Kagi, ddg handle it fine

hightrix ,

This is the real answer. Stop using Google search.

force ,

if Kagi were open source sure, but it’s $10 a month and the CEO it is kind of an asshole. And a generative-AI-bro (please don’t make me call them GAI-bros)

I’d rather stick to FOSS solutions

JSens1998 , in What it's like to be a developer in 2024

Damn, y’all still using Google. Rip

el_abuelo ,

What are you using?

JSens1998 ,

Brave is my go to for everything except image searching, for that I use DuckDuckGo.

Rexios ,

Kagi. I haven’t felt the need to use anything else since I started using it.

jonasw ,

Same, except searches for local stuff in my area, as Kagi is a bit US centric

porgamrer , in He revealed the secrets !

Wait until this guy finds out that Elon doesn’t actually build the cars

pancakes ,
@pancakes@sh.itjust.works avatar

Or contribute to society at all really

fsxylo ,

Seriously. If Elon shut down Tesla tomorrow all these engineers would be building electric cars at other companies.

brbposting ,

Does (or does not) he get the credit for committing the fraud that kept Tesla in business long enough to popularize* electric cars that there are other companies at which to build them?

Aforementioned fraud:

https://sh.itjust.works/pictrs/image/8de67f72-d86d-4ce8-8045-37b0b60d6a6f.png

(When searching, found apparently jurors in 2023 disagreed with my assessment, so please take with grain of salt.)

*I say “popularize” given:

Tesla was incorporated in July 2003 by [not Elon! but] Martin Eberhard and Marc Tarpenning as Tesla Motors.

LordKitsuna ,

He’s a piece of shit but he restarted the Space Race that was literally dying, push the industry into electric cars when none of them were willing to do it. His actual products may be garbage but it doesn’t stop that it started the movements that needed to happen in the industry.

To say that he contributed nothing at all is unfortunately false as much as I may hate the man

armchair_progamer , in We'll refactor this next year anyways

<span style="font-weight:bold;color:#a71d5d;">public class </span><span style="color:#0086b3;">AbstractBeanVisitorStrategyFactoryBuilderIteratorAdapterProviderObserverGeneratorDecorator </span><span style="color:#323232;">{
</span><span style="color:#323232;">    </span><span style="font-style:italic;color:#969896;">// boilerplate goes here
</span><span style="color:#323232;">}
</span>
wise ,
@wise@feddit.uk avatar

Why do you have access to my project??

swordsmanluke ,

… And can you fix it?

bort ,

============ Top 5: =============== HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor: 97
AbstractAnnotationConfigDispatcherServletInitializer: 52
AbstractInterruptibleBatchPreparedStatementSetter: 49
AbstractInterceptorDrivenBeanDefinitionDecorator: 48
GenericInterfaceDrivenDependencyInjectionAspect: 47

============ Factories: ===============
DefaultListableBeanFactory$DependencyObjectFactory
ObjectFactoryCreatingFactoryBean
SimpleBeanFactoryAwareAspectInstanceFactory
SingletonBeanFactoryLocator$BeanFactoryGroup
ConnectionFactoryUtils$ResourceFactory
DefaultListableBeanFactory$DependencyProviderFactory
ObjectFactoryCreatingFactoryBean$TargetBeanObjectFactory
JndiObjectFactoryBean$JndiObjectProxyFactory
DefaultListableBeanFactory$SerializedBeanFactoryReference
AbstractEntityManagerFactoryBean$SerializedEntityManagerFactoryBeanReference
BeanFactoryAspectInstanceFactory
SingletonBeanFactoryLocator$CountingBeanFactoryReference
TransactionAwarePersistenceManagerFactoryProxy$PersistenceManagerFactoryInvocationHandler
AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler

gist.github.com/thom-nic/2c74ed4075569da0f80b

Serinus ,

Okay, here we go. I’m going to spit out some bullshit and home someone corrects me if I’m wrong. I’ve looked for some explanations and this is what I’ve gotten.

Are you ready?

The Factory Pattern.

My understanding is that the purpose is a function to return any of several types of objects, but a specific type, not just an interface or whatever they might all inherit from.

I think most languages now have something like a “dynamic” keyword to solve this issue by allowing determination of the type only at runtime. (To be used with extreme caution.)

But most of the time I see the Factory pattern, it’s used unnecessarily and can only return one specific type. Why they would use a Factory pattern here and not just a plain old constructor confounds me.

Am I off base?

FizzyOrange ,

Yeah most uses of the factory pattern are unnecessary and it’s mild code smell IMO. If your factory only returns one type you should definitely just use that type’s constructor.

oktux ,

Factory pattern can return a mock type for testing or a production type, as needed, which makes it possible to unit test the code that uses the produced object.

This quick guide explains it well. Then it improves on it by explaining dependency injection.

github.com/google/guice/wiki/Motivation

abbadon420 , in New language

Java is great if you actually want to earn a living.

Sendpicsofsandwiches ,
@Sendpicsofsandwiches@sh.itjust.works avatar
abbadon420 ,

Could you have picked any creepier clown foto? Lol

agressivelyPassive ,

That’s almost comically besides the point of the comment.

skulbuny ,
@skulbuny@sh.itjust.works avatar

True, but functional languages are great if you want to live comfortably.

survey.stackoverflow.co/2023/-salary-sala…

CanadaPlus ,

Difficulty of finding such a job not shown.

swordsmanluke ,

That one dude still using Delphi is getting screwed.

Also, these salary numbers seem… real low. I get that it’s the median so maybe a huge number of overseas engineers are pulling the results down but in my neck of the woods 105K is less than what we pay juniors.

Claudio , in Aaargh....my eyes......my eyes......

Probably still better than bool a; bool b; int c;…

BurningTurtle ,
@BurningTurtle@programming.dev avatar

But i, i is sacred.

Darken ,
@Darken@reddthat.com avatar

deleted_by_author

  • Loading...
  • rmuk ,

    Primitive tribe discovers personal rights.

    Scoopta ,
    @Scoopta@programming.dev avatar

    🤔… I’ve never liked i and don’t use it…not sure why. I keep thinking I should start but alas I just don’t.

    RobMyBot ,

    Honestly? Yes, I agree

    5714 , in C++ oop in a nutshell

    Did I misunderstand something or is that an InCel-joke?

    Harbinger01173430 ,

    …it’s a c++ joke.

    5714 ,

    Did I misunderstand something or is that an c++InCel-joke?

    Harbinger01173430 ,

    That would be incel++ instead

    xmunk , in And don't forget RTFM

    As a developer I object to your assumption that I need a mouse to do my job. The only thing I need a mouse for is outlook and I’d definitely be more productive without it.

    nightofmichelinstars ,

    www.mutt.org

    Disclaimer: I have never used this but I did a Google for you. It looks reasonably maintained.

    GBU_28 ,

    This is my imposter syndrome.

    I’m a senior engineer now and I’m a big mouse user. It’s more intuitive for me. My productivity is certainly not bottlenecking on how fast my hands move on the keyboard. .

    My productivity is bottlenecked by the number of meetings I have to attend, random slack messages that need to be responded to, and distractions IRL.

    isVeryLoud ,

    Nah fuck the haters, the keyboard-only workflow may be technically more productive, just like a Dvorak is better than a QWERTY, but what matters is your output and your quality.

    supercritical ,
    @supercritical@lemmy.world avatar

    People will spend hours learning things that save them seconds.

    xmunk ,

    I’m not going to shame anyone about using a mouse unless you also always right click to copy/paste.

    nexussapphire ,

    Only because I have figured out how to copy from vim to other apps without the mouse yet.

    swab148 ,
    @swab148@startrek.website avatar

    If you ever find out a way, please DM me

    nexussapphire ,

    I’ll probably get back to you in a few years, still mastering the motions and actions.

    swab148 ,
    @swab148@startrek.website avatar

    Haha, same lol

    swab148 ,
    @swab148@startrek.website avatar

    Hey, if you’re still wondering, I found this on SE: vi.stackexchange.com/…/how-can-i-copy-text-to-the…

    nexussapphire ,

    Thank you for this, now I know I have 26+ registers to store stuff in as well as the system clipboard! Honestly been so busy I haven’t touched my computer in over a week.

    Ookami38 ,

    I choose to eschew my mouse when I can because it’s easier. I don’t have to move my arms around as much, and I can work quicker. It’s more comfortable. All of this is a preference thing, why should anyone do something my way if it’s not how they prefer?

    GBU_28 ,

    Great perspective. If we are codeving or screen sharing, I’m fast and fluid. I just move differently.

    Skiing vs snowboarding

    swordsmanluke ,

    One of the best programmers I worked with was a hunt and peck typist.

    His code was meticulous. I frequently learned things reading his PRs.

    Pair programming with him otoh…

    nexussapphire ,

    It’s for navigating web documentation when arrow keys are too fine but page up/down keys are too coarse.

    I guess you could hit tab 9000 times to get to the right hyperlink. I’ve done that when setting up Hyperland on an Nvidia GPU and my cursor was there but invisible.

    Hiro8811 , in Programming: The Horror Game

    But I have an LCD display

    pkill ,

    non-AMOLED devices spreading misinfo by enabling dark mode by default on low battery and it’s consequences…

    Hiro8811 ,

    Low battery mode on…computers?

    Omega_Jimes ,

    Yeah. Some folk use portable computers on top of their laps. It’s weird :/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines