zlacker

[return to "IoT hacking and rickrolling my high school district"]
1. belval+j2[view] [source] 2021-10-12 19:50:56
>>revico+(OP)
The fact that the administration didn't choose to sue them to oblivion is refreshing. I hope we'll see a trend in the future of educator being smart enough to admit that they made a mistake and to encourage the students to develop their talent.

One can only hope.

◧◩
2. bluedi+K2[view] [source] 2021-10-12 19:53:15
>>belval+j2
I'm glad to see a kid using bash and not something like gulp PowerShell
◧◩◪
3. blackt+N4[view] [source] 2021-10-12 20:03:54
>>bluedi+K2
Credit where credit is due, we all WISH *nix had something like PowerShell. Passing strings from program to program is a pain, passing around .NET objects instead is a great step forward, as can be seen by the several attempts at similar shells passing around JSON objects.
◧◩◪◨
4. onepla+ar[view] [source] 2021-10-12 22:21:38
>>blackt+N4
There have been REPLs like PowerShell for ages, it's nothing really new. The only nuance in this is that it is new in the Windows ecosystem to have something like that supported by Microsoft. Ironically, it hasn't managed to displace the command prompt or batch files, so instead of having to deal with one thing, you now have to deal with two things.

As for the passing of strings: it might seem like a pain, but as soon as you start working with non-program I/O it's not like you'll have much of a choice. Keep in mind that it is the lowest form of communication and you can build on top of that. Same with I/O in general: nothing prevents you from using shared memory or a device instead.

◧◩◪◨⬒
5. jve+R72[view] [source] 2021-10-13 14:10:45
>>onepla+ar
> Ironically, it hasn't managed to displace the command prompt or batch files

It don't think they expect that people would rewrite their old scripts. That is actually silly to consider. Even with console vs terminal, they are concerned of backward compatibility and leaving it as is:

> Windows Console will continue to ship within Windows for decades to come in order to ensure backward compatibility with the many millions of existing/legacy command-line scripts, apps, and tools

https://devblogs.microsoft.com/commandline/windows-terminal-...

◧◩◪◨⬒⬓
6. onepla+yr2[view] [source] 2021-10-13 15:34:43
>>jve+R72
They could just have an alternative interpreter mode to support batch files, or even have a cmdlet that does just that. If people like to point and click, associate that with a cmdlet (they can do that, right?) and there you go.
[go to top]