programming.dev

cynber, (edited ) to programmer_humor in Me and my new GitHub repository
@cynber@lemmy.ca avatar

I was chatting with a friend, and she mentioned how she tries to at least set up a README, which includes her vision for the project and her plan for the implementation, design, and goals.

Best case scenario is that the planning helps her complete the project herself. Worst case scenario, someone else can pick up where she left off and use her considerations for the project.

I’m thinking of doing that for future projects too

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

ReadMe is always underestimated while project is building, but it can become a cornerstone if it’s setup from very beginning. Your friend is smart 👍

d_k_bo,

A Free Software License is even more important. There are many great projects out there which you can’t modify etc. because the project isn’t distributed with a license (which means “all rights reserved” in most jurisdictions).

markstos, to memes in Fedposting

Driver going 80 mph in 20 mph zone, strikes, kills man on bike:

tampabay.com/…/tampa-surgeon-in-tesla-struck-bicy…

ErwinLottemann, (edited )

healthcare 1 : capitalism 0 or something

Nobody, to piracy in aaron swartz day

RIP. Aaron was too good for this world. I hope he’s found peace in the next.

innermeerkat, to piracy in aaron swartz day
@innermeerkat@lemmy.world avatar

Bless this poor soul. Thanks for his work and sacrifice 💔

kromem, to programmer_humor in The Perfect Solution

Inefficient solution.

You should simplify it to just ask the model if the last bit of the binary representation of the integer is a 1 or a 0.

Natanael,

They don’t process inputs as binary (they use clusters of symbols, i.e. letter groups) so that’s not guaranteed to work

kromem,

r/woosh

Natanael,

I did realize that too was a joke, still wanted to point that out

kromem,

Well, in the sake of pointing things out, GPT-4 can actually correctly answer the prompt, because it arrives at it in the opposite direction. It can tell the integer is even or odd and knows that even or odd integers in binary end in 0 or 1 respectively.

AeonFelis,

You can ask it if the last digit is odd or even, then.

savvywolf, to programmer_humor in Twitter/GitHubProjects has no chill 😅
@savvywolf@pawb.social avatar

Anyone else getting that corporate “forced meme” vibe from this?

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

I didn’t, but now I do 🙌

aes, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?

Psst,

git add -p

dukk, (edited )

Better yet, git commit -p

sip,

uuuuuuuu. and you could do -m to describe the commit.

next they’ll add --push/-P.

perhaps add -r for fetch/rebase then commit.

one command to rule them all! 😈

Johanno,

What does this?

foxymulder,
@foxymulder@lemmy.ml avatar

“patch mode” - Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history.

AnarchistArtificer,

Yay, learning!

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Highly recommend throwing –patch on any git commands you’re used to using. You will have the prettiest, most atomic fkn commit, I’m serious people will love you for it.

I mean many people won’t care, but the quality folk will notice and approve.

Johanno,

We make a singular commit per feature.

KairuByte,
@KairuByte@lemmy.dbzer0.com avatar

I always find this hard to follow personally.

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Trunk based, eh? Yeah, we do that on a couple teams where I’m at, too. I like the philosophy, but force pushing the same commit over and over as you’re incorporating review feedback is antisocial, especially when you’ve got devs trying to test your changes out on their machines.

Omgpwnies,

eh, just squash and merge. Feature branch can be messy as long as main is clean

Johanno,

Yep. You have to make sure your feature branch works.

oce, (edited )
@oce@jlai.lu avatar

Or just use a good IDE that makes doing atomic commits pretty natural.

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

I’ve only tried the VS code hunk stager thing, and found it cumbersome compared to command line, but if you can make a GUI work for you ya go for it. I’ve never found it worth the trouble personally

dukk,

Shout out to Lazygit for letting me stage individual lines

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Looks pretty neat. I like that it shows the commands it’s issuing!

oce,
@oce@jlai.lu avatar

You should try the JetBrains IDEs, as the other said, you can pick changes line by line graphically, when you commit, when you do a diff with another branch or when you fix conflicts. It’s much more convenient than commands and terminal text editors.

OurTragicUniverse, to memes in Shout-out-to-mods-posting
@OurTragicUniverse@kbin.social avatar

Bingo!

(Anyone know how long till it kicks in?)

lugal,

That’s the neat part: It doesn’t

BarrelAgedBoredom,

Have you tried buying the newest product?

Fades, to programmer_humor in Works on my machine

Every time I hear this from one of my devs under me I get a little more angry. Such a meaningless statement, what are you gonna do, hand your pc to the fucking customer?

1984,
@1984@lemmy.today avatar

“my devs under me”

Lols.

platypode, (edited )
@platypode@sh.itjust.works avatar

doesn’t understand that this is a useful first step in debugging

reacts with anger when devs don’t magically have an instant fix to a vague bug

Yep, that’s a manager

Belzebubulubu,
@Belzebubulubu@mujico.org avatar

You are seeing the next CEO of that company

Baizey,

…yes? I thought we made that clear with containerization

FaceDeer,
@FaceDeer@kbin.social avatar

It's not actually meaningless. It means "I did test this and it did work under certain conditions." So maybe if you can determine what conditions are different on the customer's machine that'll give you a clue as to what happened.

The most obscure bug that I ever created ended up being something that would work just fine on any machine that had at any point had Visual Studio 2013 installed on it, even if it had since had it uninstalled (it left behind the library that my code change had introduced a hidden dependency on). It would only fail on a machine that had never had Visual Studio 2013 installed. This was quite a few years back so the computers we had throughout the company mostly had had 2013 installed at some point, only brand new ones that hadn't been used for much would crash when it happened to touch my code. That was a fun one to figure out and the list of "works on this machine" vs. "doesn't work on that machine" was useful.

derpgon, to programmer_humor in GitHub Desktop or Git CLI?

JetBrains IDEs, I don’t remember the last time I used the CLI.

CodingCarpenter,

I was looking for this comment. PHP storm and git are like best friends. I very very rarely need to resort to the CLI and generally that’s for hard resetting after I screw something up

expr,

Good luck doing anything remotely complicated/useful in git with an IDE. You get a small fraction of what git can do with a tool that allows absolutely 0 scripting and automation.

muddi, (edited )

There are automations. You can even add git hooks iirc. Mostly I find the lint and other code quality integrations nice to have in the IDE, since the inline results allow me to navigate directly to the code

Diffing is a lot easier too

derpgon,

It sounds like you don’t speak from experience. I have all the automation I need. It supports git hooks on top of IDE-only features like code checking.

If I have to fire up my CLI for some mass history rewriting (like changing an author for every commit), or when the repo breaks - so be it. But by not using the CLI I save my fingers and sanity, because committing a bunch of files is several click away with little to no room for error.

I can rebase, patch, drop, rename, merge, revert, cherry pick, and solve conflicts with a click of a button rather than remembering all the commands and whatnot.

GBU_28,

I use the cli, but my main goal is to never have to do anything remotely complicated with git. Does it happen sometimes? Of course.

eluvatar,

This is the way

caseyweederman,

you have forgotten the face of your father

QuazarOmega,

Linus Torvalds?

backhdlp, (edited ) to programmer_humor in GitHub Desktop or Git CLI?
@backhdlp@lemmy.blahaj.zone avatar

I don’t understand git anyway

fckreddit,

Well, you learn four commands and hope for the best.

Valmond,

fetch, reset --hard, checkout -b and cherry-pick?

:-D

muix, (edited )

More like clone, pull, commit, and push --force

>:-D

Valmond,

push origin head

^^

xmunk,

Nah, rebase -i, squash, fsck and reflog

Valmond,

reflog saved my life once after a stupid misshap.

All rebase are belong to us (onto, rebase, and ofc interactive) but what’s fsck (I don’t squash personally)?

xmunk,

Fsck is File System Check - realistically you should never need to use it.

rikudou, (edited )
@rikudou@lemmings.world avatar

Must be an interesting work if you never add, commit or push.

Edit: How the hell did you get the repo without clone?

xmunk,

Pshaw, real programmers write out the contents of .git by hand.

(Also, it was a joke, the last two commands I listed are ones you’ll ideally never need in your life)

overcast5348,

I was scared of reflog too. Had to use it for the first time recently after I accidentally’d a branch that I hadn’t pushed to remote yet. I was so glad that I could recover it all in <5 commands.

traches,

https://imgs.xkcd.com/comics/git_2x.png

Title text: If that doesn’t fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of ‘It’s really pretty simple, just think of branches as…’ and eventually you’ll learn the commands that will fix everything.

popcar2,
  • git pull
  • git add *
  • git commit -m “Some stuff”
  • git push

And occasionally when you mess up

  • git reflog
  • git reset HEAD@{n} (where n is where you wanna roll back to)

And occasionally if you mess up so hard you give up

  • git reset --hard origin/main

And there you go. You are now a master at using git. Try not to mess up.

jettrscga, to programmer_humor in Programposting

“No style” hits hard. Hadn’t they done enough damage already?

Bhaelfur, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time
@Bhaelfur@lemmy.world avatar

My cats did the same thing when they found a mouse. They would stand guard where they first saw it for over a month afterwards.

Son_of_dad,

My wife’s Yorkie once chased a mouse into a kitchen cupboard. After moving apartments and a decade later, if you asked him “where’s the mouse?” He’d run to the kitchen and stare at the cupboards

RootBeerGuy, (edited ) to memes in Reddit be like
@RootBeerGuy@discuss.tchncs.de avatar

Did I miss something? Or just a joke about the future of reddit because obviously they will go for it at some point.

uzzi,

When I go to a subreddit a popup appears over similar to those news sites asking me to either login or open in app. So it’s kinda the present

Someology,
@Someology@lemmy.world avatar

I also get a button along with those to continue in my browser (on mobile). I just tap to continue on Firefox, and it works (at least on any subs that are not NSFW).

Silejonu,
@Silejonu@kbin.social avatar

That's for NSFW communities. Since the protests, quite a lot of communities are still marked as NSFW, even if they're not, in reality.

xTechDeath,
@xTechDeath@lemmy.ml avatar

If you’re on mobile it will happen when you just search a question on google, no matter the subreddit

M137,

Firstly, why are you using Google? Secondly, you must be doing something else wrong because I have never seen that outside of NSFW stuff. The only time I go to reddit is on mobile via the browser when I’m searching for something, and I’m not logged into an account.

flipthetube,

That’s great that it doesn’t happen for you. For me, any time I end up on Reddit in a browser on iPhone, it gives the obnoxious “open in app or continue in browser” popup.

I use private mode in safari though, maybe it’s not saving a cookie or something.

AnonStoleMyPants,

That does not mean you need to log in. If you press continue it’ll go to the website.

flipthetube,

I know that. I’m talking about the shitty popup.

SnowdenHeroOfOurTime,

Firstly, why are you using Google?

Are you under the impression you’re talking to your 8 yr old?

FarFarAway,

So what your saying is that one of the very tools that people used to protest, is now being used to perpetuate the very thing they were protesting?

Why am I not surprised.

jawa21, (edited )

Reddit has always required login to view NSFW. ETA: Whelp, I was wrong.

mihnt,
@mihnt@lemmy.world avatar

deleted_by_author

  • Loading...
  • Konlanx,

    When using current reddit UI, you need to log in to “verify you are over 18”.

    When using old.reddit.com you can proceed with a simple click on “Confirm over 18”.

    mihnt, (edited )
    @mihnt@lemmy.world avatar

    deleted_by_author

  • Loading...
  • belathus,

    I understand that the problem is being on mobile (and not on old.reddit). Everything might work fine on desktop.

    mihnt, (edited )
    @mihnt@lemmy.world avatar

    deleted_by_author

  • Loading...
  • belathus,

    I use Firefox and have uBlock installed. I still get an error when I click on NSFW posts. Old.reddit still works, though.

    idunnololz, to comicstrips in Tie on the doorknob
    @idunnololz@lemmy.world avatar

    Aw yeah. He’s giving some head.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20975616 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38