博文

Cross site cookie explained

https://web.dev/samesite-cookies-explained/

LCS problem

public class LCS { public static String lcs(String a, String b ) { String lcs = lcs(a, b, "", 0, 0); return lcs; } private static String lcs(String a, String b, String lcs, int i , int j) { int length_a = a.length(); int length_b = b.length(); if (i == length_a || j == length_b) return lcs; if (a.charAt(i) == b.charAt(j)) { lcs += a.charAt(i); i++; j++; } else { String lcs_i_plus = lcs(a, b, lcs ,i+1, j); String lcs_j_plus = lcs(a, b , lcs ,i, j+1); if ( lcs_i_plus.length() > lcs_j_plus.length()) i++; else j++; } return lcs(a, b, lcs , i, j) ; } public static void main(String[] args) { //client String a = "GGCACCACG"; String b = "ACGGCGGATACG"; String lcs = lcs(a, b); StdOut.println(lcs); } }

React Resources

 https://atomizedobjects.com

React Performance Tunning

 https://blog.bitsrc.io/10-ways-to-optimize-your-react-apps-performance-e5e437c9abce https://blog.bitsrc.io/improve-performance-in-react-functional-components-using-react-memo-b2e80c11e15a https://www.codementor.io/blog/react-optimization-5wiwjnf9hj https://www.smashingmagazine.com/2020/07/methods-performance-react-apps/

CSS Animation, Transition

 https://cssanimation.rocks/transition-vs-animation/

React Testing Library

 https://www.smashingmagazine.com/2020/07/react-apps-testing-library/ https://www.robinwieruch.de/react-testing-library --------- https://www.robertcooper.me/testing-redux-apps https://www.robertcooper.me/testing-stateful-react-function-components-with-react-testing-library -------- https://kentcdodds.com/blog/fix-the-not-wrapped-in-act-warning https://kentcdodds.com/blog/stop-mocking-fetch