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.

saltesc , in Easy peasy

Been out of the game a long time. Is Wordpress still used heavily or are people shifting to other platforms? For all the easy power it had, it always required convincing to do what it wasn’t originally intended to do. Dunno if that’s still the case but seems it.

sfcl33t ,

I had the same impression until recently. It’s now evolved into a high end, professional content management system and a ton of very high traffic sites use it. Wired runs on WordPress. Here are some other sites

funkajunk ,
@funkajunk@lemm.ee avatar

Oh yeah, it’s used extensively. It’s far and away the most popular CMS.

CubitOom , in Markdown everywhere

Emacs gang here, coughing in org-mode.

tills13 , in Some people just wake up and choose violence

I’d reject anything from Theo too tbh

sip ,

shots fired

foobaz ,

more like t -3

whitecapstromgard , in Every Single Freaking Time

I see myself in this meme and I do not like it.

surge_1 , in Which side are you? Javascript or Typescript

Just use Kotlin to write your JS/TS

harry315 ,

the fuck? TIL

Cocoa6790 ,
@Cocoa6790@kbin.social avatar

Best place to learn it?

surge_1 ,

Kotlin Koans is a good hands on intro, especially if you’re already familiar with Java.

surge_1 ,
Solemarc ,

You can also do this with dart. I swear there was another “new” language which could also be compiled to JS as well.

thebosz ,

There are a lot of programming languages that compile down to JavaScript. I used to be big into Dart, but lost interest when they became solely focused on Flutter.

I personally like using Haxe as it compiles to actual readable JavaScript (and, for fun, a bunch of other languages).

qaz ,

Scala can also compile to JS.

Obi , in Zero to Hero in 1 hour
@Obi@sopuli.xyz avatar

I’m usually one to think folks exaggerate the dangerousness of strange staircases in posts like these, but yeah these are definitely gonna cause a few accidents.

somegeek , in The lengths we have to go to

Python syntax is the absolute worst

lemmyingly ,

Why do you believe that?

notabot ,

Not the previous commenter, but using indentation as syntax rather than an aid to understanding tge program structure is just painful when you come from any more conventionally structured language. The meme above may be an exaggeration, but it’s not much of one. An IDE can probably help, but needing one just to be able to more easily read the code is excessive.

That said, it’s a popular language and there are plenty of useful libraries, so sometimes the trade off is worth it.

kevincox ,
@kevincox@lemmy.ml avatar

To each their own. If I’m going to bother intending all of my code may as well benefit from it. I don’t actually use Python that much and don’t love it but I am a fan of significant indentation. But most honestly it isn’t a big deal either way. While I would be happier if my preferred language had significant indentation it is very unlikely to be something that convinces me to use a language or not.

magic_lobster_party ,

I’ve programmed Python mostly without IDE without any problem. It’s no more difficult to understand the structure of the program than a bracketed language.

notabot ,

Don’t get me wrong, I know it’s quite possible, I find it just grates when you’re used to braces and semi-colons. They’re sort of a standard across many languages, and is an extra mental gearshift to python syntax.

Marcbmann ,

Coming from C++ and Java over to Python was challenging. The IDE I used at the time also did not like when I used tabs instead of spaces, which drove me up a wall.

I will say that for beginners where python is their first language, it does a good job at reinforcing good practices for writing legible code.

mexicancartel ,

I even coded my first few python programs in nano text editor without any annoying indentation issues. I use TABs btw. Problems usually happen when people mix tabs with spaces

notabot ,

Ah, now we stray into ‘holy war’ teritory. I’d agree with you should use tabs, but the language style guide says 4 spaces per level. As you saym don’t try to mix them.

garden_boi ,

Most projects nowadays use auto formatting tools for convenience. Any python auto formatting tool will automatically convert tabs to spaces. Tabs are a no no in python, as their rendering might depend on the settings of the IDE. Spaces are nice and constant.

mateomaui , in Hallelujah

What year is this from? You absolutely can use ls in a windows command prompt now.

captsneeze ,

As of Aug 26, 2023, Windows command prompt absolutely does not recognize “ls” as a command.

Powershell is a different story.

Source: I type “ls” 40 times a day into a command prompt on my up-to-date win10 PC at work.

brb ,

I can’t remember doing anything and “ls” works for me

TurnItOff_OnAgain ,

Probably using Powershell, or you added it. Ls definitely doesn’t work in windows 10 or 11 in cmd.

mateomaui ,
TurnItOff_OnAgain ,

Bone stock windows 11. Like I have everyone else has said, you have done something to add it to cmd. It isn’t, and has never been in cmd.

https://lemmy.world/pictrs/image/d50ea507-ed19-4421-bfaa-58317d1cf8c9.png

EDIT:

Try this. in CMD type in

where LS

brb ,

<span style="color:#323232;">E:>where ls
</span><span style="color:#323232;">f:Gitusrbinls.exe
</span>

Mystery solved

mateomaui ,

Ok, getting past the dickish, completely unhelpful first part of your reply (as you can see in the comments, not EVERYONE was saying that), the second part helped me trace it back to this:

github.com/devkitPro/installer/releases

which is a toolset that I never intentionally installed, and was evidently added by an emulator package without me knowing where it was or what it did.

So thank you for (eventually) helping me find what it was, and now you and others know how to add it to cmd and don’t have to complain about its absence.

brb ,

No it works in cmd. I didn’t add it intentionally atleast. Never even tried to use it till now.

TurnItOff_OnAgain ,

Bone stock windows 11. It isn’t, and has never been in cmd.

https://lemmy.world/pictrs/image/d50ea507-ed19-4421-bfaa-58317d1cf8c9.png

newIdentity ,

It works on Powershell but not with CMD.

That’s a problem when using NeoVim on windows

CaptPretentious ,

The year is 2023, if you’re still using CMD or batch files still that’s on you. It’s like riding a horse down a freeway and yelling at cars.

TurnItOff_OnAgain ,

Sometimes you just need a quick ipconfig or nslookup, or a simple scheduled shutdown /s /f /t 00

Thade780 ,

You can still do those in PowerShell. Just saying.

TurnItOff_OnAgain ,

Yeah, but it’s muscle memory at this point

Win+r

Cmd

Ipconfig

Gonna take some time to get my hands to type wt instead of cmd

SatyrSack ,

<span style="color:#323232;">Win+X
</span><span style="color:#323232;">i
</span><span style="color:#323232;">ipconfig
</span>
captsneeze ,

That is a fair statement, but also a different topic.

I am thankful to live in an age with WSL.

oldGregg ,

deleted_by_author

  • Loading...
  • CaptPretentious ,

    That wasn’t the conversation.

    ‘Cmd’ is to ‘horse and buggy’ as ‘powershell’ is to ‘automotive vehicle’

    Have no idea where you decided to pull this 100mph idea from. It wasn’t a comment about speed, it was a comment about utilizing modern practices and tools. And that the joke falls apart because it’s forcing the narrative all windows has is cmd and blatantly ignoring pwsh. It be me like making a joke how linux can’t do wifi… because there was a time Windows did wifi just fine but linux required using a special process using an ndiswrapper with windows drivers to get linux on wifi… so like 16-17 years ago. See, hilarious.

    mateomaui ,

    ok boomer?

    CaptPretentious ,

    What? Ignoring the out of date, over used, ‘gottem’, phrase… it literally doesn’t make sense given the context. I’m advocating for modern tools… how is that a ‘boomer’ move?

    mateomaui ,

    I ended it with a question mark because I was uncertain but otherwise your asinine, dismissive statement sounds like something a jackass who’s been around too long would say because he’s entirely too full of himself. I’m willing to recognize that it’s actually ignorance formed out of youth. Don’t think about it too hard.

    mateomaui , (edited )

    I literally just typed it into cmd.exe on Windows 10, fully updated, and it absolutely did work. No idea why it doesn’t work for you.

    edit: ???

    https://reddthat.com/pictrs/image/fbff7af6-2d11-419d-9975-cf3c9663cd4f.png

    edit: it’s been traced back to this:

    github.com/devkitPro/installer/releases

    which is an emulator toolset that I didn’t know existed on my system until today.

    captsneeze , (edited )

    That is interesting. I just remoted into 5 different machines at the office and none of them worked with ‘ls’. If you enter ‘ls /?’, does it give you a synopsis and argument list?

    mateomaui ,

    If I do “ls /?” it returns no such file or directory, but just “ls” performs exactly as you’d expect. I haven’t installed anything to provide that function that I know of. It never occurred to me that I would have to because as far as I know it’s always worked. Until today I just assumed it had become a standard command and never investigated. Was just happy I could use the same command in cmd and on my Pi box.

    mateomaui ,

    Mystery solved, ls works for me due to this:

    github.com/devkitPro/installer/releases

    which is a toolset that was installed by an emulator package somewhere along the line, I just didn’t know it was there.

    captsneeze ,

    Thanks for letting us know!

    mexicancartel ,

    Lmao

    icesentry ,

    Out of curiosity what do you do to frequently end up with cmd? I don’t think I’ve touched it in many years at this point.

    captsneeze ,

    It’s my own fault, and the result of 30+ years of muscle memory building up. Plus, while I agree cmd isn’t nearly as powerful as powershell or wsl can be, when I’m in Windows it’s still the fastest way for me to do 90% of the simple things I need to do. I have a long history with it, and a thorough understanding of it, so I don’t really need to think for most of the things I’m doing there.

    If I need to script something, or do anything that seems like it would be annoying to do in CMD, I hop into WSL pretty quickly and get to work with bash or python. The problem I have now is that I’ve developed a little muscle memory there as well… hence my issue with entering ‘ls’ everywhere.

    mateomaui ,

    Lately I’ve been using it as a simple way to drag and drop a source .tar.xz archive on a .bat file so it can be twice extracted, moved, renamed, have dependencies downloaded by git, run a cmake process, do a visual studio compile, then move the result release directory back to where the .bat file is while removing unneeded files and adding new ones.

    cmd and batch still has its uses.

    ShortFuse , (edited )

    Yes in Windows Server since, IIRC, 2012". No in Windows client versions.

    I’m so used to Server commands I sometimes am surprised when commands like logoff don’t work.

    nfsu2 , in Its not wrong though
    @nfsu2@feddit.cl avatar

    I feel old watching this meme template

    over_clox , in Its not wrong though

    If you wanna skip a few inconvenient instructions in X86 assembly, throw a few No Operation instructions in the right places.

    NOP = 0x90

    SzethFriendOfNimi ,

    And so you add a hashing check. But then that can be removed.

    So you need one in the OS but that can be removed.

    So you need one in hardware.

    In other words no matter how clever you are there’s always a way to monkey with something unless you have absolute control from silicon on up.

    Here’s a really interesting video the Xbox team did on the challenges of trying to make sure that the content running wasn’t pirated.

    youtu.be/U7VwtOrwceo

    While DRM is the bane of everybody there are cases where trust and integrity is important and it’s an intriguing look into how hard it is to manage.

    PipedLinkBot ,

    Here is an alternative Piped link(s): piped.video/U7VwtOrwceo

    Piped is a privacy-respecting open-source alternative frontend to YouTube.

    I’m open-source, check me out at GitHub.

    over_clox ,

    Meanwhile, I’ve been archiving terabytes of software with no DRM, with no account.

    mvirts ,

    It’s called _soft_ware for a reason 😹

    grue ,

    While DRM is the bane of everybody there are cases where trust and integrity is important and it’s an intriguing look into how hard it is to manage.

    Nah, when the user wants to ensure trust and integrity in his own system, it works just fine. The problem comes when the user who needs to be able to access the data is simultaneously the adversary who needs to be stopped from accessing the data.

    In other words, it’s one of those situations where the fact that it’s hard to manage is a gigantic clue that it’s wrongheaded to try to do so in the first place.

    SzethFriendOfNimi ,

    I agree. I mean when doing secure channel communications or weapons systems or health biometrics.

    There are cases where you need to be sure of the integrity of the data and environment

    ChickenLadyLovesLife , in Hours of work

    My favorite thing was having to rewrite an enormous amount of code to support a new feature because the original architect originally wrote an enormous amount of code in anticipation of supporting a new feature like it.

    FlaminGoku , in Annoying as hell

    I had a comic along the same lines at my door and I aggressively applied the 2 min rule. If I can answer your question in 2 min, I will, otherwise I will ask them to set up time on my calendar.

    Made for some initial friction, but eventually everyone got it.

    Remote has been so great because I just block off my calendar accordingly and turn off notifications.

    ______ , in “Hire me”

    I learned about how much I didn’t understand react on my 2nd dev job. I had like 2yoe with react previously. There’s a lot about it. Mostly tricks. hacks and work arounds for it’s abysmal performance.

    tsonfeir OP ,
    @tsonfeir@lemm.ee avatar

    What were you doing that was getting poor performance?

    ______ ,

    There many ways of doing things in react and some are faster than others. I would abuse state and use effect at my old job but at this job my sr dev doesn’t allow me to use useffect unless the situation warrants it.

    tsonfeir OP ,
    @tsonfeir@lemm.ee avatar

    Ahh yes, abusing state can be temping. Just a little tweak here, it’s ok… no one is looking… oh crap!

    TitanLaGrange ,

    I’m relatively new to React (about 8 months in with React Native). Can you give me some examples of abusing state?

    Potatos_are_not_friends ,

    I’m not at all a React fan, and prefer vanilla or Vue.

    But what is happening where you’re hitting abysmal performance?

    Are you blaming the implementation or the tools because while I can achieve faster performance with vanilla… In no way is abysmal a word I’d used.

    ______ ,

    Just exaggerating. React can be slow. Look up form performance in react with multiple inputs.

    Teddly ,

    Praise be to react-hook-form for saving us all 🙏

    CanadaPlus , (edited ) in Recursion

    Napkin math, from the last time I saw this:

    I’ve been thinking about this. I estimate a few people per 1000 would do an atrocity for no reason if they were guaranteed no consequences, and the deaths if the switch is pulled are 2^(n-1) for the nth switch. The expected deaths will cross 1 somewhere in the high single-digits, then (since it’s outcome*chance), so the death minimising strategy is actually to pull yours if the chain is at least that long.

    Edit: This assumes the length of the chain is variable but finite, and the trolley stops afterwards. If it’s infinite obviously you pull the switch.

    tomi000 ,

    Could you elaborate what you are analysing here? If I dont misinterpret the model, the option where you dont double the victims minimizes deaths every time.

    CanadaPlus , (edited )

    Ah, but then you’re giving the opportunity to the next guy to kill even more, if he wants. Most people obviously won’t want to do that, but a rare few will, and the body count gets so big so fast that it only takes a few switches before that’s a bad risk.

    I was expecting a bigger number of switches, but I guess that’s just another example of humans being bad at tracking the consequences of large quantities.

    themeatbridge ,

    But if you assume that such a person exists, then it is inevitable that someone will pull the switch. The very best case is that such a person is immediately after you. Therefore, the only minimizing choice is to kill however many people you have.

    CanadaPlus ,

    Oh, I see. Yes, the context here was that we assume all possible chain lengths. If it’s infinite the death-minimising strategy is obviously to pull it, and if your switch is the only one you obviously don’t. The question was where it changes from one to the other.

    I’ll edit a clarification in.

    themeatbridge ,

    Makes me wonder what happens when the number of people tied to the tracks exceeds rhe number of people currently alive. Should be around the 33rd lever.

    archiotterpup ,

    I think you’re on the right track.

    mexicancartel , in Would you agree?

    Linux kernel

    Nah bro, chrome OS is fucking ridiculous not to mention android too.

    We need the other linux not just kernel.

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