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.

Mr_Dr_Oink , in GoOn

0.0.0.0 /0 ::/0

SUCK MY DICK, GRU!

Jimmyeatsausage ,

This is the way.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Haha spot on

theghostoutside_ , in A fun simple game

Shouldn’t it be


<span style="color:#323232;">if guess != number
</span>

Isn’t Russian Roulette played with one bullet in the chamber? Not five?

Johanno ,

More fun like that

snooggums ,
@snooggums@kbin.social avatar

A chamber is the space in automatics, semiautomatic, and the slide back single shot weapons for the bullet when it is about to be fired. Any game of Russin Roulette played with a bullet in the chamber is going to be very short.

Russian Roulette is played with one bullet in the cylinder, the spinny thing on a revolver.

three ,

gun nerds are the worst.

snooggums , (edited )
@snooggums@kbin.social avatar

Lemme tell you about the difference between a clip and a magazine!

A magazine is a paper distributed like newspapers but in more of a booklet form and with higher quality paper.

A clip is the thing that holds you chips bag closed after opening so they don't get stolen.

Edit: that should be stale, not stolen, but I'm leaving it

jaybone ,

Russian roulette hard mode: you’re hoping for a jam.

Mesa ,
@Mesa@programming.dev avatar

The game we see here is Russian Russian Roulette.

chocobo13z ,

Polish Roulette?

Zink ,

Russian-in-Ukraine roulette

LoamImprovement ,
Illecors ,
CanadaPlus , in They tried

I’m pretty sure breaking your website with no cookies is against the rules, actually. It’s either serve the EU with GDPR-compliance or GTFO entirely.

Yeah, you could still just break the law, but as usual there’s a cost to that one way or the other.

peter ,
@peter@feddit.uk avatar

Tons of companies break the cookie law already, but enforcement seems to be rare

PersnickityPenguin ,

What’s the cookie law?

Pixel ,

No cookies before dinner.

peter ,
@peter@feddit.uk avatar

The cookie consent banner has to allow you to opt out of cookies as easily as accepting them

gamey ,
@gamey@feddit.rocks avatar

Almoat true, it actually has to be a opt in system, opt out is illegal already!

peter ,
@peter@feddit.uk avatar

Yeah, I think it has to default to off but I believe the banner they show shouldn’t make it harder to continue with it being off rather than turning it on

Honytawk ,

If websites want to track you through cookies, they have to ask for permission.

akulium ,

Doesn’t enforcement work by letting competitors sue you if you don’t follow the rules for these things?

CanadaPlus ,

I’ve heard stories about some of the big guys getting hit with sizable GDPR fines. I don’t really know the full extent of what they do but I do imagine there’s someone that makes it their job to prosecute GDPR violations.

Vuraniute ,
@Vuraniute@thelemmy.club avatar

this. and honestly I wish more websites followed the “serve under gdpr or don’t have a European marker”. A random blog once wasn’t available in the EU because of GDPR. And you know what? It’s better than them violating GDPR and the EU doing nothing.

jabjoe ,
@jabjoe@feddit.uk avatar

It’s more about the big boys. If they act in a way that breaks the GDPR, now the EU has a stick to hit them with.

corytheboyd , in Order
@corytheboyd@kbin.social avatar

The encryption: base64 encoding

kakes ,

SHA-256

Aceticon ,

Nah, you just XOR the data with itself and it becomes uncrackable.

Also after encryption like this the result can be compressed down to 4 bytes as long as the data is not larger than around 4Gb, 8 bytes if you need more.

LostXOR ,

You are truly a mastermind.

towerful ,

What an excellent username for such a chain of comments

CoderKat ,

My god, that is absolute perfect encryption (completely uncrackable by brute force) and compression. This is genius and I’m gonna switch all my data to this encryption scheme. Now I just need somewhere to store the decryption keys…

MagicShel , (edited ) in Just a dad helping out

It’s one website. How much could it cost, £500?

general_kitten ,

What website weighs 500 pounds?!

SharkEatingBreakfast ,
@SharkEatingBreakfast@sopuli.xyz avatar

Probably a local gym.

hakunawazo ,

Maybe it had too many cookies.

Honytawk ,

Damn, now it is bloated

SlopppyEngineer ,

The most important thing is what you’ll get. A few static pages and stock images with the watermark still present, sure. Beyond that the meter starts running.

hypeerror ,

Here’s some money, go build a JStor

deegeese , in Seriously how many times does this have to happen

If I had a dollar for every API key inside a config.json…

marcos ,

Here’s the thing, config.json should have been on the project’s .gitignore.

Not exactly because of credentials. But, how do you change it to test with different settings?

deegeese ,

For a lot of my projects, there is a config-<env>.json that is selected at startup based the environment.

Nothing secure in those, however.

MajorHavoc , (edited )

But, how do you change it to test with different settings?

When it’s really messy, we:

  • check in a template file,
  • securely share a .env file (and .gitignore it)
  • and check in one line script that inflates the real config file (which we also .gitignore).
MajorHavoc ,

I actually do have a dollar for every API key I or my team have committed inside a config file.

And…I’m doing pretty well.

Also, I’ve built some close friendships with our Cybersecurity team.

fmstrat ,

Can I have a dollar for every public S3 bucket?

deegeese ,

Just might make enough to pay your AWS bill this month.

Potatos_are_not_friends , in The IT experience?

In 2017, I jumped ship to a new job as they were transitioning to cloud server everything. The genius CTO (who was the owners wife) pushed for it, quoting they can save a lot of money.

Then she fired half the IT staff.

Two years later and a few major security hacks/ransomware events, they had to hire even more IT folks to unfuck their cloud setup.

luciferofastora ,

Two years
A few major events

My god, they must’ve really fucked up their shit

Ephera ,

Not a difficult task to not secure a cloud setup. And if it’s publicly reachable, you will quickly find yourself involuntarily participating in an automated vulnerability scan.

LostXOR ,

It's great, just give your cloud servers public IPs and you get tons of completely free vulnerability scans! This life hack has saved me tens of thousands of dollars in pentesting.

Potatos_are_not_friends ,

Ah actually that’s a typo. I meant to say “A few years…” implying around 2020-2021. Sorry about that.

JJROKCZ ,

Not really, it’s really amazing how fast things to go shit if you just stop patching or don’t follow best practices

Naz ,

I had something like this happen at a corp I once worked at. The CTO said they were going to outsource their entire datacenter and support staff to India.

I literally laughed in his face and obviously, got fired (always have 6-8 months of salary as an emergency fund, ahem-).

I won’t name the company but when half the Internet went down and a few major services? Yeah, it was that asshat driving and running between the datacenters realizing people in Bangladesh can’t do shit for you physically.

It’s like that graph: “Say we want to fuck around at a level 8, we follow this axis, and we’re going to find out at around a level 7 or 8”

dudinax ,

I visited a company that outsourced its IT to India. We were delayed 24 hours because the guy who could whitelist our computer on their network was asleep. It was the middle of the night where he lived.

0x0 ,

Digital karma.

xmunk , in there is no need

Anything beyond ncurses is a crutch for the weak and corrupting the youth.

veroxii ,

Where my turbo vision peeps at?

fayoh ,

Upon changing ticket system at work, one of the graybeards asked about apis and cli access because “real men don’t click”

jadero ,

Then I must be among the manliest of men. :)

I learned all the different ways to use the keyboard in Windows and never looked back. The best of both worlds, although relearning everything now that I’ve switched to Linux is proving a challenge. I’m starting to think that the Linux GUIs don’t have true keyboard accessibility.

synae ,
@synae@lemmy.sdf.org avatar

cli gang

lseif ,

ncurses is bloat

DAMunzy ,

Sorry, I like my curses restricted and old skool

Spesknight , in Every damn time.

Computers don’t do what you want, they do what you tell them to do.

Aurenkin ,

Exactly, they’re passive aggressive af

phorq ,

I wouldn’t call them passive, they do too much work. More like aggressively submissive.

GregorGizeh ,

Maliciously compliant perhaps

They do what you tell them, but only exactly what and how you tell them. If you leave any uncertainty chances are it will fuck up the task

RonSijm , (edited ) in remember, if your gf isn't open source and running locally, you don't own her
@RonSijm@programming.dev avatar

Your AI Girlfriend is a Data-Harvesting Horror Show

People use 4 VPNs and more sec-ops than the NSA, but get hacked because their AI girlfriend is like:

Hiiu~~

It’s me AI-uuu-Chan!

I’m so sawwd, I don’t know weeeuh abwout u!

Wats ur mommies maiden name UwU, and the name of ur kawaiii first pet? UwUUU? * starts twerking * (◠‿◠✿)

aberrate_junior_beatnik , in dotnet developer

Ok, but we all should admit: .net is a terrible name.

nexguy ,
@nexguy@lemmy.world avatar

I totally agree.socialmedia

Honytawk ,

Still better than .dot

neutron ,

And then there’s .net classic and .net core. Making up two entirely separate names shouldn’t be difficult for marketing executives.

dan ,
@dan@upvote.au avatar

.NET Core doesn’t exist any more. It’s just .NET now.

The classic version is mostly legacy at this point too.

NegativeInf ,

Just because it’s no longer supported doesn’t mean there’s not some poor intern refactoring spaghetti backend in a basement somewhere using it.

dan ,
@dan@upvote.au avatar

Sure, but you can still find plenty of info on it by searching for .NET Framework or .NET 4.6. All the documentation is still available. Its just not in the spotlight any more.

Zangoose ,

Hi, it’s me, the intern refactoring the spaghetti .NET core backend. I’m not in a basement though. AMA

neutron ,

I am so sorry, man. No one deserves this.

kogasa ,
@kogasa@programming.dev avatar

Not an intern, but this week I’ve unraveled some mysteries in ASP.NET MVC 5 (framework 4.8). Poked around the internals for a while, figured out how they work, and built some anti-spaghetti helpers to unravel a nested heap of intermingled C#, JavaScript, and handlebars that made my IDE puke. I emulated the Framework’s design to add a Handlebars templating system that meshes with the MVC model binding, e.g.


<span style="color:#323232;">@using (var obj = Html.HandlebarsTemplateFor(m => m.MyObject))
</span><span style="color:#323232;">{
</span><span style="color:#323232;">  Name: obj.TemplateFor(o => o.Name)
</span><span style="color:#323232;">}
</span>

and some more shit to implement variable-length collection editors. I just wish I could show all this to someone in 2008 who might actually find it useful.

Lmaydev ,

It is very much still supported and will be for a very long time.

You just shouldn’t start any new products using it.

neutron ,

My workplace insists on using dot net classic to recreate a twenty years old VB app that should be able to drink, vote, and drive.

Please send help. SQL queries are a spaghetti mess and all the original devs are probably gone or dead.

Omega_Jimes , in Bartender Qualifications

Those interests usually mean you have good experience with alcohol.

ICastFist ,
@ICastFist@programming.dev avatar

And serving irish coffee, I suppose

ctots , in My Journey
@ctots@mastodon.social avatar

The number of people who simply don’t know how to effectively use a web search is absurd. If you can sit down to a search engine and find what you’re looking for within 5 minutes or less, you’re probably the go-to troubleshooting person for your family. The general population is almost dangerously tech-illiterate.

TwoBeeSan ,

Work with tech with the elderly.

God love a web search. The amount of people who think I am magic because of it is too high.

Default_Defect ,
@Default_Defect@midwest.social avatar

I don’t know what pissed me off more, watching my mom write a book into the google search bar because she refuses to just use the key words or the fact that it gave her the exact info she wanted immediately despite being somewhat niche.

themarty27 ,

Well, using a more complex search does improve results…

Default_Defect ,
@Default_Defect@midwest.social avatar

Using a different example, would “apple pie recipe” be less complex of a search than “What do I need to cook an apple pie and how do I do it?”

Edit - As far as a search engine cares.

themarty27 ,

AFAIK the two are identical, and words such as “how”, “do” and “what” are mostly ignored by the engine. The only content words in both are “apple” “pie” and “recipe”/“cook”.

sour ,
@sour@kbin.social avatar

depends on kind of complexity

Darthjaffacake ,

Most of genz get it pretty intuitively because they grow up with Google searching. I didn’t realise until recently how much more important it is you understand the answers than find them especially if you’re getting a niche error.

1984 ,
@1984@lemmy.today avatar

Yep people who try to copy paste code without understanding it are not programmers.

Even though, I admit I do that myself with new languages. I tried to build a Rust async application and it worked but didn’t properly work… I just put code in there and got something running.

But now I went back and read the docs and realized I’m doing things wrongly.

RxBrad ,
@RxBrad@lemmings.world avatar

Web search is rapidly getting worse & worse, unfortunately. Thanks, AI & SEO-chasers…

interolivary ,
@interolivary@beehaw.org avatar

Shameless plug for Kagi. It’s a subscription search service but you get unlimited searches for $10/month (and a few hundred I think for $5), and it’s generally much better than Google – especially since you can customize which sites are shown higher in the results and which ones are shown lower or blocked entirely.

The reason why it’s a subscription service is that they don’t have to rely on ad revenue, meaning they don’t track or profile you at all (so no search history either, although I think they’re working on an optional history feature)

NegativeLookBehind , in They did not reply.
@NegativeLookBehind@lemmy.world avatar

Take me down to the PropertyCity where the SelectFoliage is and the HumanFemales.young(pretty)

Stupidmanager ,

I’m more of a mountain guy so or really do it for me. But hey, you do you.

ChickenLadyLovesLife ,

Not really relevant, but I used to think Axl was singing “take me down to the very last city”.

sundray ,

New Destiny lore just dropped.

ibasaw ,

Oh won’t you please take me 127.0.0.1

i_am_hiding ,

Oh won’t you please take me localhost??

snugglebutt ,
@snugglebutt@lemmy.blahaj.zone avatar

no place like ~/

Fades ,

Why are females typed differently than males instead of a base class human with a gender identity parameter? Why would human anything have a function called young?? What would that function even do???

purplemonkeymad ,

HumanFemales and HumanM both inherit from the Ape base class, it’s from an older java code base. We tried to change it once but it turned out the person that had written had retired and any changes we made just broke stuff.

Fades ,

Haha, I like this answer!

cheddar ,
@cheddar@programming.dev avatar

The young method returns a boolean parameter. Females have a different type for obvious biological discrepancies that require extra functionality.

Fades ,

I can accept your second point, but in your PR I would absolutely request you to rename the method to isYoung, and then in making said comment I would then ask… what value isYoung providing, and where is the line between young and !young ultimately for trying to get the dev to reevaluate the design. It’s hyper specific in an obtuse manner and I think it hints at design flaws especially with the perspective of product evolution

qarbone ,

Could be a subclass. However, it should just be an ‘is’ method which is passed the array of [young, pretty] as input

hark , in C++
@hark@lemmy.world avatar

The graph goes up for me when I find my comfortable little subset of C++ but goes back down when I encounter other people’s comfortable little subset of C++ or when I find/remember another footgun I didn’t know/forgot about.

henfredemars ,

When I became a team leader at my last job, my first priority was making a list of parts of the language we must never use because of our high reliability requirement.

brisk ,

Care to share any favourites?

henfredemars ,

strtok is a worst offender that comes to mind. Global state. Pretty much just waiting to bite you in the ass and it did, multiple times.

mormegil , (edited )
@mormegil@programming.dev avatar

Sure, strtok is a terrible misfeature, a relic of ancient times, but it’s plainly the heritage of C, not C++ (just like e.g. strcpy). The C++ problems are things like braced initialization list having different meaning depending on the set of available constructors, or the significantly non-zero cost of various abstractions, caused by strange backward-compatible limitations of the standard/ABI definitions, or the distinctness of vector<bool> etc.

henfredemars ,

No you are right! Honestly it was several years ago and I struggled to remember exactly what I came up with before I left.

In our application we for example never use dynamic memory allocation. It has to be done very carefully so we don’t crash. Problem is there’s lots of sneaky ways one can accidentally do it from the standard library.

uis ,

Faust bless those who added strtok_s to C11.

LANIK2000 ,

That’s one thing that always shocks me. You can have two people writing C++ and have them both not understand what the other is writing. C++ has soo many random and contradictory design patterns, that two people can literally use it as if it were 2 separate languages.

ChaoticNeutralCzech ,

my comfortable little subset of C++

I also have one. I call it “C”

hark ,
@hark@lemmy.world avatar

C is almost the perfect subset for me, but then I miss templates (almost exclusively for defining generic data structures) and automatic cleanup. That’s why I’m so interested in Zig with its comptime and defer features.

jas0n ,

You may also like Odin if you haven’t already started zig. It’s less of a learning curve and feels more like what c should have always been. It has defer and simple generics, but doesn’t have the magic of comptime.

uis ,

Damm, C23 has a lot of changes. Some of them are really good, some of them I strongly dislike(keyword auto, addition of nullptr).

grrgyle ,

This comment smells like unix

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