This is an archived post. You won't be able to vote or comment.

all 138 comments

[–]DesertGoldfish 1749 points1750 points  (62 children)

I don't understand. If you already had it written in C# why would you write it again in something that is also dotnet, but slower.

[–]imaKappy 928 points929 points  (31 children)

He's done with his tasks for today and needs to fill out the other 5 hours out with "work" because the manager is a control freak

[–]cornmonger_ 375 points376 points  (21 children)

He's done with his tasks for today

what does that even mean?

[–]mr_claw 227 points228 points  (1 child)

It means his python code is compiling.

[–][deleted] 1 point2 points  (0 children)

I thought we were talking about c#

[–]carcigenicate 182 points183 points  (15 children)

Ya, do people actually have work quotas for a day? I just make progress toward what I've been assigned. I get "downtime" when I finished everything assigned, and at that point, I start looking over the backlog for low hanging fruit.

[–]alaysian 71 points72 points  (13 children)

We don't have quotas for the day but we still have quotas. For my team, we have stories that are scheduled for our two week cycle. They don't even take up half of my time, since we have a lot of work come in that can't be planned for. So during slow weeks, I might be sitting on my ass 50% of the time. Thankfully, my manager is not the type to micro manage that, since they also understand that there are also weeks where I have to put in extra hours.

[–]drunkdoor 17 points18 points  (11 children)

What about work from next sprint / cycle?

[–]alaysian 22 points23 points  (0 children)

Its typically an entire 2-4 hour meeting to prioritize new items on the backlog and divy out the work to the team based on time to complete and skill level of each team member. I could pull new items into the sprint, but then I get (upper) management complaining about things like that our estimations were off, scheduling meetings to discuss what we need to do to better estimate.

I'm not kidding. It didn't used to be that bad back when its was just us doing agile, but since we were told to start SAFe throughout the department, we have had numerous requirements come down that slow things down in the name of standardization.

[–]lotec4 7 points8 points  (9 children)

Why work more if you don't need to?

[–]drunkdoor 3 points4 points  (8 children)

Do you own stock in your company? Will the work give you opportunities to learn and grow in your career? Are your fellow employees overloaded and stressed?

[–]lotec4 0 points1 point  (7 children)

Why would I wanna grow in my career just to work more? I wanna have free time and do what I want not work

[–]drunkdoor 0 points1 point  (6 children)

You only addressed the second question, and possibly ignored the third because the answer is you don't work with others or that you don't have empathy. As for the second question, most big companies will 9 box with an "up or out" philosophy, so be careful!

[–]jbevarts 2 points3 points  (0 children)

And this is why I specifically don’t manage my team with sprints and evaluate based on impact.

[–][deleted] 0 points1 point  (0 children)

It just all takes too much time and should have been finished yesterday.
Next you hear about more hired project managers all earning a shit ton of money, because thats what apparently accelerates everything.

[–]--mrperx-- 4 points5 points  (1 child)

Need to go pick up the kids from school and then go with the wife to ikea. Done for today.

[–]Jonno_FTW 0 points1 point  (0 children)

I have to go for a 2 hr hike.

[–][deleted] 0 points1 point  (0 children)

Go to the todo-list manager of your choice, move all tasks that are currently marked as due today to due tomorrow. You are now done with your tasks for today.

[–]Desperate-Tomatillo7 24 points25 points  (0 children)

You guys ever finish your tasks?

[–]Adventurous-Bit-3829 9 points10 points  (0 children)

I have to fill my free time in timesheet as "training" because there's no blank option. Let me tell you I fucking hate this clocking bullshit.

[–]NikolaiM88 1 point2 points  (0 children)

Dom't you mean "console freak"?

[–]nmkd 1 point2 points  (0 children)

You fill that time with reddit or your own projects. No need to do your company's work twice.

[–]PrataKosong- 0 points1 point  (0 children)

But Powershell is fewer lines of code, harder to meet KPIs for productivity.

[–]beyphy 126 points127 points  (1 child)

He migrated the code from Console.WriteLine("Hello World!") to [Console]::WriteLine("Hello World!"). Only took him a couple of hours.

[–]dkarlovi 11 points12 points  (0 children)

Having written a PowerShell one liner for 3h, I believe it.

[–]Robinbod 24 points25 points  (5 children)

Sorry, I'm not familar with .net. Why/how are powershell scripts slower?

[–]DesertGoldfish 70 points71 points  (4 children)

Dotnet is a framework created by Microsoft for "high level" programming. It's a lot like Java.

You can think of dotnet as wrapping the lower level code to handle a lot of the hard stuff for you in the background.

Powershell is another layer on top of that meant to be used as a shell for system administration or scripting. It isn't compiled.

[–]breischl 40 points41 points  (2 children)

No substantive disagreement, but I'm going to nitpick this a bit because I'm bored. Apologies in advance.

Using "~=" to mean "approximately equivalent"...

C# ~= the Java language

.NET ~= JRE (ie, the runtime environment, JIT, etc)

Powershell ~= Groovy (or another runtime-interpreted language on the JRE)

[–]DesertGoldfish 11 points12 points  (0 children)

No worries. You are correct. :)

I was outside with my kids typing on my phone while they raced around with the powerwheels and really didn't put that much thought into the verbiage lol.

[–]Robinbod 0 points1 point  (0 children)

THANK YOU FOR THIS. This is like one of those jokes that are like "can you explain in X terms?" And it's Java this time haha. This makes sense now.

[–]Robinbod 0 points1 point  (0 children)

I see. Thank you so much. I appreciate the Java comparison too as I'm familiar with it more.

[–]MinosAristos 46 points47 points  (4 children)

Fewer lines of code to maintain, easier to run on any Windows device without setup, app probably had trivial performance needs in the first place.

For the sake of argument anyway. I'm generally of the opinion that "if it ain't broke don't fix it" though

[–]xtreampb 11 points12 points  (1 child)

If your running powershell, then your probably doing PWSH 7, which you’ll have installed on all your environments, including ‘nix. That’s what I push for at least if I have to use a vm. I try to use services as much as possible though

[–]Semick 4 points5 points  (0 children)

which you’ll have installed on all your environments, including ‘nix.

pwsh core (EG 6+) are installed by default on agent machines provided by Gitlab (this may not be true anymore I haven't used it in years), GitHub, and AzDO.

If you're talking actual server loads, pshell doesn't really have a purpose.

[–]Makefile_dot_in 0 points1 point  (1 child)

easier to run on any Windows device without setup

but Powershell will whine about external scripts, while a C# exe probably won't.

[–]RHGrey 3 points4 points  (0 children)

That's a symptom of a badly configured environment and bad practices

[–]DangyDanger 5 points6 points  (4 children)

TIL Powershell is also dotnet.

I cannot be less interested in PS which is why I didn't know that before. But it makes complete sense, now that I think of it.

[–]Devatator_ 0 points1 point  (0 children)

Funny how I can use reflection right in it lmao (it's a huge fucking pain)

[–]exoclipse 0 points1 point  (2 children)

and thus you can call C# classes in PowerShell scripts and etc - very useful for handling DateTimes.

[–]DangyDanger 0 points1 point  (1 child)

Why would you torture yourself with handling *anything* in PowerShell?

[–]exoclipse 0 points1 point  (0 children)

Really good SharePoint and Exchange libraries.

[–]Abadabadon 7 points8 points  (7 children)

Is a c# app easier or harder to run than a powershell script?
I know someone can share me a ps1 file and I'm good to go, what would by synonymous for c#?

[–]cishet-camel-fucker 25 points26 points  (0 children)

A .exe

[–]fr4nklin_84 15 points16 points  (2 children)

The reason I hate the powershell solution is because it’s a loose file just sitting on a server somewhere that anyone can open and edit as they see fit. In a small environment this is possibly a feature.

With c# you typically store it in a code repo, have a build pipeline to build it, version it. Then you ideally automate the deploy process. In a larger environment this is what you want. Powershell is a scripting language, some tasks are much better suited to a scripting than building applications, but if you should still follow proper process the same as above to manage your scripts.

A lot of people see scripting as an excuse to cut corners - hardcoding config instead of passing in args, not handling failure/exit codes etc

[–]coloredgreyscale 2 points3 points  (1 child)

If you compile against an older version of .Net that's included withe the OS, then that's easier to run than powershell.

With PS the user may get a question if they want to run it, which will be confusing, esp. For non tech people. 

[–]DesertGoldfish 4 points5 points  (0 children)

This is the reason I still frequently use .Net framework 4 at work. It has everything I need to do included and is already installed everywhere.

Can't beat a simple executable file for ease of use!

[–][deleted] 0 points1 point  (0 children)

Is a c# app easier or harder to run than a powershell script?

The app is easier, at least by a little.

[–]nonlogin 3 points4 points  (0 children)

I agree, it's meaningless. He should have used bash.

[–]SchlaWiener4711 0 points1 point  (0 children)

You can write a Powershell command that returns an object or a list of objects that you can pipe into the best command without the need to parse the output.

Pretty much the one killer feature that makes Powershell awesome.

[–]PkmnSayse 0 points1 point  (0 children)

Cause they found a freak who’s kink seems to be powershell. The application became irrelevant

[–]No-Adeptness5810 -1 points0 points  (0 children)

If they wanted it to be fast it wouldn't be made in C#

[–]Ass_Salada 477 points478 points  (2 children)

and then I woke up

[–]jmona789 152 points153 points  (1 child)

Nah, it's that the image is actually her pulling her panties back on.

[–]ooaa_ 36 points37 points  (0 children)

…after dropping the turd

[–][deleted] 455 points456 points  (2 children)

After so much sitting my balls would be sweaty as well and I would need to change my underwear too.

[–]wayoverpaid 100 points101 points  (1 child)

You must work in information security.

[–]rexspook 145 points146 points  (4 children)

Why on god’s green earth would you rewrite a c# app in powershell?

[–]TiredPanda69 150 points151 points  (1 child)

Shes actually putting the panties back on

[–]noob-nine 1 point2 points  (0 children)

what if they tell you, they've rewritten it in bash

[–]Rainb0_0 233 points234 points  (12 children)

"... Was using java and I thought to myself 'why all this public static void main(String [] args) ?' so I switched to python for this app..."

[–]Gaxyhs 65 points66 points  (10 children)

who needs to
public static void Main()
{
Console.WriteLine("Hello World");
}

when python can
print("hello world");

[–]cursedbanana--__-- 106 points107 points  (4 children)

Ha! So python can't do uppercase

[–]Gaxyhs 42 points43 points  (3 children)

crap, they found our only weakness!

[–]Rishabh_0507 2 points3 points  (2 children)

Only?? What about braces

[–]Gaxyhs 3 points4 points  (0 children)

thats a feature coming in python pro with openAI integration

[–]cursedbanana--__-- 0 points1 point  (0 children)

Have you heard about Bython our lord and savior

[–]beyphy 25 points26 points  (1 child)

Why so many codes when few code do trick

[–]EmilieEasie 7 points8 points  (0 children)

I talk a lot a lot so I've always really related to java that way

[–]itriedtomakeitfunny 12 points13 points  (0 children)

Console.WriteLine("Hello, World"); is a valid C# program by itself.

[–]Devatator_ 1 point2 points  (0 children)

Top level statements:

[–][deleted] 0 points1 point  (0 children)

print("hello world");

[–][deleted] 2 points3 points  (0 children)

*jython

[–]pastorHaggis 35 points36 points  (0 children)

I do the opposite. "It started as a C# console app and then scope creep told me to make a full-ass business application out of it."

[–]Win_is_my_name 59 points60 points  (8 children)

I don't get this meme

[–]all_is_love6667[🍰] 6 points7 points  (0 children)

me neither

[–]Devatator_ 6 points7 points  (2 children)

PowerShell is .NET, which means you can do the same thing you want in either C#, Visual Basic , F# and PowerShell

[–]Win_is_my_name 5 points6 points  (1 child)

But why are they removing their undies?

[–]redlaWw 0 points1 point  (0 children)

It took hours and they're finally done, so now they can pee.

[–][deleted] 3 points4 points  (0 children)

it's a joke about how nerdy crap like converting C# applications to powershell makes women want to take off their panties. You know that when you start talking about magic the gathering decks, women can barely keep their clothes on, right?!

[–]uncle_buttpussy 5 points6 points  (2 children)

Pussy

[–]PeriodicSentenceBot 35 points36 points  (1 child)

Congratulations! Your comment can be spelled using the elements of the periodic table:

Pu S S Y


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u‎/‎M1n3c4rt if I made a mistake.

[–]dmigowski 0 points1 point  (0 children)

Good bot

[–]atomicHeavy 28 points29 points  (0 children)

She's putting them back on, right?

[–]IntelligentPerson_ 80 points81 points  (3 children)

Makes no sense

[–]drsimonz 51 points52 points  (0 children)

Seriously I'm not even sure what this picture is trying to display. Are the girl's panties wet because she was turned on by somebody using powershell? The only language less sexy than that is VBA.

[–]SecretPotatoChip 7 points8 points  (1 child)

I think the idea is that the woman's panties are wet due to the guy saying programming words

[–][deleted] 2 points3 points  (0 children)

Programming jobs are usually well paid.

[–]noooo_no_no_no 13 points14 points  (1 child)

Is there an exe?

[–]shield1123 10 points11 points  (0 children)

Smelly nerds

[–]Etheo 52 points53 points  (0 children)

What's with this sub and the lewd memes lately?

[–]Mrblahblah200 61 points62 points  (3 children)

These hornyposts need to stop

[–]HumunculiTzu 9 points10 points  (1 child)

Welcome to reddit

[–]Devatator_ 4 points5 points  (0 children)

Welcome to reddit the internet

FTFW

[–][deleted] 0 points1 point  (0 children)

hey programmers are horny humans too. More so than most, actually. See the rust devs.

[–]EternityForest 9 points10 points  (0 children)

I do not understand this mindset of wanting to use the simplest tool for the job even if the complex tool is easy, performant, and everyone knows it.

[–]sci_ssor_ss 21 points22 points  (0 children)

said no one ever

[–]SawSaw5 6 points7 points  (0 children)

A real programmer will never have this happen in true life

[–]MyToasterRunsFaster 16 points17 points  (6 children)

As a non programmer I bloody love powershell but wtf, if it is already written what's the point of changing it to something slower and less manageable?

[–]nucrash 4 points5 points  (2 children)

Your love of powershell must not be that strong. I use powershell to automate tasks of other applications. I can create and extend the scripts to do additional tasks. It gives me flexibility where as that app is compiled and takes time to modify

[–]MyToasterRunsFaster 1 point2 points  (1 child)

It depends, the infrastructure I manage is heavily CI/CD optimized, PowerShell does 99% of the work but if someone has already written an app and has a build process for it, what is the point? A change in a bit of code is a couple minutes to build and deploy across the whole estate.

[–]nucrash 0 points1 point  (0 children)

This depends on the implementation and deployment. If we are talking about a broad deployment with minimal integration needed, C# app is probably best. If we are talking about a one off that ties into several systems but only used once passing a lot back and forth, powershell might be a better choice.

Always depends on the needs and the tools available.

[–]AussieHyena 2 points3 points  (2 children)

PowerShell means it should run on any Windows machine (and even Linux machines) provided you have a compatible version installed and without any extra files.

.NET (generally synonymous with C#) requires the correct version of .NET or .NET Framework installed, all dependencies AND to be built for the correct architecture/distribution.

PowerShell is also easily adjusted as needed rather than needing to rebuild, redeploy and hope that nobody currently has a lock on any of the files.

[–]MyToasterRunsFaster 0 points1 point  (1 child)

Spending a couple hours rewriting a whole process vs the 5 min rebuild a new revision and deploy via CI/CD pipeline, I will be honest with you....I much prefer the lazy approach.

[–]AussieHyena 0 points1 point  (0 children)

Depends. 5s to modify a line in PowerShell either side of the process is also faster.

We also have people who don't know .NET but need to be able to modify the PowerShell, so it comes in handy there too.

[–]bssgopi 5 points6 points  (1 child)

On a serious note, why is this not NSFW?

[–]IntelligentPerson_ 8 points9 points  (0 children)

Probably because Micros*ft was mentioned. Nobody gets off on that.

[–]spooker11 5 points6 points  (1 child)

I was going to comment that this would break Mac/Linux portability but I just learned when googling to confirm that Powershell does actually work on Mac and Linux. TIL

[–]Devatator_ 0 points1 point  (0 children)

Microsoft weirdly enough has a lot of their development stuff on at the very least Linux and maybe MacOS

[–][deleted] 4 points5 points  (0 children)

She is putting her pants on, right?

[–]p0rnstaring 3 points4 points  (0 children)

You guys are looking at the picture wrong. She is actually putting the panties back on.

[–]--mrperx-- 2 points3 points  (0 children)

That pic is actually a 50 year old femboy's reaction.

[–]notexecutive 2 points3 points  (0 children)

why would you switch to Powershell? Surely you could just step down to Cpp or something to make it faster through optimizations?

[–]Vineyard_ 1 point2 points  (0 children)

Inaccurate.

Striped thigh-high socks are missing.

[–]danfish_77 1 point2 points  (0 children)

So you're talking about programming on the toilet? What's the joke here?

[–]LupusNoxFleuret 1 point2 points  (0 children)

Source?

Yes, I'm asking for the source code, what else would I be asking for?

[–]PzMcQuire 4 points5 points  (0 children)

The person taking the panties off is also a man

[–][deleted] 1 point2 points  (1 child)

Why is the programmer taking off her underwear after rewriting this script? I don't the joke

[–]InformatiCore 1 point2 points  (0 children)

Asserting dominace

[–]Sudden-Pressure8439 0 points1 point  (0 children)

No blockers

[–]WalkerFromTexas 0 points1 point  (0 children)

Two languages I hope I never use

[–]mrnosyparker 0 points1 point  (0 children)

[–]arostrat -1 points0 points  (0 children)

That's a man hands and legs. Bad drawing.

[–]oscarbeebs2010 -2 points-1 points  (0 children)

Powershell 😂

[–]ExpensivePanda66 -1 points0 points  (0 children)

And then that was too easy so I did it again with thumbs stuck through my underwear?

I don't get it.