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.

Thcdenton , in Explaining software development methods by flying to Mars

I heard fuckin nasa does TDD

datavoid , in Coomitter be like

To real, it hurts

rms1990 , in "Working with Gen AI" by Dandytoon

It’s interesting the AI of the past and the AI now.

crossmr , in "Working with Gen AI" by Dandytoon

Gen AI is best used with languages that you don't use that much. I might need a python script once a year or once every 6 months. Yeah I learned it ages ago, but don't have much need to keep up on it. Still remember all the concepts so I can take the time to describe to the AI what I need step by step and verify each iteration. This way if it does make a mistake at some point that it can't get itself out of, you've at least got a script complete to that point.

RestrictedAccount ,

Exactly. I can’t remember syntax for all the languages that I have used over the last 40 years, but AI can get me started with a pretty good start and it takes hours off of the review of code books.

Auzy ,

I actually disagree. I feel it’s best to use for languages you’re good with, because it tends to introduce very subtle bugs which can be very difficult to debug, and code which looks accurate about isn’t. If you’re not totally familiar with the language, it can be even harder

crossmr ,

I test all scripts as I generate them. I also generate them function by function and test. If I'm not getting the expected output it's easy to catch that. I'm not doing super complicated stuff, but for the few I've had to do, it's worked very well. Just because I don't remember perfect syntax because I use it a couple of times a year doesn't mean I won't catch bugs.

Diplomjodler3 , (edited ) in Derisking a project 1 year out

What what? I thought agile means you don’t have to plan!

soloner ,

Nah. It doesn’t say not to plan. It says to prefer responding to change over planning. Which means both happen but responding to change is more crucial. Or put another way don’t let your plan get in the way of responding to change.

I’m sure you were being sarcastic, but I get kind of tired of the Agile strawman and people shitting on it. It’s not a complex philosophy yet people extrapolate so much (too much) and then get annoyed when their assumptions don’t pan out well. even performing sprints is an extrapolation, so this meme gets it wrong too.

Diplomjodler3 ,

Found the scrum master.

soloner ,

😆

johannesvanderwhales ,

Well that’s largely because so few companies are doing agile correctly. Its usually some form of agilefall.

anton ,

I think Dylan Beattie once said: If you don’t have a plan, how can you choose not to follow it?

Ephera , in Linus Torvalds to Rewrite the Linux Kernel in PHP

Good thing that this isn’t actually possible…

morrowind ,
@morrowind@lemmy.ml avatar

Don’t tempt fate. There are already two kernels written in javascript

spacecadet ,

Why would God allow this to happen?

Barbossa404 ,

Why do you think God stays in heaven, in fear of what He created?

davidgro ,

For the benefit of any of Today’s 10,000 I just want to point out that this is a reference to a quote from a movie.
The same movie stars Danny Trejo as Machete.
This movie is Spy Kids 2.

theRealBassist ,

For the benefit of any of Today’s 10,000

Haven’t seen that referenced in a hot minute lol

Relevant xkcd: xkcd.com/1053

ZeroHora ,
@ZeroHora@lemmy.ml avatar

God is dead

camr_on ,
@camr_on@lemmy.world avatar

We killed Him

Chadus_Maximus ,

To punish us for the sin that is inventing JavaScript.

Ephera ,

How? You’d need to compile it down to machine code somehow, for the processor to have any clue how to run it. And you’d need some custom library with custom compile instructions, to be able to control memory allocations, memory addresses etc…

I did a quick search and found two operating systems written in JS, both of which cop out when it comes to the kernel. Did you maybe mix it up with those?

frezik ,

There’s almost always at least a little ASM sprinkled into any kernel, so that’s not a big deal.

OTOH, there is the factor of “you know how Chrome takes up 2GB per tab? What if that was a whole OS?”

morrowind ,
@morrowind@lemmy.ml avatar

Maybe I did, I haven’t looked any of them carefully

TrickDacy ,

Theoretically if you found a way to compile PHP, you probably could though, right?

Ephera ,

I mean, I’m a bit out of my water there, both in terms of the featureset of PHP and what’s actually needed for a kernel, but I’m still gonna go with no.

For one, PHP uses reference counting + garbage collection for memory management. That’s normally done by the language runtime, which you won’t have when running baremetal.

Maybe you could implement a kernel, which does as few allocations as possible (generally a good idea for a kernel, but no idea, if it’s possible with PHP), and then basically just let it memory leak until everything crashes.
Then again, the kernel is responsible for making processes crash when they have a memory leak. Presumably, our PHP kernel would just start overwriting data from running processes and eventually overwrite itself in memory(?). Either way, it would be horrendous.

Maybe you could also try to implement some basic reference counting into your own PHP code, so that your own code keeps track of how often you’ve used an object in your own code. Certainly doesn’t sound like fun, though.

Well, and secondly, I imagine, you’d also still need an extension of the language, to be able to address actual memory locations and do various operations with them.

I know from Rust, that they’ve got specific functions in the stdlib for that, see for example: doc.rust-lang.org/stable/std/ptr/index.html#funct…
Presumably, PHP does not have such functions, because its users aren’t normally concerned with that.

TrickDacy ,

Right – I’m not saying you could build a compiler then just go to town. You would still have to build all the tools, using PHP, to interact with hardware, the way other languages do. A horrible idea, lol, but interesting, sort of. Since at its core as long as you can execute logic and read/write to memory, you could do it, I think

Ephera ,

But that is what I mean with it needing an extension of the language.

So, I’m not saying you could just build a library that calls existing PHP functions to make it all work. Rather I’m saying there’s certain machine code instructions, which just cannot be expressed in PHP. And we need those machine code instructions for actually managing memory. So, I am talking about reading/writing to memory not being possible, unless we resort to horrible hacks.

Since we are building our own compiler anyways, we could add our own function-stubs and tell our compiler to translate them to those missing machine code instructions. But then that is a superset of PHP. It wouldn’t be possible in PHP itself.

Again, I’m not entirely sure about the above, but my web search skills couldn’t uncover any way to actually just read from a memory address in PHP.

TrickDacy ,

I mean, I think we’re saying the same thing, you just have better vocabulary than I :)

felixwhynot ,
@felixwhynot@lemmy.world avatar

I did use a crypto mining OS that was Linux but with lots of scripts that were written in… PHP! I never thought I’d see it.

humbletightband , in Explaining software development methods by flying to Mars

Like yes, but undone armpits generate more wealth than the rocket to Mars

shankrabbit ,

Heh… Armpits. I know what you meant, but you still gave me a giggle with that one.

humbletightband ,

Sorry, was writing it from the toilet. Needed to hurry in order to not miss a PBR

eskuero , in Coomitter be like
@eskuero@lemmy.fromshado.ws avatar

My ass who was sending patches to cyanogenmod gerrit ten years ago would never.

device: msm8916-common: BoardConfig: Build libril from source

cupcakezealot , in Linus Torvalds to Rewrite the Linux Kernel in PHP
@cupcakezealot@lemmy.blahaj.zone avatar

basic or nothing

Auzy , in "Working with Gen AI" by Dandytoon

My workmate literally used copilot to fix a mistake in our websocket implementation today.

It made one line of change… turned it it made the problem worse

MagicShel ,

AI coding in a nutshell. It makes the easy stuff easier and the hard stuff harder by leading you down thirty incorrect paths before you toss it and figure it out yourself.

Spacehooks , in Explaining software development methods by flying to Mars

Firecracker looks proud. Really brightens my night.

BurningTurtle , in Linus Torvalds to Rewrite the Linux Kernel in PHP
@BurningTurtle@programming.dev avatar

If we are rewriting it, we should use holyc to make it the way god intended.

raman_klogius ,

Ring 0 all the way baybee!!

Carighan , in Explaining software development methods by flying to Mars
@Carighan@lemmy.world avatar

This is depressingly accurate. 😓

magic_lobster_party , in Explaining software development methods by flying to Mars

I think this is a bit disingenuous. There’s no customer interaction in these panels.

So waterfall would be:

Customer says they want to go to Mars.

You spend years building a rocket capable of going to Mars, draining all the company budget in the process.

Customer then clarifies they actually meant they wanted to go to Mars, Pennsylvania, USA - not the planet!

Carighan ,
@Carighan@lemmy.world avatar

Also the strip stops midway through as Waterfall was an invented thing just for a paper. And during your UP work you actually had the customer put in that input and hence it was like in this cartoon strip.

onlinepersona , in "Working with Gen AI" by Dandytoon

Code is the most in depth spec one can provide. Maybe someday we’ll be able to iterate just by verbally communicating and saying “no like this”, but it doesn’t seem like we’re quite there yet. But also, will that be productive?

Anti Commercial-AI license

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