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.

Aatube , in Every language has its niche
@Aatube@kbin.social avatar

Homebrew

tsonfeir ,
@tsonfeir@lemm.ee avatar

… is a package manager…

paraphrand ,

… just run this bash script straight from the internet, it’ll be fine …

emptiestplace ,

ok that sounds like what i need

emptiestplace ,

hey can u tell me how

Aatube ,
@Aatube@kbin.social avatar

People make formulas (packages) and extensions in Ruby for it.

onion , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS
WarmSoda , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

No cap is cracking me up. This is great stuff

AceFuzzLord , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

That’s cool but also makes me cringe.

superduperenigma , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

Looks like you’ve got a bug in there.


<span style="color:#323232;">if false no cap
</span><span style="color:#323232;">    canYouSeeMe = false
</span><span style="color:#323232;">if cap
</span><span style="color:#323232;">    canYouSeeMe = true
</span><span style="color:#323232;">sheesh
</span>

Won’t this always go into the else/cap condition since the if condition is checking to see that false == true?

prof OP ,
@prof@infosec.pub avatar

You’re correct, but it doesn’t really matter for demo purposes. In an actual use case (whatever that would be for this language) you would of course want to use some kind of variable or expression there instead of a constant.

RustyNova , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

Jetbrains MPS?

prof OP ,
@prof@infosec.pub avatar

It’s a tool for designing domain specific languages. Really interesting!

grubders , in FLOSS communities right now

discord is the best villain but also the worst platform ever

OsrsNeedsF2P , (edited ) in Tough break, kid...

Using an IDE isn’t programming either

But I’ll definitely prefer hiring someone who does. Sure, you can code in Vi without plugins, but why? Leave your elitism at home. We have deadlines and money to make.

Edit: The discussions I’ve had about AI here on Lemmy and Hackernews have seriously made me consider asking whether or not the candidate uses AI tools as an interview question, with the only correct answer a variation of “Yes I do”.

Boomer seniors scared of new tools is why Oracle is still around. I don’t want any of those on my team.

squirmy_wormy ,

Lol that’s like not hiring someone because they take notes with a pen instead of a pencil.

OsrsNeedsF2P , (edited )

Thinking AI is an upgrade from pencil to pen gives the impression that you spent zero effort incorporating it in your workflow, but still thinking you saw the whole payoff. Feels like watching my Dad using Eclipse for 20 years but never learning anything more complicated than having multiple tabs.

For anyone who wants to augment their coding ability, I recommend reading how GPT (and other LLMs) work: …stephenwolfram.com/…/what-is-chatgpt-doing-and-w…

With that in mind, work on your prompting skills and give it a shot. Here are some things I’ve had immense success using GPT for:

  • Refactoring code
  • Turning code “pure” so it can be unit-testable
  • Transpiling code between languages
  • Slapping together frontends and backends in frameworks I’m only somewhat familiar with in days instead of weeks

I know in advance someone will tunnel vision on that last point and say “this is why AI bad”, so I will kindly remind you the alternative is doing the same thing by hand… In weeks instead of days. No, you don’t learn significantly more doing it by hand (in fact when accounting for speed, I would argue you learn less).

In general, the biggest tip I have for using LLM models is 1. They’re only as smart as you are. Get them to do simple tasks that are time consuming but you can easily verify; 2. They forget and hallucinate a lot. Do not give them more than 100 lines of code per chat session if you require high reliability.

Things I’ve had immense success using Copilot for (although I cancelled my Copilot subscription last year, I’m going to switch to this when it comes out: github.com/carlrobertoh/CodeGPT/pull/333)

  • Adding tonnes of unit tests
  • Making helper functions instantly
  • Basically anything autocomplete does, but on steroids

One thing I’m not getting into on this comment is licensing/morals, because it’s not relevant to the OP. If you have any questions/debate for this info though, I’ll read and reply in the morning.

v_krishna ,
@v_krishna@lemmy.ml avatar

I don’t get the downvotes. I’ve hired probably 30+ engineers over the last 5 or so years, and have been writing code professionally for over 20, and I fully agree with your sentiment.

OsrsNeedsF2P ,

I edited the comment to provide actual info, it was originally just the first paragraph

KeenFlame ,

It’s just the general ai hate. It’s not surprising, because machine learning is yet another scam area. But for programming you would be a complete fool to ignore copilot mastery since paper after paper proves it has completely revolutionised productivity. And it’s not normal to think you will be better than everyone when not using an assistant, it’s just the new paradigm. For starters it has made stack overflow be almost obsolete and it was the next most important tool…

squirmy_wormy ,

Your original post referred to wanting to hire people based on the tools they use to do a task, not their ability to do the task - in fact, you talked down to people for using certain tools by calling them elitist. That’s why my pen/pencil comparison is accurate.

Personally, I think caring about that is silly.

dukk ,

AI’s not bad, it just doesn’t save me time. For quick, simple things, I can do it myself faster than the AI. For more big, complex tasks, I find myself rigorously checking the AI’s code to make sure no new bugs or vulnerabilities are introduced. Instead of reviewing that code, I’d rather just write it myself and have the confidence that there are no glaring issues. Beyond more intelligent autocomplete, I don’t really have much of a need for AI when I program.

scrubbles ,
@scrubbles@poptalk.scrubbles.tech avatar

This is how I use it, and it’s a great way for me to speed up. It’s a rubber duck for me. I have a fake conversation, it gives me different ideas or approaches to solve a problem. It does amazing with that

The code it spits out is something else though. The code it’s trained on in GitHub means it could be based on someone with 2 months experience writing their CS201 program, or a seasoned experienced engineer. I’ve found it faster to get the gist of what it’s saying, then rewrite it to fit my application.

Not even mentioning the about 50% chance response of “hey why don’t you use this miracle function that does exactly what you need” and then you realize that the miracle function doesn’t exist, and it just made it up.

KrankyKong ,

I use it a lot for writing documentation comments (my company’s style guide requires them), and for small sections at a time. Never a full solution.

frezik ,

Sure, you can code in Vi without plugins, but why? Leave your elitism at home. We have deadlines and money to make.

Nothing elitist about it. Vim is not a modular tool that I can swap out of my mental model. Before someone says it, I’ve tried VS Code’s vim plugin, and it sucks ass.

KeenFlame ,

Wdym? Vim is in every ide and notepad man

frezik ,

Certain shortcut keys in vim conflict with shortcut keys in the IDE. The flow doesn’t work the same.

KeenFlame ,

I don’t understand how you think you will convince anyone that you can’t use vim, when so many do that without problems

frezik ,

Please avoid double negatives. I’m not quite sure of the meaning of your sentence.

If you’re saying I have issues using vim if I can’t use it in an IDE, no, that’s not how it works. If you use simple vim (not much more than knowing how to get in and out of edit/visual mode, and use hjkl for navigation), then it’s fine. Once you get into more advanced vim features, though, the key presses in vim get picked up by the IDE first, so IDE shortcuts take precedence.

If someone were to learn vim inside an IDE and develops it organically as part of their flow, it’d be fine. If you already have a lot of standalone vim flow setup in your mind, it’s a problem.

HopFlop ,

Using an IDE definety IS programming.

Ascend910 , in FLOSS communities right now

Laughs in matrix and element

EmperorHenry , in Me after I got fired
@EmperorHenry@discuss.tchncs.de avatar

Is this some simple line of code that just shuffles everything around in file storage areas?

lhamil64 ,

This looks like a C macro. Basically what it does is replaces the word “true” in the code with (rand() > 10). The rand() function will return a random number from 0 to 32767. So (rand() > 10) will very likely return “true” but not always.

So say you have some code like this: if (someVar == true) { // Do stuff } It would replace “true” with code that usually evaluates to “true” but not always. So every so often your code would just do the wrong thing but it would be hard to debug because it would be rare.

Granted, in that example you probably would just write “if (someVar)” making this moot, but there are more realistic cases where you’d use the constant “true”

TwilightKiddy ,

rand() generates a number from 0 to a constant defined in stdlib, which usually corresponds to the architechture of your compiler. So, for 32 bit systems (assuming all the software in the line is 32 bit, too) it will be 2^31-1 = 2 147 483 647, as 1 bit in integers is reserved for negative numbers and 1 number is 0.

Though, by design it is guaranteed to be at least 32767, which is a value for 16 bit integers.

lhamil64 ,

Oh good to know. I googled it and got that 32767 number but it did say “guarantee to be at least 32767”

andioop , in What's stopping you from coding like this ?
  1. I can easily bend in half and reach past my toes, but this is another ask entirely.
  2. Even if I could do this, I don’t have eyes in my back or a computer screen in my knees.
alexdeathway , in What's stopping you from coding like this ?
@alexdeathway@programming.dev avatar

probably not having enough money to replace the laptop.

hemko , in What's stopping you from coding like this ?

I have bones

blindbunny , in Bartender Qualifications

This is why I deleted my indeed

Skullgrid ,
@Skullgrid@lemmy.world avatar

You guys are making profiles for job sites and not just applying to companies listing there?

blindbunny ,

I’m an uneducated pleb with a certain set of skills. But you are correct

tsonfeir ,
@tsonfeir@lemm.ee avatar

My current job came from tossing my profile up on indeed. My previous one from Dice, one before that from an agent who found me online.

I prefer they come to me.

pythonoob , in I don't believe Auto Save feature in any software

Dude I save almost every time I type anything. It’s muscle memory at this point.

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