@Blue I think all passwords an 2FA is case insensitive and has severe restrictions on length and character set. I'm a bit reluctant to test it on my real account, though.
good ol' times. now when I look into my old code I always want to close it asap. so much repeating code, bad practices, no comments and everything in one file...
@Blue OK, found it: Passwords are 6 - 15 characters, contain at least 3 letters and 1 number and have no special characters, spaces, punctuation or symbols. and are case-insensitive.
I once saw a Reddit post where a secure HTTPS website used GET in their login forms... Weird that Google didn't made a warning on passwords in GET forms...
@DJMcMayhem doesn't +"23"" itself say to interpret it as a number? If + functions both as math op and string concat (which is insane), then I would never make it NaN. It could either be 23 or an exception, with my preference of the first one
@NathanMerrill Well, APL embraces the ambivalence of symbols, so that most symbols can be used monadically or dyadically. Monadic - negates everything. + negates the imaginary part, i.e. it is complex conjugate.
@Soaku It is. There's an implicit Write-Output that happens at the end of every execution, so you get it written back to STDOUT as a string. If I encapsulated it into a variable, it'd be of type String or Int32, as is the case.
@NathanMerrill It isn't so much emphasis on brevity as much as on expressiveness and mnemonics. It is intended to be an alternative to conventional mathematical notation.
@HyperNeutrino Yeah, if I were designing a non-golflang, I'd have strict type casting and error handling. Production PowerShell can get confusing when it tries to be super helpful on-the-fly by casting something to a String that you weren't expecting.
Word Search on a Torus
string grid filter code-golf
The Challenge
Given a list of words and a grid of letters, your job is to determine which of the given words can be found on the grid in all 8 directions, much like a word search. The grid is toroidal, so the grid wraps around on the edges....
anyways, it has happened. It's also a feature that doesn't come by default, depending on your parser. You generally have to explicitly say that statements can be empty
A lot of his points seem to be ranting for the sake of ranting. Someone with 25+ years of experience, as he self-described, that doesn't remember the difference between ++x and x++ without consulting reference documentation doesn't have any right to complain about language "features."
@NathanMerrill I don't see how it is problematic at all except if the language allows omitting the endif/endfor/endwhatever and thereby makes the structure only apply to a single statement. Now that's crazy (IMHO).
@DJMcMayhem Do you never put multiple statements on a single line?
I am writing a hello world program in Python3 (a program whose only task is to print "Hello World") Now
print("Hello World!")
Isn't very "Extensible" or "Dynamic". The best I can come up with in this regard is
def generateFunction(functionImputs,functionOutputs):
def generatedFunction(*...
@NathanMerrill Yeah, but also because APL is so concise, sometimes it is just a waste of screen real estate to have so many short lines. E.g. I'd initialise some variables on the same line:
@Pavel I don't understand. Classes and instances (and all other objects) are simple scalars, and all the array rules apply to them as to any number of character.
public class Foo {
int A, B;
public Foo(int a, int b) {
A = a; B = b;
}
public void Deconstruct(out int a, out int b) {
a = A;
b = B;
}
}
var (a, b) = new Foo(12, 42);
// a is now 12 and b is now 42
About key/value pairs, PHP made it in the most readable way I've seen yet. foreach ($array as $value), but since you define arrays as ["key" => "value"], key/value foreach is done via foreach($array as $key => $value)
Note: Unlike in C, the order the fields are declared in doesn't actually determine in which order they are in the compiled struct. When interoping with C, you have to manually specify struct layour paramters to order them correctly.
You can use the "manually specify struct layout" trick to create union types in C#, which lets you do some intresting things but mostly create some really fascinating bugs.
@NathanMerrill Although, in C# 8, you would do public extension class NameOfClassYouAreExtending { ... }
In Elixir, (linked) lists are in the format [head | tail] where head can be anything and tail is a list of the rest of the list.
Lists can also be written like [1, 2, 3] which is equivalent to [1 | [2 | [3 | []]]]
Your task is to convert a list as described. The input will always be a valid lis...