|
embrace extend extinguish snipe
|
# ? Aug 19, 2016 14:26 |
|
|
# ? Apr 25, 2024 21:07 |
|
I'm glad that Microsoft keeps wanting to make it easier for me to never need Windows again.
|
# ? Aug 19, 2016 14:30 |
|
Cybernetic Vermin posted:i was to some extent trolling (mixed with a real annoyance that the linux commandline has made almost no progress in 20ish years and an opinion that powershell has a lot of excellent ideas), but this is actually a p. interesting point wait, didn't MS make a bunch of SQL Server and IIS admin tasks only accessible through powers hell recently?
|
# ? Aug 19, 2016 14:35 |
|
comedyblissoption posted:also i've used .net and powershell some and its handling of exit codes for common uses is horribly hilariously broken and you have to do imperfect workarounds exit codes are deprecated signals and output streams are for logging so who cares what order they're in.
|
# ? Aug 19, 2016 14:37 |
|
Dick Nipples posted:gci - noob. or you can just use ls
|
# ? Aug 19, 2016 14:39 |
|
Tankakern posted:visual studio code has been out for linux a while already that's not visual studio tho. its just a text editor and a bad one at that.
|
# ? Aug 19, 2016 14:39 |
|
bash is bad but lol at using powershell on linux
|
# ? Aug 19, 2016 14:52 |
|
people who need bash will find that bash is the sort of thing they need
|
# ? Aug 19, 2016 18:20 |
|
personally im looking forward to linux kernel 10
|
# ? Aug 19, 2016 18:23 |
|
i really don't get all the bash hate, like it's the shells fault if you inherit crap admin scripts written by a idiot. in the linux distro dev world all kinds of coll things are implemented as bash scripts
|
# ? Aug 19, 2016 18:45 |
|
let me remind you of shellshock
|
# ? Aug 19, 2016 18:50 |
|
it got fixed, now what
|
# ? Aug 19, 2016 18:52 |
|
Gazpacho posted:i really don't get all the bash hate, like it's the shells fault if you inherit crap admin scripts written by a idiot. in the linux distro dev world all kinds of coll things are implemented as bash scripts its a bad language created in the 70s when people thought string parsing was the way to go.
|
# ? Aug 19, 2016 18:53 |
|
the unix philosophy was stupid as gently caress and bash drags it around forever.
|
# ? Aug 19, 2016 18:53 |
|
text is great, it's auditable and semi-self-documenting as compared to binary line noise
|
# ? Aug 19, 2016 18:55 |
|
I'm not qualified to say whether it's better or worse but Powershell def makes way more sense to me in general
|
# ? Aug 19, 2016 18:58 |
|
on a relatd note, as of 2008 the Windows kernel was built with a combination of cmd scripts and nmake
|
# ? Aug 19, 2016 18:59 |
|
Gazpacho posted:text is great, it's auditable and semi-self-documenting as compared to binary line noise untyped text is random binary noise. you make assumptions about what it will be with no guarantee. powershell provides typed input and output to make verification possible.
|
# ? Aug 19, 2016 19:01 |
|
doesn't that just obligate people to undermine the type constraints so that their scripts will be reusable
|
# ? Aug 19, 2016 21:21 |
|
they cant undermine the type constraints and idk why they would. also types make poo poo easier to reuse since its more clearly defined.
|
# ? Aug 19, 2016 21:25 |
|
bash is real good an old coworker of mine wrote a basic, working webserver in bash i've automated a fuckton of stuff that bores me or is a hassle in bash
|
# ? Aug 19, 2016 21:33 |
|
you seem like a super smart guy!
|
# ? Aug 19, 2016 22:32 |
|
bash should be used to start processes and pipe their output to other things and nothing else
|
# ? Aug 19, 2016 22:39 |
|
no it shouldn't. its very bad at all of that.
|
# ? Aug 19, 2016 22:44 |
|
MALE SHOEGAZE posted:bash should be used to start processes and pipe their output to other things and nothing else
|
# ? Aug 19, 2016 22:50 |
|
Gazpacho posted:i really don't get all the bash hate, like it's the shells fault if you inherit crap admin scripts written by a idiot. in the linux distro dev world all kinds of coll things are implemented as bash scripts bash and the pipe concept are both fundamentally flawed, the first has the idea that everything is a string while simultaneously imposing syntactic meaning on all strings, the second passes information as a raw stream of bytes while not reserving anything which can be used to generally structure the information i mean, it was brilliantly elegant when first conceived, and still sort of impressive to us lowly home computer nerds when it became available to us in the 90s, but it really is resting on such godawful design decisions that it should have been replaced in the intervening years. powershell notably deals with both matters in a way which fits with the way most modern software works, so it really is closer to what the future really ought to look like
|
# ? Aug 19, 2016 23:06 |
|
to illustrate my idiot neckbearded nerd tendencies: if nothing else tcl should have wiped out all that bash poo poo. it perfected the (still rather flawed) string-as-the-one-datatype idea, with some workable structure, a simple core, and was structured in such a way that slightly less nerdy people could very easily write a batch script it is more a comment on how horrendous things have been than the superiority of tcl that it on top of that had the best gui toolkit available on unix for like 15 years running
|
# ? Aug 19, 2016 23:14 |
|
MALE SHOEGAZE posted:bash should be used to start processes and pipe their output to other things and nothing else
|
# ? Aug 20, 2016 01:39 |
|
look if you really need some kind of complex structure you can make bash scripts that parse & generate json something else that would be useful: a pair of tools that parses XML into xpath/value pairs for stream manipulation and then recomposes it Gazpacho fucked around with this message at 04:49 on Aug 20, 2016 |
# ? Aug 20, 2016 04:46 |
|
Gazpacho posted:look if you really need some kind of complex structure you can make bash scripts that parse & generate json xmlstarlet is pretty much that for xml and xslt.
|
# ? Aug 20, 2016 06:15 |
|
powershell isn't half bad but I'd much rather write my scripts in python on all platforms
|
# ? Aug 20, 2016 07:16 |
|
no wait, how about a tool that takes an XML file and spits it out into a corresponding directory structure. and vice versa
|
# ? Aug 20, 2016 07:18 |
|
bash is a job control language, it's for writing dumb scripts that automate simple stuff. if you need to write complex things there are plenty of better languages available on your unix system. turning the shell into a strict programming environment doesn't help anyone, it's just another language on your system and gets in the way of simple stuff being simple
|
# ? Aug 20, 2016 11:12 |
|
Gazpacho posted:look if you really need some kind of complex structure you can make bash scripts that parse & generate json Powershell can natively parse json
|
# ? Aug 20, 2016 15:00 |
|
The Management posted:bash is a job control language, it's for writing dumb scripts that automate simple stuff. if you need to write complex things there are plenty of better languages available on your unix system. turning the shell into a strict programming environment doesn't help anyone, it's just another language on your system and gets in the way of simple stuff being simple it is a trash job control language ill suited for writing dumb scripts for even simple stuff
|
# ? Aug 20, 2016 15:22 |
|
Shaggar posted:they cant undermine the type constraints Captain Foo posted:Powershell can natively parse json lol
|
# ? Aug 20, 2016 23:47 |
|
LOL lemme just rewrite all my tools in some .NET language just so that I can pass things in & out of them in PowerShell
Doc Block fucked around with this message at 12:14 on Aug 21, 2016 |
# ? Aug 21, 2016 05:08 |
|
remember when all languages were going to be .NET languages?
|
# ? Aug 21, 2016 10:44 |
|
computer molester posted:an old coworker of mine wrote a basic, working webserver in bash
|
# ? Aug 21, 2016 14:27 |
|
|
# ? Apr 25, 2024 21:07 |
|
is that supposed to somehow be evidence that bash is good
|
# ? Aug 21, 2016 14:27 |