当前位置:网站首页>What code did the full stack programmer write this month?
What code did the full stack programmer write this month?
2022-06-24 11:16:00 【Programmer fish skin】
Guess how many lines ? What languages have you written ?
Hello everyone , I'm fish skin .
How time flies , It's the end of the month again . For programmers , Summary is still very important , I have always kept a habit , At the end of each month, you should check your code statistics for this month , For example, how many lines of code are written 、 What language code has been written 、 What's the percentage, etc .
Now let's take a look ~
No fishing this month
First , I certainly don't do the code statistics myself , It is impossible to count lines of code 、 Then go to the classification ! therefore , I usually look directly at the code submission report provided by the company , According to your monthly code git Submission number , Automatic statistics generation .
For example, the following code submits a language pie chart :
From the pie chart , You can see that I wrote this month 23.58 % Of Java、 Yes 30 % Left and right front ends (TypeScript + JavaScript + CSS)、 Yes 12.67 % Of Markdown、 also 30 % About other languages .
wait ,Others It's something else I can understand , This UNKNOWN What the hell is it ?! I think it's systematic Bug Come on, ha ha .
Are you curious about what other languages have ?
Let me give you some examples , such as Java And some configuration and data exchange files of the front-end project , such as xml、yaml、yml、properties、conf、 json、proto etc. . There are also some script files , image bash Script 、bat Script 、SQL Script etc. . There are also some engineering documents , such as gradle project management , And automatically build the jenkinsfile etc. .
Before, some friends questioned that my work was not the whole stack ( Do everything ), This time I can believe it !
however , It's not that only full stack engineers have to write all kinds of languages . To do a complete project , It is impossible to confine yourself to a programming language , Related technology stacks are like the configuration files mentioned above 、 Data exchange file 、 Script 、 Engineering documents, etc , In fact, every programmer should be familiar with or understand . That's the only way , You can be an engineer , Instead of relying on copy and paste to survive .
Oh, yes. , It seems that most of my code now depends on copy and paste , I put my face here and set off firecrackers ?
This month I wrote a new 1.58 Wan line code , Average daily 500 That's ok , Not a lot . But this will only count the code you finally submitted , That is, after I optimized , So it is estimated that nearly a thousand lines of code will be written every day .
however , It doesn't make much sense to focus on the number of lines of code , Just look good and you're done , It also reflects that I didn't fish very much !
What is the meaning ?
What's the point of looking at your own code statistics ? There are at least three things for me :
1. replay
First , Help me review my work and efficiency this month .
In fact, in the past six months , Most of the time I'm doing research 、 Technology selection and scenario analysis , In addition to writing a lot of code this month , I seldom write code at other times . therefore , When I realized I was writing less code , I would like to spend more time on my own projects after work , Write more code , Don't let yourself be unfamiliar .
There is more code written this month , I will also warn myself not to just indulge in writing code , Become a tool for the project and the boss . I will make myself pay more attention to things outside the code later , For example, business scenarios ; I will also think about whether it really makes sense to write so much code to implement this requirement , Could you change the way .
In addition, I don't know if you pay attention to ,Markdown Document languages account for a percentage of my code this month 12 % about , It also means that I have written a lot of documents recently , Writing more documents is very helpful for the project !
2. future
By analyzing code statistics , Can determine my future focus on learning direction , For example, one month I was working on one Java Implemented projects , Yes 80 % Of Java Code , Then I'll naturally focus on Java On , Take a deep look after work Java Things that are .
3. Fulfillment
Don't underestimate that , Reviewing the amount of code you write can really help you gain a sense of accomplishment , It's like a monster upgrade , See how many monsters you brushed last month 、 How many pieces of equipment have you exploded , This month will be more motivated to rush !
Of course , Writing more code is not necessarily a good thing , Some programmers are crafty , To round up the number of lines , A special line of code is followed by a blank line , The functions written in one line of code are divided into ten lines ! No need, no need .
How to count ?
See here , There must be some students who want to count the number of lines of code they write , Here are a few ways .
1. GitHub
If you use GitHub To manage your code , Can enter the insights panel , You can see the number of submissions in the specified period 、 Number of file modifications 、 Number of code additions and deletions .
2. Editor plugin
Many editors are like WebStorm、IDEA、VSCode etc. , Both provide code line statistics plug-ins , such as JetBrains All in one bucket Statistic plug-in unit .
After installation , You can see the number of lines in each language in the code 、 Percentage and other information .
3. Tools
There are also some off the shelf code statistics tools , such as cloc . Use... On the command line , You can directly analyze local or GitHub Code package on . Support the statistics of code blank lines by language 、 Comment row 、 Number of natural lines, etc , You can also analyze the specified submissions separately .
4. Hard core command
If your git The command is very smooth , You can also write commands directly to count the code , You don't need any tools at all !
But you can tell by the dog's order , This approach is too hard core :
git log --author="_your_name_" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -5. Software
There are also some ready-made statistical development software , such as WakaTime, You can flexibly configure your own development indicator kanban , Record your own code work .
Okay , That's what we're sharing , Originality is not easy. , If you think the article is good , hope give the thumbs-up Under the support , Give me some creative motivation .
I'm still developing my Programming navigation ( https://www.code-nav.cn ), A project to help you find programming resources , Welcome to use !
How did I teach myself in college , Get Tencent 、 Byte and other big factories offer Of , You can read this article , No more confusion !
I studied computer for four years , Mutual encouragement !( https://t.1yb.co/q0mS )
边栏推荐
猜你喜欢

喜歡就去行動

Rising bubble canvas breaking animation JS special effect

@Requestbody annotation

Shape change loader loads jsjs special effect code

Plant growth H5 animation JS special effect

Group counting_ Structure and workflow of CPU

喜欢就去行动

MYSQL_精讲数据库数据类型

SQL Server about like operator (including the problem of field data automatically filling in spaces)

MYSQL_ Elaborate on database data types
随机推荐
如何开发短信通知和语音功能医院信息系统(HIS系统)
Window function row in SQL Server_ number()rank()dense_ rank()
Oxylabs live online: website capture demo
【毕业季·进击的技术er】绕树三匝,何枝可依?
"Write once, run at all ends", Qualcomm released AI software stack!
Istio best practice: graceful termination
Clickhouse deployment and basic usage 1
How to use data analysis tools to deal with emergencies in retail industry
脚本之美│VBS 入门交互实战
math_等比数列求和推导&等幂和差推导/两个n次方数之差/
A method of generating non repeated numbers in nodejs
Self service troubleshooting guide for redis connection login problems
Functions of document management what functions does the document management software have
初识string+简单用法(一)
Using the collaboration database query of Poole in laravel5.6
Which is a good CAD drawing software? How to select good software
System design: key features of distributed systems
Group counting_ Structure and workflow of CPU
Fais ce que tu veux.
[net action!] Cos data escort helps SMEs avoid content security risks!