HNHacker News
TopNewBestAskShowJobs

majkinetor

3,319 karma · joined January 3, 2013

https://milic.info
submissionscomments
majkinetor··on Do the simplest thing that can possibly work (2004)
The question is about simplicity of core implementation.

Easy debuging is different goal and you can have infinity of such additional goals, but solution obviously can't be equally simple at everything at the same time (because of the conflict of responsilities).

majkinetor··on Do the simplest thing that can possibly work (2004)
> As long as the abstraction layer works well for you without getting too much into the details of the implementation, it's a simple solution.

You can have very large number of layers, and to understand inner goings and interconnetions of all becomes very hard.

I highly doubt you can equalize "set of superb interfaces" with simplicity.

majkinetor··on Do the simplest thing that can possibly work (2004)
You are not producing a bagel. You are obtaining it. There is a big difference. Once nobody produces a bagel, your method is meaningless.
majkinetor··on Do the simplest thing that can possibly work (2004)
Simple is something that either can't be reduced further without changing the output (ideal, simplest), or it is very hard to do so (real world).
majkinetor··on Why are so many young men single and sexless?
A frontend influences bonding disproportionally just initially. With more time passing, one may be more influenced by other qualities of the person. Hence, frontend 10 can be very losy and frontend 5 can be out of this world.
majkinetor··on The gap between how old you are and how old you think you are
I don't feel age. I don't care. 20 or 80, its all the same to me.
majkinetor··on Getting work done with PowerShell on Linux
U have Powershell notebooks https://github.com/dotnet/interactive
majkinetor··on Getting work done with PowerShell on Linux
Select-Object is for head/tail as poster mentioned that. Also, it can be used for accessing parsed content similar to awk, for example: '1,2,3,4,5' -split ',' | select -Index 3,5

> You cannot use linux tools in PowerShell in most cases, since they aren't installed by default.

The same as jq and specific variants of tools you mention. Not like you can't install them in single line: winget/choco install awk,grep,jq,less...

> In the real world a lot of shell scripting requires parsing unstructured text from various command outputs and files.

No it doesn't. I do shell scripting for more then decade in PowerShell and I can count how many times I parsed the text. The most used one is simple split like with `$paths = $Env:PATH -split ';|:'`, but other then that no. I used select-string only couple of times in decade, on all OSes.

> but as soon as you step out of that comfort zone it becomes awkward to use.

That is true for literary anything. Actually pwsh does great with 'native' tools too, and there is even MS module to help with "native app wrapping". See [1] and [2]

Today its more or less regular to have json output which can be trivially read by pwsh ConvertFrom-Json

[1] https://devblogs.microsoft.com/powershell/native-commands-in....

[2] https://redmondmag.com/articles/2020/12/11/powershell-cresce...

majkinetor··on PFAS can suppress white blood cells’ ability to destroy invaders
But suddently you started to inhale smoke of numerious other additivies they put into it in the meantime.
majkinetor··on Getting work done with PowerShell on Linux
> Also, you seem to misunderstand what UNIX Shell does (hint, ls and awk are not part of UNIX Shell, so, forward your complaints about ls and awk to the respective authors of those tools).

Semantics. Nobody uses bash without those, and having different variants on them with different variants of regex is most troubling. Contrary to that, in pwsh it is recognized that those should be part of the shell that will behave the same on any OS. U ofcourse left out tone of those that come OTB in pwsh (like html/markdown/json/csv/sql readers and exporters vs jq,pandoc,usql,whatever)

> But, if I had to change anything about it, I would never choose objects. This is just replacing one problem with another with very little benefit.

You keep saying that without any evidence whatsoever. Its just a personal taste and you should declare it as such.

> Powershell can enfore types in function arguments

>> I know. This is awful. Especially for maintenance.

It looks to me that you dont actually have programming background, and that is the reason you say things like that. Your bash scripts the way you described them would probably be heavily reviewed and massaged where I work, for them to be accepted.

majkinetor··on Getting work done with PowerShell on Linux
> Working with hierarchies of objects is a lot more complicated.

Compared to a flat list of related strings? No, its not. Its like saying that categorisation is worst then keeping everything in large bin.

> Comparing things becomes a nightmare.

Comparing objects deeply can be done in one line. If anything is nightmare, its people who judge without RTFM.

> So, it's OK to use it as a gimmick

I am amazed about lack of recognition on amount of work that MS and community have put into it (during two decades of gimmicking) :)

majkinetor··on Getting work done with PowerShell on Linux
> I'd better spend my time writing a different shell.

That is funny and shows tremendous lack of understading of shell complexity. Perhaps your own OS next ?

majkinetor··on Getting work done with PowerShell on Linux
> Perhaps that's just a reflection of my lack of experience with PowerShell

Obviously.

If you create pwsh script that is longer then equivalent bash script and more confusing, then you are doing it wrong. One almost never parses string in pwsh, unless string parsing is your primary task itself. Contrary, in bash, you always parse text, no matter what you want to do, which is defocusing and hard to maintain, and has cross-OS problems even in *nix land (solaris vs red had comes to mind and their respective ls/stat output which differs).

majkinetor··on Getting work done with PowerShell on Linux
No.

You can use both in pwsh on any OS.

majkinetor··on Getting work done with PowerShell on Linux
Select-String and Select-Object cover all those.

Also, you can use linux tools in PowerShell, but that is not the point, it is back to stone age moment.

Shell scripts shouldn't be other name for text parsing.

majkinetor··on Saying goodbye to Stack Overflow
No its not. You used the tool in useful way, producing result that is helpful to others. Points deserved. Autosumarization would be cool too.
majkinetor··on Software 2.0 (2017)
> writing software is circa 10% of all effort, specification, legal stuff, maintenance, avoiding technical debt, proper test cases, anomaly testing, performance testing the right stuff. That is hard, that matters. Software 2.0 is barking the wrong tree.

Exactly. For serious projects (not to do lists) u will need humans, or equivalent (AI that is grown like one).

majkinetor··on Jupyterlab Desktop
This is fantastic.

I will test out PowerShell. Thanks for providing links.

majkinetor··on Ask HN: Resources for Windows development?
Use PowerShell instead of GUI for everything, for one. Its so awesome that it should be in the washing machines too.

Mark Rusniovich's book Windows Internals is the one you want to understand architecture and kernel. Also, sysinternal tools.

For development, don't look at anything else but .NET 7+, since its FOSS, performant and cross platform. C# is also beutiful language.

For GUI, use MAUI, its the state of the art GUI framework that united all of the others U mention.

Use Windows Sandbox for testing, OTB virtual machine for single time use, and Docker Desktop for other stuff. Take a look at Sandboxie too.

Use package manager, winget, obviously, don't install anything else by hand.

Good luck, Windows is now enitrelly different beast then what you learned before

majkinetor··on AutoHotkey v2 Official Release Announcement
No. Looks promissing, thanks for the info!
majkinetor··on AutoHotkey v2 Official Release Announcement
AHK is way more mature then autokey has huge community and big amount of ready to use scripts and autoamtion libraries.
majkinetor··on AutoHotkey v2 Official Release Announcement
I miss everything search engine too. Nothing similar exists.

Was missing total commander but now that is solved with double commander.

majkinetor··on AutoHotkey v2 Official Release Announcement
Yeah, its not hard to find that info all around. Maybe you were lucky.

More importantly its considerably larger and slower.

majkinetor··on AutoHotkey v2 Official Release Announcement
There is no such thing, at least in the mainstream. There are surogates, more or less capable, however nothing close to AHK

1. xdotool

2. sikuli

3. AHK_X11

majkinetor··on AutoHotkey v2 Official Release Announcement
AutoiIt community is hostile. It is also way slower, larger, hungrier. Now it has worst syntax too.
majkinetor··on AutoHotkey v2 Official Release Announcement
Autohotkey is awesome and special, and everybody on Windows should learn it. There is no such thing on any other OS.

v2 syntax and features are so much better. It was basically in development for a decade and AHK itself more then 20 years.

majkinetor··on Show HN: Don't lose track of HN post comments
There are also 2 other tools

One is https://alerthn.com that does full text search on topics and commenets. It works great for years.

The other is http://www.hnreplies.com/ and it sends email on replies to your comments. It works good, but it stops after some time but you can subscribe again.

majkinetor··on Astro 2.0
Nanoc is great, basically framework for creating SSGs. You can literarry do everything and with latest ruby its much faster too - I had some biger site with it that took 10 minutes to build (which is done on any editor input).

The project is also 15+ years old and continiously developed.

majkinetor··on Astro 2.0
I read entire documentation yesterday, and I am very impressed. Looks fantastic, with some great conventions if you need it quick, but fully customizable if you change your mind later. I particularly like the fact that I can switch from SSG to SSR and back.

File system as db, markdown with templating and js expressions, nasting layouts, quick random endpoints, filtering of collections, named slots everything repo friendly - whats not to like. Also, great content and looking docs (particularly interactive tutorial).

Reminds me a lot of nanoc SSG framework (ruby).

majkinetor··on Ask HN: Anyone doing some absurd stuff after getting laid off?
I judged by the timeline and mention of AI project among the stars... :)
← PreviousPage 19 of 34Next →