文章目錄
走向程式員的第一步:選擇前端還是后端? 選擇前端如何學習?
走向程式員的第一步:選擇前端還是后端?
或許是因為學完C語言或者其他語言之后不知道如何學習? 或許是想自己自學而又不知道如何選擇前端還是后端? 看完這篇文章希望對你有所識訓 !
對于我而言,建議先問問身邊的大佬,我就是問了@前端張三歲還有其他很多有經驗的人,也許他們會告訴你該怎么走,幫你避避坑,更有效的學習,當然了,聽到分享的干貨也不要對他們吝嗇哦 ! 還有很重要的一點,自己可以在各種網站搜搜前端如何入門自學這種字眼,如果還不知道自己選前端還是后端那更應該好好分析,看看各種視頻去了解什么是前端還是后端 我對于前端還有后端的理解,舉個很簡單的例子來說,就拿某東來說吧
比如我想買索尼a6400相機,當我們點照片時,它的右邊就會出現放大倍的圖片,這個就屬于前端; 而我們要看價格,版本,很顯眼的 7499.00 哈,這些都屬于后端;
用專業術語來說呢,前端又稱Web前端 ,是指計算機Web應用程式(網站)的前臺頁面,在我們打開一個網站所看到網頁界面的內容以及互動體驗,一般都是由前端工程師進行開發設計的頁面,該內容屬于前端部分; -后端 是指完成作業的部件,但用戶不知道或看不到,資料庫,服務等; 使用小程式開發者工具開發的這一部分代碼,是屬于前端部分,小程式開發是前后端分離的,前端獲取動態資料是通過后端的API進行請求; 如果你選擇的后端那下面就不用看了,因為我最后選擇的是前端,所以后端沒有特別的了解;
選擇前端如何學習?
學習路線流程圖
<style>#mermaid-svg-0gaNU4CPa4p4N1cq .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .label text{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .node rect,#mermaid-svg-0gaNU4CPa4p4N1cq .node circle,#mermaid-svg-0gaNU4CPa4p4N1cq .node ellipse,#mermaid-svg-0gaNU4CPa4p4N1cq .node polygon,#mermaid-svg-0gaNU4CPa4p4N1cq .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-0gaNU4CPa4p4N1cq .node .label{text-align:center;fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .node.clickable{cursor:pointer}#mermaid-svg-0gaNU4CPa4p4N1cq .arrowheadPath{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-0gaNU4CPa4p4N1cq .flowchart-link{stroke:#333;fill:none}#mermaid-svg-0gaNU4CPa4p4N1cq .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-0gaNU4CPa4p4N1cq .edgeLabel rect{opacity:0.9}#mermaid-svg-0gaNU4CPa4p4N1cq .edgeLabel span{color:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-0gaNU4CPa4p4N1cq .cluster text{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-0gaNU4CPa4p4N1cq .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-0gaNU4CPa4p4N1cq text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-0gaNU4CPa4p4N1cq .actor-line{stroke:grey}#mermaid-svg-0gaNU4CPa4p4N1cq .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-0gaNU4CPa4p4N1cq #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .sequenceNumber{fill:#fff}#mermaid-svg-0gaNU4CPa4p4N1cq #sequencenumber{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq #crosshead path{fill:#333;stroke:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .messageText{fill:#333;stroke:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-0gaNU4CPa4p4N1cq .labelText,#mermaid-svg-0gaNU4CPa4p4N1cq .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-0gaNU4CPa4p4N1cq .loopText,#mermaid-svg-0gaNU4CPa4p4N1cq .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-0gaNU4CPa4p4N1cq .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-0gaNU4CPa4p4N1cq .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-0gaNU4CPa4p4N1cq .noteText,#mermaid-svg-0gaNU4CPa4p4N1cq .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-0gaNU4CPa4p4N1cq .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-0gaNU4CPa4p4N1cq .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-0gaNU4CPa4p4N1cq .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-0gaNU4CPa4p4N1cq .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .section{stroke:none;opacity:0.2}#mermaid-svg-0gaNU4CPa4p4N1cq .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-0gaNU4CPa4p4N1cq .section2{fill:#fff400}#mermaid-svg-0gaNU4CPa4p4N1cq .section1,#mermaid-svg-0gaNU4CPa4p4N1cq .section3{fill:#fff;opacity:0.2}#mermaid-svg-0gaNU4CPa4p4N1cq .sectionTitle0{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .sectionTitle1{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .sectionTitle2{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .sectionTitle3{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-0gaNU4CPa4p4N1cq .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .grid path{stroke-width:0}#mermaid-svg-0gaNU4CPa4p4N1cq .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-0gaNU4CPa4p4N1cq .task{stroke-width:2}#mermaid-svg-0gaNU4CPa4p4N1cq .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .taskText:not([font-size]){font-size:11px}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-0gaNU4CPa4p4N1cq .task.clickable{cursor:pointer}#mermaid-svg-0gaNU4CPa4p4N1cq .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-0gaNU4CPa4p4N1cq .taskText0,#mermaid-svg-0gaNU4CPa4p4N1cq .taskText1,#mermaid-svg-0gaNU4CPa4p4N1cq .taskText2,#mermaid-svg-0gaNU4CPa4p4N1cq .taskText3{fill:#fff}#mermaid-svg-0gaNU4CPa4p4N1cq .task0,#mermaid-svg-0gaNU4CPa4p4N1cq .task1,#mermaid-svg-0gaNU4CPa4p4N1cq .task2,#mermaid-svg-0gaNU4CPa4p4N1cq .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutside0,#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutside2{fill:#000}#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutside1,#mermaid-svg-0gaNU4CPa4p4N1cq .taskTextOutside3{fill:#000}#mermaid-svg-0gaNU4CPa4p4N1cq .active0,#mermaid-svg-0gaNU4CPa4p4N1cq .active1,#mermaid-svg-0gaNU4CPa4p4N1cq .active2,#mermaid-svg-0gaNU4CPa4p4N1cq .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-0gaNU4CPa4p4N1cq .activeText0,#mermaid-svg-0gaNU4CPa4p4N1cq .activeText1,#mermaid-svg-0gaNU4CPa4p4N1cq .activeText2,#mermaid-svg-0gaNU4CPa4p4N1cq .activeText3{fill:#000 !important}#mermaid-svg-0gaNU4CPa4p4N1cq .done0,#mermaid-svg-0gaNU4CPa4p4N1cq .done1,#mermaid-svg-0gaNU4CPa4p4N1cq .done2,#mermaid-svg-0gaNU4CPa4p4N1cq .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-0gaNU4CPa4p4N1cq .doneText0,#mermaid-svg-0gaNU4CPa4p4N1cq .doneText1,#mermaid-svg-0gaNU4CPa4p4N1cq .doneText2,#mermaid-svg-0gaNU4CPa4p4N1cq .doneText3{fill:#000 !important}#mermaid-svg-0gaNU4CPa4p4N1cq .crit0,#mermaid-svg-0gaNU4CPa4p4N1cq .crit1,#mermaid-svg-0gaNU4CPa4p4N1cq .crit2,#mermaid-svg-0gaNU4CPa4p4N1cq .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-0gaNU4CPa4p4N1cq .activeCrit0,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCrit1,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCrit2,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-0gaNU4CPa4p4N1cq .doneCrit0,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCrit1,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCrit2,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-0gaNU4CPa4p4N1cq .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-0gaNU4CPa4p4N1cq .milestoneText{font-style:italic}#mermaid-svg-0gaNU4CPa4p4N1cq .doneCritText0,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCritText1,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCritText2,#mermaid-svg-0gaNU4CPa4p4N1cq .doneCritText3{fill:#000 !important}#mermaid-svg-0gaNU4CPa4p4N1cq .activeCritText0,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCritText1,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCritText2,#mermaid-svg-0gaNU4CPa4p4N1cq .activeCritText3{fill:#000 !important}#mermaid-svg-0gaNU4CPa4p4N1cq .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-0gaNU4CPa4p4N1cq g.classGroup text .title{font-weight:bolder}#mermaid-svg-0gaNU4CPa4p4N1cq g.clickable{cursor:pointer}#mermaid-svg-0gaNU4CPa4p4N1cq g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-0gaNU4CPa4p4N1cq g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-0gaNU4CPa4p4N1cq .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-0gaNU4CPa4p4N1cq .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-0gaNU4CPa4p4N1cq .dashed-line{stroke-dasharray:3}#mermaid-svg-0gaNU4CPa4p4N1cq #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq .commit-id,#mermaid-svg-0gaNU4CPa4p4N1cq .commit-msg,#mermaid-svg-0gaNU4CPa4p4N1cq .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-0gaNU4CPa4p4N1cq g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-0gaNU4CPa4p4N1cq g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-0gaNU4CPa4p4N1cq g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-0gaNU4CPa4p4N1cq .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-0gaNU4CPa4p4N1cq .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-0gaNU4CPa4p4N1cq .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-0gaNU4CPa4p4N1cq .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-0gaNU4CPa4p4N1cq .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-0gaNU4CPa4p4N1cq .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-0gaNU4CPa4p4N1cq .edgeLabel text{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-0gaNU4CPa4p4N1cq .node circle.state-start{fill:black;stroke:black}#mermaid-svg-0gaNU4CPa4p4N1cq .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-0gaNU4CPa4p4N1cq #statediagram-barbEnd{fill:#9370db}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-state .divider{stroke:#9370db}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-0gaNU4CPa4p4N1cq .note-edge{stroke-dasharray:5}#mermaid-svg-0gaNU4CPa4p4N1cq .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-0gaNU4CPa4p4N1cq .error-icon{fill:#522}#mermaid-svg-0gaNU4CPa4p4N1cq .error-text{fill:#522;stroke:#522}#mermaid-svg-0gaNU4CPa4p4N1cq .edge-thickness-normal{stroke-width:2px}#mermaid-svg-0gaNU4CPa4p4N1cq .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-0gaNU4CPa4p4N1cq .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-0gaNU4CPa4p4N1cq .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-0gaNU4CPa4p4N1cq .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-0gaNU4CPa4p4N1cq .marker{fill:#333}#mermaid-svg-0gaNU4CPa4p4N1cq .marker.cross{stroke:#333}
:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}</style>
<style>#mermaid-svg-0gaNU4CPa4p4N1cq {
color: rgba(0, 0, 0, 0.75);
font: ;
}</style>
Web前端
HTML
CSS
JavaScript
框架&庫
Git
SASS
Typescript
這是我總結的前端自學線路
本章重點在于如何自學前端程式員包括學習路線;到底是選前端還是后端?等等一系列; 接下來的文章將注重于逐步總結各個的重點
詳細介紹學習路線
首先,要學習HTML,CSS,JavaScript 這三種,它們的作用分別是: HTML是制作網頁,CSS是美化頁面,JavaScript是為網頁提供功能;
其次,了解框架&庫 :
包含三種,REACT,ANGULAR,VUE,這三種語言構建了制作的網頁的框架和庫;
最后就是依次學習Git,SASS,Typescript;
可以參考本章的