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.

Crow , in incoming
@Crow@lemmy.world avatar

CSS grids are a godsend.

reverendsteveii , in Imagine

cowsay “Like, subscribe and ringadingding that bell for more!”

Asudox ,
@Asudox@lemmy.world avatar

<span style="color:#323232;">________________________________________
</span><span style="color:#323232;">/ Like, subscribe and ringadingding that 
</span><span style="color:#323232;"> bell for more!                         /
</span><span style="color:#323232;"> ----------------------------------------
</span><span style="color:#323232;">           ^__^
</span><span style="color:#323232;">           (oo)_______
</span><span style="color:#323232;">            (__)       )/
</span><span style="color:#323232;">                ||----w |
</span><span style="color:#323232;">                ||     ||
</span>
reverendsteveii ,

Time for me to learn how to build a Lemmy bot, it seems

VonReposti ,

Hate it when it happens

jarfil , in “Hire me”

Bah, 2 whole days? I learned React in 1 day!.. then another, and another, and then I got a book, and a few years later… I learned how to fix whatever ChatGPT spits out in React in 2 days!

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

This person also lectured me on using AI to write code. Saying it was better than a human (in 2023), and that it made him senior level. They practically mocked me when I told them ChatGPT was pretty bad at coding.

ImpossibleRubiksCube ,

I hesitate to think of the industry he’s in.

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

Oh, he’s a “Full Stack Developer”

… and currently unemployed.

ImpossibleRubiksCube ,

Oh thank God.

jarfil ,

Hey, I used to be a “Full Stack Developer”… then I took an arro… went part blind, had a couple heart attacks, got burned out… and still learned how to fix the ChatGPT stuff in 2 days! 😄

…and am currently on disability 😬

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

Something tells me you’ve got an interesting story… about arrows?

Hazzia ,

I’d say something about them being the type of person to think that just because the car’s running it means the engineering is top-tier, but then again I’d be surprised if he actually bothered really testing the code before saying that shit.

Either way, they sound like a genius and like one day they’re going to become the CTO of a hot new startup that will eventually replace Amazon on the Big Tech leaderboard.

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

I wish them that kind of luck.

nothendev , in Markdown everywhere

*org-mode

dreadedsemi , in OC: Me since Bun 1.0.0

Oh no. Another thing to learn.

DARbarian ,
@DARbarian@artemis.camp avatar

God my thoughts exactly. Probably super cool, but still I just can't keep up

choroalp ,

Compatible with node

starman OP , (edited )
@starman@programming.dev avatar

It’s almost 100% compatible with node but faster. A lot faster. So no need to learn anything but few cli commands. For example bun run dev instead of npm run dev.

Edit: website

mvirts ,

Alias npm bun level compatibility?

NotSteve_ ,

Bun is designed as a drop-in replacement for Node.js

It does seem so!

ExtraMedicated ,

This is the first I’ve heard of this. Might be worth checking out.

beeb ,

I’m trying to get my work to switch to bun but we have packages in a private AWS codeartifact repo. Does it support this? I tried to use it with our npmrc file but it couldn’t install those packages.

beeb ,

This answers my question bun.sh/docs/install/registries

Solemarc ,

you probably don’t need to learn it, Deno was a massive upgrade over Node and it didn’t matter, not convinced this will be any different.

nonearther ,

IMO, deno’s approach was bad as it was reinventing the wheel, so one had to relearn. And then they brought package.json which they said they wouldn’t. This again got people to unlearn and relearn things.

Bun, on the other hand, acts like what Typescript is to Javascript. It’s just feels like superset of Node, instead of completely different tool.

I expect Bun will get more success than Deno.

snowe ,
@snowe@programming.dev avatar

Makes sense. Deno was created by the same person that created node. They’re both going to be terrible, especially when they ignore everything ever discovered in software engineering about writing good code, good frameworks, good languages, etc.

sip ,

deno was also created by one of the guys who created node.

snowe ,
@snowe@programming.dev avatar

huh? that’s what I said.

sip ,

sorry, brainfart. I read “bun is created as the same who created node” 🤦🏻‍♂️

snowe ,
@snowe@programming.dev avatar

gotcha. I don’t think bun is created by the same person that created node. deno is, and has just as bad a design as node as a result. it honestly baffling that people trust someone to write a language who failed so badly to write a language that they set back the entire world for decades to come.

sip ,

idk I think people can learn from their mistakes and evolve. especially if they accept collaboration and RFCs.

I haven’t worked much with deno, so I can’t tell. But I earn my living with Node and it’s ok. I still hate js more than node itself.

sip ,

idk I think people can learn from their mistakes and evolve. especially if they accept collaboration and RFCs.

I haven’t worked much with deno, so I can’t tell. But I earn my living with Node and it’s ok. I dislike js way more than node itself.

I guess all the hate is around module resolution and package management.

SmoothSurfer ,

This will be last 🥲

onlinepersona , in My poor RAM...

Got myself a laptop and PC with 64GB of RAM. I’ll never look back. 16GB on a dev machine just seem like the bare minimum nowadays.

onlinepersona , in incoming

Is this a new CSS attribute?

hblaub , in My poor RAM...

Please don’t eat my RAM. I need it for mining MemoryCoin ™.

explodicle ,

(Not FUD, legit curious)

Is there any way to make RAM production significantly greener than it is today?

MonkderZweite , in Markdown everywhere

Yes?

ilovegodette , in Imagine

KILL SELF

SUDO !!

CubitOom , in Markdown everywhere

Emacs gang here, coughing in org-mode.

JoYo , in After 6 hours
@JoYo@lemmy.ml avatar

sometimes it is the unit tests.

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.

Kodemystic , in Haskell researchers announce new discovery
@Kodemystic@lemmy.kodemystic.dev avatar

Noob here. What’s wrong with Haskell and why doesn’t it get used more often?

asdfasdfasdf ,

It’s extremely heavy on functional programming terminology and patterns which are notoriously not approachable by normal people.

Kodemystic ,
@Kodemystic@lemmy.kodemystic.dev avatar

You mean Haskell is a language more for mathematical gurus? I can add, subtract multiply and divide. Would this be enough?

bdesk ,

A monad is a monoid in the category of endofunctors

oce ,
@oce@jlai.lu avatar

I read about those about once every two years and forget what it means a week later.

Kamek_pf ,

They never tried to push the language and make it mainstream, but this is somewhat changing since the Haskell Foundation started a couple years ago.

Also, if you only know C or Java, then it looks a bit alien.

I’ve been using it exclusively at work for about 4 years and it makes writing correct code and maintaining it much easier than anything else I’ve tried so far.

uniqueid198x ,

haskell is one of the mathematically founded functional languages, which is a whole family of loosely related languages that have seen lower uptake over the years. Other examples include ML and variants, and F#.

There are a few reasons why adoption has been slow:

  • poor outreach by language founders
  • less focus on commercial use
  • novel syntax
  • core abstractions that differ from mainstream

Many of these are seeing some change. Haskell is getting better at outreach and comercial focus, and Rescript (ml for the web) has a lot of syntactical similarity to ja|ascript.

starman OP ,
@starman@programming.dev avatar

Yeah, I wish F# was used more often. I actually learned it for fun, and it would be great to work with it. Unfortunately I haven’t heard of any F# job in my country yet.

nintendiator ,

So… they don’t give a F#?

(I wonder if the F# people have tried doing outreach via F# memes, should work IMO, good names that also fit slang abbreviations are a very contested and already expended word space)

herbert ,

Rust stole its koolaid.

floofloof ,

Functional programming requires quite a shift in how you think about designing and debugging code. If you’ve spent your whole programming life thinking procedurally and approaching debugging by stepping through, it’s not an easy mental reset to make. And many languages these days can give you a taste of the functional style without taking away so much that is familiar, giving you some of the advantages of functional programming, such as clean code that’s thread safe and free of side effects. People under time pressure are likely to stop there.

magic_lobster_party ,

It’s a cool language. Main problem is that it’s difficult to recruit for. Not many developers know Haskell well enough.

Haskell also makes many huge sacrifices for purity. Accessing the file system is quite wonky. Basic stuff like maps aren’t easy to implement either. In the end, it’s a language great for toy examples, but turns into a massive hassle once you want to do real practical stuff.

I think everybody should at least learn it. You’ll learn some cool stuff that will be of use in other languages.

Pipoca ,

Basic stuff like maps aren’t easy to implement either.

This is mostly due to a preference for immutable data structures. That said, the standard library has a balanced tree-based map that’s not too complex.

If you want a good immutable data structure with O(1) find and update, you’re unfortunately looking at something like a hash array mapped trie, but that’s the same in e.g. clojure or Scala.

Pipoca ,

Haskell started out as an academic language.

The problem Haskell was trying to solve was that in the late 80s, there was a bunch of interest in lazy functional programming but all the research groups had to write their own lazy language before writing a paper on whatever new feature they were interested in. So they banded together to create Haskell as a common research program that they could collectively use.

It’s been remarkably successful for a research language, and has become more practical over the years in many ways. But it’s always had the motto “avoid (success at all costs)”.

mihnt , in Imagine
@mihnt@kbin.social avatar

deleted_by_author

  • Loading...
  • Admin ,

    I just added clear &amp;&amp; neofetch to my .bashrc, works great

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