Ed Avis

Results 29 issues of Ed Avis

Beginner Perl programmers may write something like `say "Hello ${name}";` The `{}` are not necessary but they vaguely recall variable interpolation syntax in various other languages, or indeed in Perl...

Suggested policy

Inexperienced Perl programmers may write something like ``` foreach (@things) { my $thing = $_; do_something($thing); } ``` Perlcritic could suggest using `$thing` as the iterator variable instead. (Let's say...

Suggested policy

`less` detects when it's running on a dumb terminal and prints a warning "terminal is not fully functional". That warning can be suppressed with the `-d` flag. I would like...

ValuesAndExpressions::ProhibitLeadingZeros has various exceptions where giving an octal value as 0644 or similar is the normal idiom. They are summarized at the top of its documentation. One more case that...

Enhancement

When the regexp passed to ack matches the empty string, this is much more likely to be a mistake than intentional. Rather than print the complete contents of every file,...

feature

Ack doesn't have options called `--exclude` or `--exclude-dir` or `--exclude-type` or whatever. That's fine. But maybe if the user specifies those by mistake it can print a tailored help message?...

I understand that pyodbc uses a connection string looking like `DRIVER={ODBC Driver 18 for SQL Server};SERVER=myserver;DATABASE=mydb;UID=scott;PWD=tiger` But sqlalchemy has popularized its own URI scheme for database connections, something like `mssql+pyodbc://scott:tiger@myserver/mydb?driver=ODBC+Driver+18+for+SQL+Server`...

If a table has check constraints defined, then an ordinary bcp into it will not work unless you have `alter table` permission. You need to pass the `check_constraints` hint, which...

In the documentation you helpfully give an efficient way to decompress an array of bytes. ``` var decoded = LZ4Frame.Decode(encoded.AsSpan(), new ArrayBufferWriter()).WrittenMemory.ToArray(); ``` It would be handy to provide this...

enhancement