|
Jonny 290 posted:alias all bash builtins to echo USE A PLANG YOU rear end in a top hat
|
# ? Feb 1, 2015 21:10 |
|
|
# ? Jun 1, 2024 20:00 |
|
here's the biggest thing about bash: there's no usable debugger. i don't care how bad your perl, ruby, python is. i can always haul out a debugger and start troubleshooting it. not so much with bash. the 3rd party bash debuggers, bashdb and friends, are terrible. and of course bash makes everything worse by abuse of subprocesses, which mungs everything worse than it already was, in your hacked-up not-really-a-debugger environment. if you find yourself pulling out bashdb, you're probably better off just running bash with strace or dtrace and getting a list of all the files that are touched. it's not worth the pain to try to debug bash
|
# ? Feb 1, 2015 21:12 |
|
or use a real platform where stupid garbage isnt an issue
|
# ? Feb 1, 2015 21:37 |
|
powershell
|
# ? Feb 1, 2015 21:39 |
|
Ah yes, Powershell. They're at version 4.0 now and you still can't recursively delete directories. Or, well, it may work sometimes.
|
# ? Feb 1, 2015 22:00 |
|
what's the powershell debugging story like?
|
# ? Feb 1, 2015 22:11 |
|
I've found the PS ISE to be very suiting of my needs.
|
# ? Feb 1, 2015 22:18 |
|
more like powers hell
|
# ? Feb 1, 2015 22:21 |
|
rrrrrrrrrrrt posted:I've found the PS ISE to be very suiting of my needs. Subjunctive posted:what's the powershell debugging story like? built inot the ISE
|
# ? Feb 1, 2015 22:26 |
|
Subjunctive posted:error handling, susceptibility to cyclic garbage, and the class system. I thought we were talking about Perl, not neoliberal economic policy
|
# ? Feb 2, 2015 00:02 |
|
Subjunctive posted:error handling, susceptibility to cyclic garbage, and the class system. Mr Dog posted:I thought we were talking about Perl, not neoliberal economic policy
|
# ? Feb 2, 2015 01:19 |
|
God drat.
|
# ? Feb 2, 2015 02:12 |
|
Jonny 290 posted:a plang with sigils in front of the vars, scalar/list/hash data structures you can nest in the sensible form, and semicolons at the end i like php too jonny
|
# ? Feb 2, 2015 03:57 |
|
Mr Dog posted:I thought we were talking about Perl, not neoliberal economic policy
|
# ? Feb 2, 2015 04:50 |
Mr Dog posted:I thought we were talking about Perl, not neoliberal economic policy
|
|
# ? Feb 2, 2015 05:05 |
|
Sagacity posted:Ah yes, Powershell. They're at version 4.0 now and you still can't recursively delete directories. Or, well, it may work sometimes. it works fine?? powershell is fine if you Set-StrictMode your scripts and the fact that you can interop with .net code seamlessly is amazing
|
# ? Feb 2, 2015 06:14 |
|
like you can just load a .dll you find in a script and start creating objects from it, it's goddamn wizardry
|
# ? Feb 2, 2015 06:15 |
|
wow, a strict mode that's always a great sign in a plang
|
# ? Feb 2, 2015 06:19 |
|
pseudorandom name posted:wow, a strict mode it makes sense when you consider that it's also an actual shell, you want the behaviors it disables when you're in a repl the horror is my coworkers for building large systems in powershell that don't work with strict mode on
|
# ? Feb 2, 2015 06:56 |
|
perl is fine, shell scripts are also fine as long as it's just a sequence of commands with no real looping or branching to speak of other than if [ -e $FILE] or whatever
|
# ? Feb 2, 2015 07:02 |
|
Mr Dog posted:I thought we were talking about Perl, not neoliberal economic policy
|
# ? Feb 2, 2015 09:57 |
|
rotor posted:perl is fine, shell scripts are also fine as long as it's just a sequence of commands with no real looping or branching to speak of other than if [ -e $FILE] or whatever it's okay the time for shell scripts has passed. we have goddamn unit testing now so your clown fucker script doesn't choke and bring down a system
|
# ? Feb 2, 2015 10:52 |
|
"but my script just fucks clowns!" gently caress you write unit tests
|
# ? Feb 2, 2015 10:53 |
|
special dispensation will be made if you are people like my rear end in a top hat coworker whose code was littered with the piss lord Ruby %[/usr/bin/gently caress clown] nonsense
|
# ? Feb 2, 2015 10:55 |
|
Tiny Bug Child posted:i like php too jonny i do not care for the combination array/hashes they have in php. i'm more comfortable with those being two separate things
|
# ? Feb 2, 2015 14:38 |
|
i worked on a 10 kiloline shell script thing that did image manipulation and video encoding through many, many invocations of imagemagick and ffmpeg/avconv it was absolutely horrifying: exactly duplicated code in if/else branches, calling out to bc a bunch of times to calculate positions since bash doesnt do floating point math, an 'smp" mode that ran everything with a & at the end and had race conditions out the wazoo figuring out if those subprocesses finished half of this was terrible coding practice, half of it came from necessary hacks because shell scripting is so terrible. i thought perl's function argument parsing was bad until i realized that shell script is even worse, and i finally understood perl's idiocy of weak typing between strings and numbers i rewrote the whole thing in ~400 lines of python, no more imagemagick but still calls out to avconv to actually do video encoding, turns out that having good data structures available (pillow images and numpy arrays as well as what's built in to python) makes a world of difference in how easy it is to do some things
|
# ? Feb 2, 2015 15:26 |
|
prefect posted:i do not care for the combination array/hashes they have in php. i'm more comfortable with those being two separate things i'm alright with the hash/array being a uniform collection, it works out ok in lua and awk and a bunch of glue languages for automation
|
# ? Feb 2, 2015 15:34 |
|
You can give me a very broad array type as long as I'm also able to use more adapted and specialized data structures when I need them.
|
# ? Feb 2, 2015 17:21 |
|
prefect posted:i do not care for the combination array/hashes they have in php. i'm more comfortable with those being two separate things it's ok, php arrays are such a flexible and powerful data type that they intimidate some people who are only used to the limited "arrays" found in other languages
|
# ? Feb 2, 2015 17:28 |
|
Tiny Bug Child posted:it's ok, php arrays are such a flexible and powerful data type that they intimidate some people who are only used to the limited "arrays" found in other languages there are probably some people who get rustled by the idea of dynamic length arrays, or arrays that don't start at 0
|
# ? Feb 2, 2015 18:14 |
|
there will some people who argue that 7/2 is 3, or that -7/2 is -3 or -4. programming
|
# ? Feb 2, 2015 18:19 |
|
tef posted:there will some people who argue that 7/2 is 3, or that -7/2 is -3 or -4. programming if -7/2 is not -3 or -4. what is it then
|
# ? Feb 2, 2015 19:01 |
|
Shinku ABOOKEN posted:if -7/2 is not -3 or -4. what is it then -3.5, of course. did you not study math after the first year of elementary school?
|
# ? Feb 2, 2015 19:04 |
Soricidus posted:-3.5, of course. did you not study math after the first year of elementary school?
|
|
# ? Feb 2, 2015 19:07 |
|
|
# ? Feb 2, 2015 19:09 |
|
Use Racket you plebs
|
# ? Feb 2, 2015 19:24 |
|
code:
code:
|
# ? Feb 2, 2015 19:27 |
|
What's sqrt 2 then I know where you FP weenies are going with this and it's just as arbitrary a delineation as transparent bignum promotion.
|
# ? Feb 2, 2015 19:31 |
|
no that's my point, that it kind of looks like it works in the repl but it actually doesn't. int/int = int, but in the repl when using the literals they get silently interpreted as floats instead. in actual code it wouldn't work either.
|
# ? Feb 2, 2015 19:36 |
|
|
# ? Jun 1, 2024 20:00 |
|
Mr Dog posted:What's sqrt 2 then Mr Dog posted:I know where you FP weenies are going with this and it's just as arbitrary a delineation as transparent bignum promotion.
|
# ? Feb 2, 2015 19:39 |