So I'm planning to make a web-based console-like thing. It's like, there will be buttons, and when a specific button was clicked, it will create a .txt file and write something in it. I wonder what language should I learn that can make a file and edit it like I said. Thanks!
所以我打算制作一个基于网络的控制台式的东西。就像,会有按钮,当点击一个特定的按钮时,它会创建一个.txt文件并在其中写入一些内容。我想知道我应该学习哪种语言可以制作文件并像我说的那样编辑它。谢谢!
//Edit:
Sorry if I kinda broke the rules. I'm really new here. And by the way, I forgot to tell that I already know a bit of HTML, CSS, and JS, so the UI will not be a problem, all I need is the language that can make and edit a file ( a .txt file to be specific )
对不起,如果我有点违反了规则。我真的很新。顺便说一下,我忘了说我已经知道了一些HTML,CSS和JS,所以UI不会成为问题,我只需要制作和编辑文件的语言(.txt文件)再具体一点 )
1 个解决方案
#1
It depends on a lot of parameters which you haven't given, and in fact probably don't even know yourself given what you were asking.
这取决于你没有给出的很多参数,实际上甚至可能根本不知道你问的是什么。
Before you even start with a programming language, you need to know HTML and CSS if you are making a website, as any website needs these and a programming language adds functionality which still needs the website structure and design itself.
在开始使用编程语言之前,如果您正在创建网站,则需要了解HTML和CSS,因为任何网站都需要这些,并且编程语言添加了仍需要网站结构和设计本身的功能。
HTML/CSS usually doesn't take too long to grasp the basics - depending on your current knowledge and learning abilities etc.
Many guides and tutorials out there for this.
HTML / CSS通常不需要太长时间来掌握基础知识 - 取决于您当前的知识和学习能力等。许多指南和教程为此。
Try to avoid "w3schools" for your learning reference. Stick to Stack Overflow and more well linked to guides from Stack Overflow.
There's a lot of bad advice out there and it's harder to unlearn something than it is to just learn best way from the outset.
尽量避免使用“w3schools”作为学习参考。坚持Stack Overflow并更好地链接Stack Overflow的指南。那里有很多不好的建议,而且从一开始就学习最好的方法就更难忘记了。
As for programming language.
There are many languages we could recommend, but as they (mostly) each have a specific scenario to be used in, and as you are asking "which language", then you obviously do not have a specific scenario.
至于编程语言。我们可以推荐许多语言,但由于它们(大多数)都有一个特定的场景要使用,而且当你问“哪种语言”时,你显然没有特定的场景。
As such, and these are arguable points, but given your current position/knowledge, I would suggest starting to learn PHP.
因此,这些都是有争议的观点,但考虑到你目前的职位/知识,我建议你开始学习PHP。
PHP is the most commonly used, and can be used with MySQL (database) quite easily. "Popular" doesn't make it the best, but given it's easy enough to learn, easy enough and free to setup a development area where you can learn and practice, and there are millions of PHP/MySQL guides, tutorials, samples, etc, it is probably the best choice for you.
PHP是最常用的,可以很容易地与MySQL(数据库)一起使用。 “流行”并不是最好的,但考虑到它很容易学习,很容易并且可以*地设置一个你可以学习和练习的开发区域,并且有数以百万计的PHP / MySQL指南,教程,样本等等。 ,它可能是你的最佳选择。
There are arguable points to what I just wrote, so please don't take it as concrete fact, it's just advice.
我刚写的内容有争议点,所以请不要把它作为具体事实,这只是建议。
You need to start by learning how to setup a PHP server so you can write PHP, and for that you will need Apache. You can read many guides and tutorials already out there for this, even good advice found on this site if you search.
您需要首先学习如何设置PHP服务器以便编写PHP,为此您将需要Apache。您可以阅读许多指南和教程,如果您搜索,甚至可以在本网站上找到很好的建议。
Once you can write PHP, learn the very basics, and don't progress until you are very familiar with it. Then once you know the basics, you should write a project/website which you do not care about and won't use (because it won't "likely" be good enough or secure enough to be made live).
Do things such as making it have a login and user area options, which will teach you security with PHP database code, and other things.
一旦你可以编写PHP,学习基础知识,并且在你非常熟悉它之前不要进步。然后,一旦你了解了基础知识,就应该编写一个你不关心并且不会使用的项目/网站(因为它不会“很可能”足够好或足够安全而无法实现)。做一些事情,比如让它有登录和用户区选项,这将教你使用PHP数据库代码和其他东西的安全性。
Then once you've done that, you can work on something which you might make live.
然后,一旦你完成了,你可以做一些你可能会生活的东西。
Just make sure you read enough about security, and best practices with whatever you are learning, and "separation of concerns". And do this from the start.
Otherwise you'll be down the road with a handful of code which is hard to work with and likely terrible/unsecure/etc.
只需确保您已经阅读了足够的安全性和最佳实践,无论您正在学习什么,以及“关注点分离”。从一开始就这样做。否则你将会遇到一些很难处理并且可能很糟糕/不安全等的代码。
You are at very beginner level, and you have a long way to go. If you want to succeed in this, and I cannot stress this enough, you will for the first weeks/months do 50 times more reading than you will writing or coding.
你处于初级阶段,你还有很长的路要走。如果你想在这方面取得成功,而且我不能强调这一点,那么你会在头几个月/几个月内完成50倍于你写作或编码的阅读。
You must read. Browse through HTML and CSS questions here on stack, and read basic guides "introduction to" are things you want to learn first.
Then once you can make basic HTML/CSS websites, then you need a programming language.
你必须阅读。在堆栈中浏览HTML和CSS问题,阅读基本指南“简介”是您首先要学习的内容。然后,一旦你可以制作基本的HTML / CSS网站,那么你需要一种编程语言。
Again, make sure it's a good guide or you'll just make things hard for yourself learning bad practices.
再次,确保它是一个很好的指南,或者你只是为自己学习不良做法而努力。
#1
It depends on a lot of parameters which you haven't given, and in fact probably don't even know yourself given what you were asking.
这取决于你没有给出的很多参数,实际上甚至可能根本不知道你问的是什么。
Before you even start with a programming language, you need to know HTML and CSS if you are making a website, as any website needs these and a programming language adds functionality which still needs the website structure and design itself.
在开始使用编程语言之前,如果您正在创建网站,则需要了解HTML和CSS,因为任何网站都需要这些,并且编程语言添加了仍需要网站结构和设计本身的功能。
HTML/CSS usually doesn't take too long to grasp the basics - depending on your current knowledge and learning abilities etc.
Many guides and tutorials out there for this.
HTML / CSS通常不需要太长时间来掌握基础知识 - 取决于您当前的知识和学习能力等。许多指南和教程为此。
Try to avoid "w3schools" for your learning reference. Stick to Stack Overflow and more well linked to guides from Stack Overflow.
There's a lot of bad advice out there and it's harder to unlearn something than it is to just learn best way from the outset.
尽量避免使用“w3schools”作为学习参考。坚持Stack Overflow并更好地链接Stack Overflow的指南。那里有很多不好的建议,而且从一开始就学习最好的方法就更难忘记了。
As for programming language.
There are many languages we could recommend, but as they (mostly) each have a specific scenario to be used in, and as you are asking "which language", then you obviously do not have a specific scenario.
至于编程语言。我们可以推荐许多语言,但由于它们(大多数)都有一个特定的场景要使用,而且当你问“哪种语言”时,你显然没有特定的场景。
As such, and these are arguable points, but given your current position/knowledge, I would suggest starting to learn PHP.
因此,这些都是有争议的观点,但考虑到你目前的职位/知识,我建议你开始学习PHP。
PHP is the most commonly used, and can be used with MySQL (database) quite easily. "Popular" doesn't make it the best, but given it's easy enough to learn, easy enough and free to setup a development area where you can learn and practice, and there are millions of PHP/MySQL guides, tutorials, samples, etc, it is probably the best choice for you.
PHP是最常用的,可以很容易地与MySQL(数据库)一起使用。 “流行”并不是最好的,但考虑到它很容易学习,很容易并且可以*地设置一个你可以学习和练习的开发区域,并且有数以百万计的PHP / MySQL指南,教程,样本等等。 ,它可能是你的最佳选择。
There are arguable points to what I just wrote, so please don't take it as concrete fact, it's just advice.
我刚写的内容有争议点,所以请不要把它作为具体事实,这只是建议。
You need to start by learning how to setup a PHP server so you can write PHP, and for that you will need Apache. You can read many guides and tutorials already out there for this, even good advice found on this site if you search.
您需要首先学习如何设置PHP服务器以便编写PHP,为此您将需要Apache。您可以阅读许多指南和教程,如果您搜索,甚至可以在本网站上找到很好的建议。
Once you can write PHP, learn the very basics, and don't progress until you are very familiar with it. Then once you know the basics, you should write a project/website which you do not care about and won't use (because it won't "likely" be good enough or secure enough to be made live).
Do things such as making it have a login and user area options, which will teach you security with PHP database code, and other things.
一旦你可以编写PHP,学习基础知识,并且在你非常熟悉它之前不要进步。然后,一旦你了解了基础知识,就应该编写一个你不关心并且不会使用的项目/网站(因为它不会“很可能”足够好或足够安全而无法实现)。做一些事情,比如让它有登录和用户区选项,这将教你使用PHP数据库代码和其他东西的安全性。
Then once you've done that, you can work on something which you might make live.
然后,一旦你完成了,你可以做一些你可能会生活的东西。
Just make sure you read enough about security, and best practices with whatever you are learning, and "separation of concerns". And do this from the start.
Otherwise you'll be down the road with a handful of code which is hard to work with and likely terrible/unsecure/etc.
只需确保您已经阅读了足够的安全性和最佳实践,无论您正在学习什么,以及“关注点分离”。从一开始就这样做。否则你将会遇到一些很难处理并且可能很糟糕/不安全等的代码。
You are at very beginner level, and you have a long way to go. If you want to succeed in this, and I cannot stress this enough, you will for the first weeks/months do 50 times more reading than you will writing or coding.
你处于初级阶段,你还有很长的路要走。如果你想在这方面取得成功,而且我不能强调这一点,那么你会在头几个月/几个月内完成50倍于你写作或编码的阅读。
You must read. Browse through HTML and CSS questions here on stack, and read basic guides "introduction to" are things you want to learn first.
Then once you can make basic HTML/CSS websites, then you need a programming language.
你必须阅读。在堆栈中浏览HTML和CSS问题,阅读基本指南“简介”是您首先要学习的内容。然后,一旦你可以制作基本的HTML / CSS网站,那么你需要一种编程语言。
Again, make sure it's a good guide or you'll just make things hard for yourself learning bad practices.
再次,确保它是一个很好的指南,或者你只是为自己学习不良做法而努力。