What are some of the most basic things every programmer should know?

2024-04-20 09:38

本文主要是介绍What are some of the most basic things every programmer should know?,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

There are some fundamental ideas that if you learn, you’ll be a much better programmer:
* Learn underlying systems. Have you been stuck on a bug for the past couple hours? Chances are, you don’t understand what’s happening under the hood. For instance, a lot of beginners forget that the limitation of int is +-2147483647 and then wonder why it flips to negative after a while. Those kind of things you have to study, otherwise you will remain oblivious to many ideas involving performance.
* Know command line tools. Most of the time you will spend your time working with an IDE, but there are a lot of the times a simple command can save you a lot of time. Tools like find, diff, vi/vm, sed, awk, can be tremendously helpful. Like when you need to find a file that needs to change right fucking now because production is broken and Joe fat fingered a URL, so now the file is located in a folder named “Fiji.”
* Learn to write tests. A lot of people, including me, fudged on this for a long time. “I don’t need to write tests, I’m awesome. What would I use that for?” Don’t be like me. If you write tests before you begin developing, you will save a ton of time. The reason being, you know exactly what you need to create to solve the unit test. There’s no losing your train of thought on what exactly you need to do; you already have it written out.
* Play well with others. The stereotypical hacker dude in his basement coding some scripts is all too common. If you want to actually make money though, chances are you will be working with a team of people. Frequently, programmers are not the most social people, so if you can stand out in terms of social ability, you’ll be set to possibly become a consultant or get another high paying job.

这篇关于What are some of the most basic things every programmer should know?的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/919904

相关文章

HTB-You know 0xDiablos

引言 项目概述:HTB的EASY难度 PWN靶机 You know 0xDiablos https://app.hackthebox.com/challenges/106 本文详细解释了溢出payload的结构以及为什么要这样构造,友好的为想要入手PWN的朋友解释了原理技术点涉及: 32位linux逆向、32位程序调用、栈溢出目标与读者:网络安全兴趣爱好者、PWN新手 基本情况 运行看看

【POJ 2970】The lazy programmer(优先队列+贪心)

这题范围不会超long long全用int存就行了 贪心的话,每次把一个任务加入到队列,如果不能在指定时间完成就到前面找a最小的一个任务补偿时间,当一个任务完成时间等于0的时候这个任务就不再放回队列 #include<cstdio>#include<queue>#include<algorithm>#include<cstring>using namespace std;//ty

查看Excel 中的 Visual Basic 代码,要先设置excel选项

1. excel VB的简单介绍 百度安全验证 2.excel选项设置 excel表格中在选项->自定义功能区域,选择开发工具,visual baisc/查看代码,即可看到代码。 3.excel已经设置,可以直接查看

Basic Calculator 总结

Basic Calculator 思路:stack中间存数,遇见+,-都当符号位,push num或者-num进去;最后相加;重要的是如何处理括号,那么这里一种方法是用递归调用;count左右括号,如果为0,那么就是一个反括号的位置了,那么 //(      ) //j......i; substring(j + 1, i); 这题的通用解法,可以扩展到二三题; class Solutio

做克隆虚拟机的basic

新建一台虚拟机(之前写的有这一步) 虚拟机里操作 vi /etc/hostname    改称basic (可改可不改)  vi /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=staticDEFROUTE=yesIPV4_FAILU

【Http认证方式】——Basic认证

今天在访问请求:http://192.168.2.113:8080/geoserver/rest/workspaces时,浏览器弹出窗口需要输入用户名和密码 ,并且,如果不输入或者输入错误,浏览器返回 可以在火狐浏览器的网络监控这里看到请求的详细信息,

行业Know How在AI提示词中的重要性

现在AI这玩意儿可是火得不得了,ChatGPT、Claude这些大语言模型简直是让人眼花缭乱。可是呢,你要是不会用,那就跟给猴子一部iPhone有啥区别? 咱得明白,这AI不是神仙,它也是需要"调教"的。 你给它的提示词就像是给小孩子布置作业,说得不清不楚,它可能就给你整出些稀奇古怪的东西来。所以啊,行业know-how就像是一个经验丰富的家长,知道怎么跟孩子沟通,怎么布置作业才能让孩子

微积分复习笔记 Calculus Volume 1 - 1.2 Basic Classes of Functions

1.2 Basic Classes of Functions - Calculus Volume 1 | OpenStax

【Material-UI】Select 组件中的 Basic Select 使用详解

文章目录 一、Basic Select 概述1. 介绍2. Basic Select 的特点 二、Basic Select 组件的基本用法3. 代码详解 三、Basic Select 组件的常见用法1. 设置默认值2. 响应用户操作3. 自定义菜单项 四、Basic Select 组件的布局与样式1. 使用 `sx` 属性自定义样式2. 控制组件的宽度3. 菜单的位置控制 五、Basic S

正则表达式:Visual Basic中的强大文本处理工具

正则表达式:Visual Basic中的强大文本处理工具 在软件开发中,文本处理是一项常见且关键的任务。正则表达式作为一种强大的文本模式匹配工具,能够用于执行各种复杂的字符串搜索、替换、验证等操作。Visual Basic(VB),作为一门流行的编程语言,提供了对正则表达式的支持。本文将详细介绍如何在Visual Basic中使用正则表达式,包括其基本概念、功能特点以及实际应用示例。 一、正则