HNHacker News
TopNewBestAskShowJobs

bloblaw

705 karma · joined March 24, 2012

submissionscomments
bloblaw··on Rumors of Cmd’s death have been greatly exaggerated
Helge Klein wrote an excellent article "What I Hate About PowerShell": https://helgeklein.com/blog/2014/11/hate-powershell/

Be sure to read the comments where PowerShell guru Jeffrey Snover politely addresses them.

I share many of these same frustrations that have prevented me from adopting it as a Windows scripting language. I use it when I have to, but I still will choose csharp compiled EXE's, vbscript, or even Py2Exe'd Python programs over PowerShell for sysadmin type tasks.

I was in the audience at MS TechEd 2005 in Orlando and watched as Jeffrey Snover presented Monad and highlighted it's Perl, awk, sed, and unix influences. I was immediately impressed.

However, PowerShell seems to best fit as a REPL shell, and for me, more mentally cumbersome than using csharp (which of course can technically do everything ps can).

My gripes with PS are kind of minor (a bit like my dislike of Python's whitespace enforcement), but it's kind of like a death by a thousand annoyances with PowerShell for me.

For example (stolen from Helge's article), these are some WTF's for me

* Testing for string equality: "abc" -eq "abc" ( why isn't this "abc" == "abc" )

* Greater than: 8 -gt 6 ( why isn't this 8 > 6 ?)

* Functions can only be used after being defined. Leading to scenarios where a script begins waaaay down at the bottom.

* dynamic scoping: http://ig2600.blogspot.de/2010/01/powershell-is-dynamically-...

* No way to syntax check a PS script before it's run

These aren't all major, but the last one is a show-stopper for me. If I'm running a script on a couple hundred thousand machines (and I have) I can't afford to have my script bail out on an unexpected code-path.

I really like the idea of PowerShell, and I am honestly glad it exists, but I think it would benefit from some changes outlined in Helge's article.

And this is why me, someone working professionally with Windows for over 15 years (sysadmin, developer, security) doesn't choose to use PowerShell very often.

bloblaw··on Lazarus Version 1.6
Yep, that's the same one. PyScripter, the open-source IDE for Windows, is written in Delphi with the Python4Delphi component: https://sourceforge.net/projects/pyscripter/
bloblaw··on Lazarus Version 1.6
It's status as "mainstream" is of course debatable, but Object-Pascal (aka Delphi) is #10 on TIOBE: http://www.tiobe.com/tiobe_index

Lots of "famous" software has been written in Object-Pascal: https://jonlennartaasenden.wordpress.com/2014/11/06/famous-s...

bloblaw··on Interview: Larry Wall
Use Perltidy to automatically re-format and indent any "ugly" looking Perl!

https://metacpan.org/pod/distribution/Perl-Tidy/bin/perltidy

bloblaw··on Interview: Larry Wall
When I encounter another's Perl code, I run 2 things, (1) Perltidy to reformat the code, and (2) Perl::Critic to identify poor coding practices or insecure code.

https://metacpan.org/pod/distribution/Perl-Tidy/bin/perltidy

http://search.cpan.org/~thaljef/Perl-Critic-1.125/lib/Perl/C...

If you have trouble reading Perl, run those 2 programs and you'll greatly improve its readability.

bloblaw··on Why I am called "the Father of Visual Basic" (1996)
This is so true. I was blown away by VB6, especially after working with Visual C++ (and MFC).

Shortly after I got into VB6 I was turned onto Delphi 7...and never looked back. For me, Delphi is a superior alternative to VB6 and Visual C++...and I say that as someone that really learned a lot from, and enjoyed using VB6

I still use Delphi to this day and am using a modern release of Delphi (XE7, the latest version). They've added a 64-bit compiler and support creating native OSX, iOS, and even Android applications now too.

If you value high performance, easy to develop GUI's, small EXE's with no dependencies, native generics, and awesome DB support, I highly recommend using Delphi.

However, to each their own. I know Delphi is not as popular these days, but it really offers programmers huge productivity gains.

If you prefer an open-source alternative to Delphi, have a look at the Lazarus IDE which uses FreePascal.

The Lazarus IDE is very reminiscent of Delphi 7 and runs on Linux, OSX, and Windows. You can also create native GUI's on all of those platforms as well: http://www.lazarus-ide.org/

bloblaw··on Why I am called "the Father of Visual Basic" (1996)
Well, great info on the Embarcadero's website about Delphi + Android: https://www.embarcadero.com/products/delphi/android-app-deve...

And here are examples of using it (with source): https://www.embarcadero.com/products/rad-studio/android-ios-...

bloblaw··on If programming languages were weapons
Yes, you nailed it.
bloblaw··on If programming languages were weapons
I personally also use Python regularly and am very comfortable with it, but we often choose Perl because of the developer experience in it.

Perl has a reputation for being difficult to learn, and it does have a bit of a high learning curve compared to Python. However, once you learn Perl, you'll find it's a rather wonderful, expressive. and powerful language.

Is it "better" than Python or Ruby? No, just a different solution to many of the same problems. If we're being honest, most anything you can do in Ruby or Python can also be done in Perl.

My experience is that most engineers and devs over the age of ~30 know Perl front and back (if they script), so it's a natural choice. Fewer of these people (in my experience) are as familiar with Python/Ruby.

Perl continues to evolve and the Perl we wrote in 1998 isn't the same as the "Modern Perl" we write in 2014. There are great modern Perl web frameworks (Dancer, Mojolicious), real object-orientation via Moose, powerful exception handling via Try::Tiny, and a history of excellent database support.

bloblaw··on If programming languages were weapons
"Perl is a molotov cocktail, it was probably useful once, but few people use it now."

Yikes! I've worked for big tech companies you've heard of and Perl is all over the place and used in real production projects. We also regularly choose it for new projects.

bloblaw··on Amazon to Raise Fees as Revenue Disappoints
Maybe this is a "Show HN" item, but I created http://www.shippingfiller.com to scratch my own itch of finding filler items to meet Amazon's free shipping minimum with items I might actually want. And I'm too cheap to buy prime.
bloblaw··on Challenge HN: Break my in-browser crypto for $1000
> [..] but I take issue with the "break SSL = break JS crypto" argument.

Respectfully, I'd suggest that this is not the argument.

The argument is that breaking SSL = accessing the data the crypto protects. Crypto is a means to an end...which is protecting sensitive information. moxie decidedly did not "break" the crypto, because he didn't have to.

It's a bit like a bank vault with the world's strongest door, but when it was installed they put in a 4' x 5' window next to the door. The vault door (aka the crypto) is fine and unbroken, but I still can get access to your money because your security system has a weak point.

bloblaw··on Mailbox iOS app is a security fail
> Mailbox.app is not a complete security failure because of one hack that requires physical access

The problem is that we take mobile devices with us every place we go. So physical access is not difficult to obtain.

This really is a big deal primarily because the developers of Mailbox.app did not take steps to even obfuscate the stored data...which would deter all but the most determined of attackers.

bloblaw··on Damn Excel – How the 'most important application' is ruining the world
You should call it as you see it. The comment sure looks, walks, and quacks like a troll.
bloblaw··on Damn Excel – How the 'most important application' is ruining the world
That's also not an Excel issue, but a process/"giving VP's whatever they want even when bad" issue.
bloblaw··on Damn Excel – How the 'most important application' is ruining the world
I guess you would say the same for C, right? So are you saying that Excel works correctly but because its easy to get started with it creates unrealistic confidence? I disagree.
bloblaw··on Damn Excel – How the 'most important application' is ruining the world
So Excel is garbage and the best solution is to hire you? Let me guess...you're a consultant.

Watch a skilled engineer or accountant use Excel and you'll see it's good for more than "toy problems".

bloblaw··on Free Pascal 2.6.2 is released
Wrong.

Delphi has offloaded .NET support to a partner (RemObjects' Delphi Prism/Oxygene). Since Delphi 2007, they have doubled down on native development. Even releasing native console and GUI compilation support for OSX, and iOS in late beta.

Since Delphi 7 (released in 2002), Delphi (and FPC) have added:

* Generics * Anonymous methods * Enhanced RTTI * Attributes * Records with methods * for in loop * final methods * Inlining * Operator overloading * sealed methods * strict private * strict protected * Nested classes * Class helpers * Class constructors and destructors * Static class methods

bloblaw··on Free Pascal 2.6.2 is released
It's very good. In fact, the open-source WMI Delphi Code Creator can generate the native WMI calls (and programs) for you in FreePascal, Delphi, C#, and Microsoft C++:

https://code.google.com/p/wmi-delphi-code-creator/

bloblaw··on Free Pascal 2.6.2 is released
PeaZip is written in FreePascal + Lazarus: http://peazip.sourceforge.net/

Or, just check their screenshot gallery: http://wiki.freepascal.org/Lazarus_Application_Gallery

bloblaw··on Free Pascal 2.6.2 is released
I write code in a number of languages, and I have to say Object-Pascal (which is the language the IDE known as Delphi uses) is a joy.

Check out Lazarus too, the Delphi like IDE for Free Pascal: http://www.lazarus.freepascal.org/

<snarky comment> Too bad most programs weren't written in Delphi instead of C/C++, or we could've avoided all those pesky string based buffer overflow exploits since Object-Pascal doesn't allocate strings on the stack! </snarky comment>

But more seriously, that means no "smashing the stack for fun and profit" in Object-Pascal, and that's a good thing.

I picked up learning Delphi about 8 years ago when it was supposed to be "dead" then, and since then it has been my secret weapon. I still use C once in a while, but I am so much more productive in Delphi and the Free Pascal.

bloblaw··on Reset a Windows 8 Password without using any third party software
The trick with defeating cold boot attacks (aka freezing the RAM) is easily mitigated by a system administrator that forces the system to hibernate instead of sleep (aka write volatile memory to disk).

It can also be mitigated by requiring not just the TPM chip, but also a PIN, PASSCODE, or a PASSCODE that is cycled ever 60 seconds or so (on something like an RSA fob).

This presumes the system has a TPM chip, or a similar mechanism that can provide an original point for a trusted boot.

bloblaw··on Reset a Windows 8 Password without using any third party software
The "GUI" is in the kernel (gdi32.ll, user32.dll, comdlg32.dll, etc). What you see at the CTRL+ALT+DEL screen is actually the "SYSTEM" user's desktop.

You are, however, technically correct, but finding arbitrary code execution vulnerabilities in the "GUI" these days is not a trivial task. And if you've done that, you can do anything you want to the system.

As Raymond Chen (Windows API developer) would say "that would involve being on the other side of this airtight hatchway".

bloblaw··on Stephen Covey, "7 Habits" author, dies at 79
Or you could spend $21 at Amazon and save yourself 71-95 years. I've bought the book, and the advice is actually worth more than $21.

The best tools and information don't always cost money, but sometimes they do.

bloblaw··on ReFiddle: Fiddle for Regexp testing
It works on Linux perfectly via WINE. And OSX via WINE. http://www.regexbuddy.com/wine.html
bloblaw··on ReFiddle: Fiddle for Regexp testing
I've used lots of regex tools over the years, but I stopped looking once I bought RegexBuddy.

See a demo: http://www.regexbuddy.com/demotest.html

It's a Windows program, but runs on Linux via WINE. It lets you debug regexes, has live highlighting of matched text, generates regex code in 15+ languages (Perl, Python, Ruby, PHP, C, C#, C++, Delphi, Java, Javascript, MySQL, etc) and is all around awesome.

I'm not affiliated with this program, but it is the BEST regex creation/testing program available anywhere.

It will save you oodles of time if you create (or debug) regular expressions more than 2 times in a year. It's the best software product I've ever bought with my own money.

bloblaw··on Crowdsource Your Company’s Bonuses
Interesting points and I'm glad you shared this information...seriously.

Something that I hadn't considered is that the largest gains in productivity could/would come from your "average" (so to speak) employees .

I incorrectly assumed that money is the most important carrot...like you say, possibly for the top 10%, but everyone else may be motivated in other ways.

After reading the Wikipedia article I'm honestly compelled to learn more about this man and his methods.

I think you may have just made me less dumb ;-)

bloblaw··on Crowdsource Your Company’s Bonuses
> These fears that in order to achieve high performance, we must reward the high performers with carrots and hit the slackers with sticks are a bastardized religious fiction.

The point is to incentivize everyone with the carrot, and forget about the stick. Getting a small bonus or no bonus is not a punishment because a "bonus" is precisely that....a bonus is the reward/carrot.

Not being rewarded with a bonus is not the same thing as being punished.

bloblaw··on Crowdsource Your Company’s Bonuses
> One year they did extremely well and decided to simplify and give everyone a straight $10,000 bonus, from the janitor to the CEO

So the guy that watches YouTube videos for 3 hours, and the guy that takes 2 hours worth of smoke breaks a day got the same as the gal that works 50 hours a week and fixes the majority of the product issues?

Contributions are not equal so please don't treat them that way or you will only disenfranchise your BEST employees.

And remember, your best employees are the ones that have the most options elsewhere....

bloblaw··on Crowdsource Your Company’s Bonuses
My point is that "Unicorn" is a reporting tool. It still takes peers (instead of just your manager, aka the "old way) to understand and accurately value your contribution.

My concern is that not all actions are equal, but the recognition seems to be.

My question is do I get more "points" for fixing the thread dispatcher in the kernel...or do I get just as many for helping you understand how to upload a file to Sharepoint?

That's where you can disenfranchise people. However, I like the idea and to me it is a good step in implementing 360 feedback as part of a review and bonus allocation.

IMHO, combine peer feedback as an equal component of bonus allocation along with management assessment and I think then you have a winner.

← PreviousPage 4 of 5Next →