完成开放项目的最佳实践,不要在错误的方向上浪费时间

发布于 2024-08-22 18:37:38 字数 1432 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

只是偏爱你 2024-08-29 18:37:38

如果您将语言命名为 X,那么帮助您会更容易,因为我可以向您指出特定的书籍。

但一般来说,我需要几周的紧张工作才能适应一门新语言。然后是围绕该语言的框架。

因此,以我的拙见,如果 Y 不平凡,那么您将面临一项不可能完成的任务。

只有 5 天,你最好的选择是阅读“5 分钟内的 X 语言”教程,然后用 google 搜索解决问题 Y 的方法。

当然,你的代码可能不是“最佳实践”,甚至在那时没有任何好处,但你交付了并且它可能有效。

我很幸运,因为我可以去找我的老板说:“我需要一两个月的时间来熟悉 X 和框架 XZ”,但如果这不是一个选择,那么是时候使用空中的伟大谷歌了。

学习一门新的编程语言永远不会浪费时间,它会拓宽你的视野。 :)

祝你好运。

It would have been easier to help you if you had named language X, since I could have pointed you to specific books.

But generally it takes a few weeks of intense work before I feel comfortable with a new language. Then comes the frameworks around that language.

So in my humble opinion you have been given an impossible task if Y is non trivial.

With only 5 days your best bet is read a "Language X in 5 minutes" tutorial and then just google your way through problem Y.

Sure your code might not be "best practices" or even any good at that point, but you delivered and it probably worked.

I am lucky because I can just go to my boss and say: "I need a month or two to become acquainted with X and frame X.Z", but if that is not an option it's time for the great google in the sky.

And learning a new programming language is never a waste of time, it broadens your horizons. :)

I wish you good luck.

朱染 2024-08-29 18:37:38

我通常通过观看一些带有简单项目示例的视频教程来开始学习新技术,以了解这项技术的“精神”。之后,可能会阅读一些与我要开发的新任务相关的特定文章和教程。之后一点一点地开始编码和学习。当然,这是当我不打算成为这项技术的专业人士或者我将使用它一小段时间的时候。

如果它是关于我打算掌握的技术......那就不同了 - 阅读书籍,关注该领域专业人士的一些 rss 提要,观看(参加)会议,用户组等......

I usually start learning new technology by watching some video tutorials with examples of simple projects to get the "spirit" of this technology. After that probably reading some specific articles and tutorials connected to my new task that I'm going to develop. And after little by little start coding and learning. Of course, this is when I'm not going to become a pro in this technology or when I will use it for small period of time.

If it is about a technology that I intend to master in it ... it different - reading books, following some rss feeds from the pros in the area, watching (attending) conferences, usergroups, etc ...

甜扑 2024-08-29 18:37:38

找到一本关于新语言的好的参考书/网站,以及接近您想要的示例代码(作为起点)。看看您是否可以快速获得存根实现,并随时构建功能。只学习完成任务所需的语言元素。

如果您陷入问题本身的困难部分,请用您最熟悉的语言实现零碎的内容,然后将其翻译成新语言。

Find a good reference book/site on the new language, and example code that's close to what you want (to use as a starting point). See if you can get a stubbed implementation together quickly, and build in features as you go. Only learn the elements of the language you need to accomplish the task.

If you get stuck on difficult parts of the problem itself, implement bits and pieces in the language you know best, then translate those into the new language.

沒落の蓅哖 2024-08-29 18:37:38

这实际上取决于您的老板想要的应用程序是临时修复/试用还是生产应用程序。如果是后者,你就不能指望只接触了 5 天所涉及的语言就编写出一个像样的程序 - 并且尝试以这种姿势编写一个生产应用程序将是一个很大的错误。

也就是说,这是一条线索或一些临时的东西,我认为如果任务在 5 天内不是太复杂,你可以选择足够的东西来让某些东西发挥作用,特别是如果你需要学习 Perl 或 PhP 等更具脚本性的东西。

关于如何快速入门一门语言,我最好的建议是找到熟悉该语言的人并花一些时间与他们相处。

It really depends on whether the application your boss wants is a temporary fix / trial or a production application. If it's the later you cannot expect to write a decent program having only had 5 days exposure to the language involved - and it'd be a big mistake to attempt to write a production app with that posture.

That said, it's a trail or some of temporary thing they I think you can pick enough to get something working if the task isn't too complex within 5 days especially if it's something more scripty like Perl or PhP you need to pick up.

In terms of how to get a quick start on a language my best advice is to find someone who knows the language well and spend some time with them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文