Misuse of Java8 Optional
The intent of Java when releasing Optional was to use it as a return type The practice of using Optional as a method parameter is even discouraged by some code inspectors. public static List<...
The intent of Java when releasing Optional was to use it as a return type The practice of using Optional as a method parameter is even discouraged by some code inspectors. public static List<...
Function argument list (myFunction(a, ...iterableObj, b)) Array literals ([1, ...iterableObj, '4', 'five', 6]) Object literals ({...obj, key: 'value'}) Replace apply() function myFunction(x, ...
Columns build on the grid’s flexbox architecture. Flexbox means we have options for changing individual columns and modifying groups of columns at the row level. You choose how columns grow, shrink...
List all rules sudo ufw status numbered Remove Rule sudo ufw delete [the number of the rule] Allow all from some port sudo ufw allow [the port]
Don’t Start With “Web” Choose Java Then Command + ; into Project Structure in the left panel, choose Modules Press + to add Web Press 「Create Artifact」to fix
It’s just not like NetBeans! You Can’t hot swap when save file! Artifacts choose Web Application: Exploded Server configuration: [On ‘Update’ action:] choose Update classes and resources man...
Install plugin: File Watchers 裝好了才會在 Setting -> Tools 裡面看到 File Watchers 直接按 Command + N 新增(新版的 IDEA 沒有看到對應的 template) 重點是 Argument: $FileDir$/$FileName$:$FileDir$/...
package.json "start": "PORT=3006 react-scripts start" or "start": "export PORT=3006 && react-scripts start"
npm list “The npm list command outputs installed packages and their dependencies of the current project as a tree-structure to the stdout”
Artifacts choose Type: Web Application: Exploded double click on Available Elements: Web facet resours