regex suffers from the same problem that inlined code does.
For example, if you saw this in a code review, what would you say:
log_and_return(rank_by_time(compute_recommendations(get_data(client_id,date), find_nearest_neighbors(client_id))))
You'd tell them to create some intermediate variables. But when it's a regex, apparently we're all fine with this:
For example, if you saw this in a code review, what would you say: log_and_return(rank_by_time(compute_recommendations(get_data(client_id,date), find_nearest_neighbors(client_id))))
You'd tell them to create some intermediate variables. But when it's a regex, apparently we're all fine with this:
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_])?\??(?:[-\+=&;%@.\w_])#?(?:[\w]*))?)/