django构建网页

    科技2022-08-01  132

    django构建网页

    This post was originally published on Codementor’s blog

    该帖子最初发布在 Codementor的博客上

    “I’m not looking to be a programmer. I just want to build State of K, but at this point, I’ve probably already learned every topic in Django.”

    “我不希望成为一名程序员。 我只想建立K状态,但到现在为止,我可能已经学习了Django中的每个主题。”

    Ingram, a full-time lawyer and creator of State of K, the Q-and-A website where users can answer their own questions based on academic studies, started his programming journey with a very clear goal and a very vague idea of how.

    英格拉姆(Ingram)是一名专职律师,并创建了K - State of Q-and-A网站,用户可以在此基础上根据学术研究回答自己的问题,他的编程之旅以一个非常明确的目标和一个模糊的想法开始。

    “For many years, I had the idea of a site that I wanted to exist,” Ingram explained, “There are certain types of questions — empirical questions — where the best available answer comes from published studies, rather than someone’s opinion. But there are too many obstacles to understanding what those studies say. I wanted to solve that problem.”

    英格拉姆(Ingram)解释说:“多年来,我一直想建立一个自己的网站,这存在某些类型的问题-经验性问题-最佳的答案来自已发表的研究,而不是某人的观点。 但是,理解这些研究所说的内容有太多障碍。 我想解决这个问题。”

    Under normal circumstances, someone with barely any programming knowledge would choose to hire an expert developer to build their product. “I would liken it to a work of art,” Ingram explained, “You can’t commission an artist if you don’t know yet what you want the drawing to look like.” He went on to share that, as he didn’t have a clear image of how the question-answer website would work, he wanted the freedom to be able to play around with the code. And as he had no idea what he would ask the developer to do, Ingram figured it would be easier to control the budget by building it himself.

    在通常情况下,几乎没有编程知识的人会选择聘请专家开发人员来构建他们的产品。 英格拉姆(Ingram)解释说:“我希望将它像艺术品一样,如果您尚不知道想要什么样的图纸,就无法委托艺术家。” 他继续分享了这一点,因为他对问题解答网站的运作方式没有清晰的了解,因此他希望能够自由地使用代码。 而且,由于他不知道他会要求开发人员做什么,因此英格拉姆认为通过自己构建预算来控制预算会更容易。

    So only equipped with the basic HTML and CSS learned at the turn of the century, he tried creating a website mockup by making a table with HTML “Because that’s what people did in 2001.” It got the job done, but he also quickly realized that his knowledge was outdated, and certainly not enough to bring the idea he had in his head to life.

    因此,他只配备了世纪之交学习的基本HTML和CSS,便尝试通过使用HTML制作表格来创建网站模型,“因为那是2001年人们所做的。” 这项工作完成了,但他也很快意识到自己的知识已经过时了,当然不足以使他的想法变为现实。

    After lots of research, Ingram theorized a “very complicated way” to build the website and set out to find a mentor or senior developer that could give him feedback. “The first person I met on Codementor told me my implementation plan was totally wrong,” he laughed. Luckily, it wasn’t all in vain as the mentor pointed him in the right direction: to learn Django.

    经过大量研究,英格拉姆提出了一种“非常复杂的方法”来构建网站,并着手寻找可以给他反馈的导师或高级开发人员。 他笑着说:“我在Codementor上遇到的第一个人告诉我,我的实施计划是完全错误的。” 幸运的是,这并不是徒劳的,因为导师向他指出了正确的方向:学习Django。

    And so he did. But as a full-time lawyer with limited free time, Ingram needed a way to learn code that could fit into his busy schedule. But traditional teaching methods weren’t a good fit: “With bootcamps, you need to be physically on site or adhere to their teaching schedule.” Instead, he started teaching himself by buying a book, watching Youtube videos, and purchasing several Udemy courses.

    所以他做到了。 但是作为一名有限时间的专职律师,英格拉姆需要一种方法来学习适合自己繁忙日程的代码。 但是传统的教学方法并不适合:“在进行训练营时,您需要身临其境,或者遵守其教学时间表。” 相反,他通过买书,观看Youtube视频和购买一些Udemy课程开始自学。

    After a while, he realized he was making decisions that would have a butterfly effect on future decisions. He figured he could either continue puzzling together advice from YouTube videos, or work with a mentor that knew what they were doing and could help him make better decisions.

    一段时间后,他意识到自己正在做出可能对未来决策产生蝴蝶影响的决策。 他认为他可以继续从YouTube视频中获得令人困惑的建议,或者与知道他们在做什么的导师一起工作,并可以帮助他做出更好的决定。

    He chose the latter.

    他选择了后者。

    Ingram chatted with a couple of mentors and eventually found Jessamyn, a mentor he’s been consistently working with for years now. They started out working together a couple of times a week before increasing it to multiple times a week as his project (and budget) increased.

    英格拉姆与几位导师聊天,最终找到了与自己多年合作的导师杰萨米恩(Jessamyn) 。 他们开始每周进行几次合作,然后随着他的项目(和预算)的增加将其增加到每周多次。

    One surprising takeaway was how helpful working with a mentor was for learning the most basic things.

    一个令人惊讶的收获是,与导师一起工作对于学习最基本的知识有多大帮助。

    “It was like my 10th session, when Jessamyn asked off-handedly where I was saving my code,” he shared. And like most non-technical people, Ingram saved the project on his laptop. In that session, he learned about Git, how to use it, and how a programmer would actually run a project. “Of course, there are YouTube videos on how to use Git, but if you don’t know that it exists, you wouldn’t know to search for it in the first place.”

    他分享道:“就像我的第十届会议时,杰萨米(Jessamyn)随手问我在哪里保存代码。” 和大多数非技术人员一样,英格拉姆将项目保存在笔记本电脑上。 在那次会议上,他了解了Git,如何使用它以及程序员如何实际运行项目。 “当然,有关于如何使用Git的YouTube视频,但是如果您不知道它的存在,那么您根本就不会搜索它。”

    “I’m not interested in becoming a developer. I’m just interested in building a specific project,” he emphasized when we talked about his learning journey. With traditional learning models, the foundation building, while critical, did not fit into Ingram’s schedule. “The problem with the foundation learning model for me is that I don’t understand why the content will be useful until many months later by which time I’ve forgotten the lesson and have to relearn it. “

    “我对成为开发人员不感兴趣。 我只是对建立一个特定的项目感兴趣,”当我们谈到他的学习历程时,他强调说。 使用传统的学习模型,基础建设虽然很关键,却不符合英格拉姆的时间表。 “对我来说,基础学习模型的问题在于,我不明白为什么内容会有用,直到几个月后我才忘记了这一课,不得不重新学习。 “

    He uses a goal-oriented approach when learning. “I usually know what I want to create,” Ingram said about his learning process. He spends time going through online resources and documentation — “the free official documentation for Python and Django have been the most useful” — before coming up with an implementation plan he shares with the mentor. “I try to do as much as I can on my own, and get Jessamyn’s approval early on,” he shared, “It’s an iterative process. Usually, if I’ve put enough thought into it beforehand, the concept works out the first time, but sometimes considerations that I never even thought of pop up once I start implementing.”

    学习时,他使用面向目标的方法。 “我通常知道我想创造什么,”英格拉姆谈到他的学习过程时说道。 在制定与导师共享的实施计划之前,他花时间浏览了在线资源和文档-“免费的Python和Django官方文档非常有用”。 他分享道:“我会尽自己所能,尽早获得杰萨明的批准,”他说,“这是一个反复的过程。 通常,如果我事先已经进行了足够的考虑,那么该概念将在第一时间就付诸实践,但是有时候考虑到一旦我开始实施,我什至没有想到过弹出这些提示。”

    However, with a demanding full-time job, there are days when he tries to shortcut the learning process: “It’s usually after I’ve pulled a couple of all nighters at work, or I reasonably believe that I won’t encounter a specific issue again.” During these sessions, he’ll learn by watching the mentor code and ask questions as she goes, which is much less demanding. “But I have to say, in almost every case, I end up encountering the problem again and have to spend more money and time to master what she did,” he said, “It usually pays to just pay attention and learn it properly the first time.”

    但是,由于要求全职工作,他有时会试图缩短学习过程:“通常是在我上班熬夜的几个晚上之后,或者我有理由相信自己不会遇到特定的情况。再次发出。” 在这些课程中,他将通过观看指导者代码来学习,并在她进行过程中提问,这要求不高。 他说:“但是我不得不说,在几乎每种情况下,我最终都会再次遇到这个问题,并且不得不花费更多的金钱和时间来掌握她所做的事情,通常要注意并正确地学习它。第一次。”

    It’s been four years since Ingram started on his programming journey, and State of K is steadily growing its user base. While his learning process can be described as “problem solving”, at this point, he’s “probably already learned every topic in the Django library and could apply that knowledge to other projects.” This has been echoed by his mentor, Jessamyn: “Ingram showed incredible growth as a developer over the several years I was actively mentoring him. He went from a novice to being able to develop quite complex features.”

    从英格拉姆开始编程之旅已经过去四年了,K州正在稳步发展其用户群。 虽然他的学习过程可以描述为“问题解决”,但到现在为止,他“可能已经学习了Django库中的每个主题,并将这些知识应用于其他项目。” 他的导师杰萨米(Jessamyn)对此表示赞同:“在我积极指导他的几年中,英格拉姆的开发人员发展惊人。 他从新手发展到能够开发相当复杂的功能。”

    “Have I learned Django more slowly than someone else? Definitely. But I’ve also done it while working a full-time job, which I think is also pretty great.

    “我学习Django的速度比其他人慢吗? 绝对是 但是我在做全职工作时也做到了,我认为这也很棒。

    Originally published at Codementor .

    最初在 Codementor上 发布 。

    翻译自: https://medium.com/@CodementorIO/learning-django-through-problem-solving-how-a-lawyer-built-his-side-project-209b7aced659

    django构建网页

    Processed: 0.009, SQL: 8