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.

SnowdenHeroOfOurTime , in Microsoft Edge could use a win

I really liked Edge like a year or two ago. It seems they are trying to destroy it as fast as possible.

MJBrune ,

What did they do that you didn’t like?

hglman ,

The right click menu has an entry to search what is highlighted with the default search engine next to an entry to search with bing.

SnowdenHeroOfOurTime ,

Have you used it recently? They’ve gone crazy with shitty toolbars, especially on windows

nothacking , in It’s a game for kids!

Oh but we don’t play it, we put lighting into rocks and trick them into doing it.

Anticorp , in Steal What Is Stolen

“I stole your code”

“Well, I’m fucking honored, mate. Have at it”

onlinepersona , in D or d come on
wick , in ಠ_ಠ

WWJCD

fiah ,
@fiah@discuss.tchncs.de avatar

nuke the site from orbit

JoeBigelow ,
@JoeBigelow@lemmy.ca avatar

Jesus operates a Low Orbit Ion Cannon, it’s where the smiting confusion comes from.

Metal_Zealot , in Welp, guess I'm going to hell
@Metal_Zealot@lemmy.ml avatar

“It seems you have an ad blocker enabled. In order the enjoy the full benefits of heaven, please disable it and accept our cookies”

xusontha OP ,

bro who is selling ads in heaven

Metal_Zealot ,
@Metal_Zealot@lemmy.ml avatar

Google Adsense has a further reach that you think

JATtho , in Programming Languages as Essays

C++: The project is now led by university research comitee optimizing essays/second and consists 1k lines of template hieroglyphs.

I_Miss_Daniel , in Programming Languages as Essays
@I_Miss_Daniel@kbin.social avatar

HTML:

Blink. Blink. Blink. Blnk.

newIdentity ,

Blink engine

ledtasso , in It's a mass extinction event

Hot take (maybe?) C# looks like a great language, better than Java. I wish I had an excuse to use it.

bi_tux ,
@bi_tux@lemmy.world avatar

Tbh it’s just microsoft java with worse support on GNU/Linux

The only reason I used it were the unity libraries

brezelradar ,
@brezelradar@feddit.de avatar

Tbh it’s just microsoft java

Microsoft made so many javas (remember Visual J++ or J#?), C# is the only one that survived. Well, Microsoft now also ships OpenJDK, apparently.

Hawk ,

Use it on Linux daily, no issues here.

deveaux ,

If this were ten years ago, sure.

Mananasi ,

There’s many reasons to dislike C#, but this is just plain wrong

Elderos ,

Java feels archaic compared to C#. I am not sure what problems you’re having on Linux? This sounds like a very outdated take tbh.

locuester ,

Definitely not the case. I’ve been doing C# for over 20 years. For the last 6 years I’ve used it to write Linux services exclusively.

The “Java” relation was true 20 years ago, and the “Linux” argument was true 7 years ago. But neither hold any water anymore. It’s a great language and framework to write a wide variety of software with.

Matthew ,

I’m not the best judge, as I’ve not exactly explored a ton of languages, but I love C#.

Pipoca ,

Being a much better language than Java isn’t exactly a high bar.

gitstash , in Always commit

git stash, girl

halvar , in Imagine

This is the beuty of FOSS. I can add them myself, whenever I want to.

alphacyberranger , in After 6 hours
@alphacyberranger@lemmy.world avatar

Everyone talks about testing, but I have never seen it in the wild

Jaydeep ,

It’s common in critical projects.

alphacyberranger ,
@alphacyberranger@lemmy.world avatar

Chuckles… you have not worked in my company.

fibojoly ,

After many years (10+), I finally find a company that actually, really, implements CI/CD. Then I look at the tests and it’s actually the most inane shit imaginable, tacked on top of ancient existing code, not maintained. I spent more time fixing the stupid tests than actually fixing the bugs I was tasked fixing. Amazing.

gerryflap ,
@gerryflap@feddit.nl avatar

I can’t really imagine working on any code base that has to actually be maintained and doesn’t have tests. The amount of times that tests have safed my ass at my job are uncountable

huginn ,

Meanwhile I’m very upset our unit test coverage is only 40%.

Like, it’s the number 1 priority for the principle & staff engineers to get that up to 80% across the codebase.

floofloof ,

And it’s number 1 priority for management to employ as few developers as possible and stretch their team as thinly as possible. Hence still no unit tests in any of the companies I’ve worked at recently, despite everyone knowing they’re worth it, including lip service from management. They just won’t invest in testing, no matter what. One company even fired all the testers then complained to the developers that the product was getting less reliable.

buzziebee ,

We test the shit out of our Apis. We do more API level/integration testing though.

I.e. a test will be something like “if the db is in this state, and we hit this endpoint with these params, does it return what we expect and update the db correctly”.

Our app is primarily about users maintaining stuff on big datasets with complicated aggregation and approval logic. So setting up a scenario and checking the app does what the business logic says it will do is what we want to know.

It makes refactoring wayyyyy less painful to just know that the app will always behave itself. Rather than testing whether a function can add 1 + 2 correctly, we can test each endpoint does what it’s supposed to do.

It gives us loads of confidence that the backend is doing what it’s supposed to. If you do a huge refactor you don’t need to worry about whether you broke the test or if the test is failing correctly. If the tests all pass everything is working as it should.

Downside is longer test execution times (because a temporary db needs set up) when running the full suite. Worth the trade off for us though.

jaybone ,

Those are good tests. But that sounds more like an integration test than a unit test. And we should have both.

redcalcium , in Some people just wake up and choose violence

People seems to be riled up by this, but turbo is mostly used with ruby on rails, right? I’m not familiar with ruby on rails, does it actually support some form of static typing it type hints? From the blog post, the dev (which is also the ruby on rails creator) doesn’t seem to be a fan of bolting static typing into dynamic typing language.

umbraroze ,
@umbraroze@kbin.social avatar

In Ruby, the convention is usually that things are duck-typed (the actual types of your inputs don't matter as long as they implement whatever you're expecting of them, if not, we throw an exception). Type hinting could be possible, but it basically runs contrary to the idea.

Now, Ruby on Rails developers are expecting some kind of magic conversion happening at the interfaces. For example, ActiveRecord maps the database datatypes to Ruby classes and will perform automated conversions on, say, date/time values. But from the developer perspective it doesn't generally matter how this conversion actually happens, as long as there's something between the layers to do the thing.

tvbusy ,

RoR is very… specific. Some love it because it comes with magic. Many hate it for the same reason.

You either knows the magic and love it, or you hate it with a passion. You never really know when (not if) your change will break the system because it’s supposed to name in a very specific way that work by, again, magic.

rikudou ,

It’s also used quite a bit with Symfony framework (PHP) which is strongly typed. I use it for example at schedule.lemmings.world. A shame, really.

tram1 , in Which side are you? Javascript or Typescript

I’m kind of a beginner… Can someone explain why you would make/use/have a dynamically and/or weak typed language? Is it just to not write some toInteger / as u64 / try_from()? I mean the drawbacks seem to outweigh the benefits…

Lmaydev ,

If you are writing small and simple apps it will give you more velocity and much less boiler plate.

As apps grow it becomes harder to keep track of things and can quickly grow into a mess. You then start to need external tools to give you the features of a strong static type system.

Also from a web point of view you don’t want the website to crash and burn with every error. JS will power through things like invalid types. Imagine if any error caused the website to just stop.

Johanno ,

Si you say I should use python for websites?

Lmaydev ,

Unsafe rust is your best bet.

Nerd02 ,
@Nerd02@lemmy.basedcount.com avatar

There’s no real alternatives to JS “for websites” (meaning on the frontend, the part of your code that gets executed on your client’s browser). That’s what JS was invented for and what it does best.

I say “no real alternative” because technically we also have WebAssembly, which is a tool that allows you to run code written with any language on the web, but if you indeed are a beginner approaching to web development you should just forget about this for now and stick to JS as you learn.

Of course this doesn’t mean that you can’t use Python on your backend, your server.

rederick29 ,

Why should beginners approaching web development stay away from WASM? I’ve used it a few times to create online demos of software I made in Rust and it was a very simple and painless experience to get it working in a website. I consider myself a beginner and I have not run into any issues with it so far.

CodeBlooded ,
@CodeBlooded@programming.dev avatar

WASM is simply further down the rabbit hole for someone who is new to programming (but not someone who’s already a programmer and just doesn’t focus on web dev today). You are likely far less beginner than you think if you’re making decisions like “I’m going to compile my software written in Rust targeting WASM so I can demo it.”

ironbeard ,

But a statically typed language would catch those errors before it even compiles…

Lmaydev ,

The fact it doesn’t need to be compiled is also a big reason why it’s used on the web.

But I absolutely agree. I’m not a fan of dynamic typing at all.

noli ,

The typical arguments for a dynamic typed language are that it takes less time to write something in it.

The benefits of static typed languages are that your development environment can be a lot smarter (ironically enough leading to faster development speed) and several classes of bugs being unable to happen. In a statically typed language, the IDE can detect if you’re trying to call a function that takes a number but you’re actually providing a string. In this case the IDE will let you know and you can immediately fix silly mistakes like that.

Knusper ,

They used to be more attractive around the 2000s, before type inference became commonplace and when IDEs/editors were still a lot less powerful.

As for making a dynamically typed language, to my knowledge, they are actually easier to create than statically typed languages…

qaz ,

I prefer using JS because I can see the errors, while having to figure out which part generated the problematic JS code with errors when using something else.

marcos , in This one goes out to the sysadmins in the crowd.

Yeah, almost certainly the software only uses 4GB because it limits itself to what memory it has available.

I have seen this conversation pan out a few times already. It has always been because of that, and once expanded things work much better. (Personally I have never took party at one, I guess that’s luck.)

yum13241 ,

Does the OS really eat up 7GB RAM?

marcos ,

Oh, ok, I overlooked it has space to grow. This is one conversation I’ve never seen.

ptz OP ,
@ptz@dubvee.org avatar

I phrased that panel poorly. App in question always had 16 GB and still never used above 4.

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