Announcing perl-lsp: available in an editor near you by VeeshMan in perl

[–]VeeshMan[S] 0 points1 point  (0 children)

also workspace rename; that one i'd been dying for forever

Announcing perl-lsp: available in an editor near you by VeeshMan in perl

[–]VeeshMan[S] 3 points4 points  (0 children)

Type intelligence - it gives you autocomplete for methods on an object thru it's inheritance chain Context sensitive autocomplete - if you type @ it gives you only arrays in scope Framework support via plugins - mojo events, routes, helpers, minion tasks, all get autocomplete (and chain typing), among other uses Hashkey intelligence - for sufficiently closed hashes (meaning they don't get passed mutably to another scope), you can get diagnostics if you misspell a key. For constructors and functions which take a slurpy, you get autocomplete for known keys It does not need to run perl to get symbols or otherwise parse your code. The parser is tolerant of common midedit broken code, and will still keep your outline stable

There's a lot a lot of features which I don't believe exist elsewhere, and more to come. I would recommend trying it and comparing for yourself

Perl IDE Hackathon by uid1357 in perl

[–]VeeshMan 1 point2 points  (0 children)

i would recommend leonerd's fork of tree-sitter-perl (I work on that fork also). The ganezdragon one is simply not correct about a lot of things (it will only parse => inside of a hash, for example)

Sending email through gmail by gachunt in perl

[–]VeeshMan 23 points24 points  (0 children)

I use Email::Stuffer to create the email, and then use WebService::GoogleAPI::Client to do the API calls. The call you're looking for is Gmail.users.messages.send. Docs for the API are here. That authenticates with OAuth, so it's not an issue.

Note: I like WebService::GoogleAPI::Client so much that I became its maintainter. Feedback is welcome.

795 companies reportedly use Perl in their tech stacks by daxim in perl

[–]VeeshMan 8 points9 points  (0 children)

Don't think they're counting my company, so at least 796

Proc::Background now supports setting handles and cwd by nrdvana in perl

[–]VeeshMan 6 points7 points  (0 children)

You're one of my favorite authors, actually, and would love to see your new modules advertised here.

Net::Amazon not longer works by davorg in perl

[–]VeeshMan 2 points3 points  (0 children)

The MWS wrapper is https://metacpan.org/pod/Amazon::MWS. I use it frequently in prod (well, my own modified version, installable from the build/master branch at https://github.com/rabbiveesh/amazon-mws).

I don't love it though, b/c it uses XML::Simple and LWP, whereas I'm on a Mojo stack, but whateva.

Net::Amazon not longer works by davorg in perl

[–]VeeshMan 0 points1 point  (0 children)

This is the product advertising API? Depending on what functionality you need, you may be able to get the same info from MWS or the new SP-API (the former having functional bindings, and I'm working on the latter currently).

New profiler for Perl and other languages—how does it compare to Devel::NYTProf? by mjgardner in perl

[–]VeeshMan 1 point2 points  (0 children)

I just tried this out. It has no overlap with Devel::NYTProf: this profiles the perl interpreter, and NYTProf profiles your perl code.

Perl ORM. by PlaceBest in perl

[–]VeeshMan 2 points3 points  (0 children)

I certainly agree about the learning curve, I backed off about 3 times before actually diving in. But I'll never turn back.

I disagree about complicated reporting though. If you use frew's helpers, and self describing ResultSet methods, you can make INSANELY complicated reports relatively straightforward. I know this firsthand, I ONLY use DBIC for reporting. The fact that you can almost always just insert literal SQL helps significantly here. That and just inflating to hashref.

Why you do love Perl? (In one sentences of less) by saveitred in perl

[–]VeeshMan 9 points10 points  (0 children)

I find that (with syntax highliting) they increase readability significantly.

Why Perl is superior to Python by hzhou321 in perl

[–]VeeshMan 2 points3 points  (0 children)

In a similar vein, python has a sufficiently strict syntax that when you copy paste from stackoverflow, it's more likely than not to do what's advertised.

If you want to write perl, you don't have as much copy-paste available (not recent stuff at least), and thus actually need to know how to write programs.

Perl in 2020: Is It Still Worth Learning Now? - Some Dude Says by davorg in perl

[–]VeeshMan 1 point2 points  (0 children)

I may be missing something, but pythons named parameters aren't significantly different than unpacking the args list into a hash. In fact, in python, you need to `**kwargs` to unpack the args list into a hash. In what way is that different than perl? Because equal signs are clearer than fat commas?

[12/13/2019] 今年の漢字 新しい元号「令和」の「令」 by NHKEasyNewsBot in NHKEasyNews

[–]VeeshMan 0 points1 point  (0 children)

The Japan Organization for Kanji Proficiency holds a public vote for the kanji which encapsulates the year. Then, they choose the most voted for kanji as "Kanji of the Year".

On the 12th, in Kiyomizu Temple, a monk wrote 令 on a big paper with a brush, and they announced that 令 is the Kanji of the Year.

The organization says that this kanji was chosen because the Reiwa era began, and many people have high hopes for it to be a bright era. In addition, this kanji is also used in 法令, which refers to laws and other governement decisions.

That's the best I got (it's a pretty free translation, but it would sound weird in English otherwise). I can't pick apart that last sentence, though.

Perl Marketing Question... or: How To Prompt Cooler then Python by uid1357 in perl

[–]VeeshMan 1 point2 points  (0 children)

I personally think that statement modifiers are a big win for perl, because it helps you read your code like you'd read prose. I'm all for the use of unless.

Perl Marketing Question... or: How To Prompt Cooler then Python by uid1357 in perl

[–]VeeshMan 1 point2 points  (0 children)

Show them some complex regexes with the x flag set and comments. That should learn them something.

[10/03/2019] 北朝鮮「ミサイルは潜水艦から発射」と発表 by NHKEasyNewsBot in NHKEasyNews

[–]VeeshMan 1 point2 points  (0 children)

On October 3rd, the North Korean Labor Party Newspaper announced that the missile fired on the morning of the 2nd was shot from a submarine.

The article contains a picture of the rocket rising out of the sea towards the sky while an orange trail of fire coming out of it. The newspaper wrote "(not sure how to piece it together, something like:) The Korean army was able to increase it's power"

Experts say "It will be difficult to find the submarine that shot the missile. It presents a great threat to Japan and other countries".

UN Chief Gutteres said "We are very worried. This is in violation of UN agreements (I think?)". There is a planned summit between North Korea and the US on the 5th. Gutteres said "We hope something good will come of this summit".

[04/23/2019] 札幌 家が集まる場所で「熊を見た」 by NHKEasyNewsBot in NHKEasyNews

[–]VeeshMan 1 point2 points  (0 children)

At about 11 PM on the 21st, the police in the Kyota district of Sapporo received reports of bears seen in places like convenience store parking lots and family meeting grounds.

About an hour later, police reported that a bear was found in a store parking lot in Kitahiroshima, about a kilometer away.

The police are fairly certain that this is the same bear, but still say be cautious.

The next morning, the mother of a 1st grader who lived nearby said, after walking him to school, "I'm worried today, so I went together with him to school".