制作出生跟踪应用程序C# [英] Making a birth tracking app C#

查看:78
本文介绍了制作出生跟踪应用程序C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写的代码是一个类似于以下内容的应用程序:



介绍一个山羊的年龄 - > 1/1/2017(然后应用程序注册标签和日期)



下次运行应用程序时,应用程序会计算每个注册动物的年龄。 - 如何做到这一点,我的猜测是使用窗口的日期作为参考,以使年龄差异并计算输出。



我认为需要一个数据库。 MSDB?



现在,我不知道怎么做。







这里的任何人都可以帮我一把吗?





更新:





它应该是一个Windows应用程序,而不是一个网站。

我被告知学习代码的最佳方式是练习。



有人能解释一下后端有多复杂吗?



我尝试了什么:



我正在尝试申请追踪我的动物的年龄。



我用谷歌搜索代码示例并继续寻找计算器 - 这不是我想要的。

其他例子也太复杂了。

What I'm trying to code is an application that works like:

Introduce a goat's age -> 1/1/2017 (then the application registers a tag and date)

Next time I run the application the, the application calculates how old every registered animal is. - How this would be done, my guess is using window's date as a reference to make the age difference and calculate the output.

I assume there's the need for a database. MSDB?

Now, I have no clue how to do this.



Anyone here can lend me a hand?


Update:


It's supposed to be a windows application, not a web site.
I was told that the best way to learn code is to practice.

Can someone explain me how complex this can be on the back-end?

What I have tried:

I'm trying to make an application to track the age of my animals.

I googled code examples and keep finding calculators - This isn't what I'm looking for.
Other examples are too complex as well.

推荐答案

答案 - 第1部分



你听起来没有多少编程经验,数据库和/或网站。



您是否首先考虑过您将在哪里托管该网站?这将对您可以使用哪些数据库选项产生影响。



您是否访问过ASP.NET网站?这是一个非常有用的网站,为您提供大量培训资源: Learn | ASP.NET网站 [ ^ ]



微软还有其他优秀的资源/学习网站:

* 技术文档,API和代码示例| Microsoft Docs [ ^ ]

* 第9频道:来自构建Microsoft产品和人员的人员的开发人员视频服务 [ ^ ]

* < a href =https://azure.microsoft.com/en-us/> Microsoft Azure:云计算平台&服务 [ ^ ]



在开始主项目之前,做一些较小的测试项目并熟悉C#,ASP.NET WebForms或MVC,Html,CSS,JavaScript,jQuery,SQL和您选择的数据库。



一旦你对这些技术充满信心,那么你就可以开始计划,选择你将主持的人,然后工作&调试您的主项目。



答案 - 第2部分



关于日期格式问题,如果您正在构建网站,则默认情况下它是全局(全球)应用程序。



您无法控制您的用户在世界上的位置。所以你无法控制时区。因此,您需要在UTC时间工作并本地化为单个用户。



您可以在此处阅读有关如何执行此操作的更多信息:转换时区之间的时间| Microsoft Docs [ ^ ]
Answer - Part 1

You don't sound like you have much experience with programming, databases, and/or websites.

Have you considered first where you will be hosting the website? This will have an impact on which database options are available to you.

Have you visited the ASP.NET website? It is a very helpful website with lots of training resources for you: Learn | The ASP.NET Site[^]

Microsoft also has other great resource/learning websites:
* Technical documentation, API, and code examples | Microsoft Docs[^]
* Channel 9: Videos for developers from the people building Microsoft Products & Services[^]
* Microsoft Azure: Cloud Computing Platform & Services[^]

Before you start your main project, do smaller test projects and get familiar with C#, ASP.NET WebForms or MVC, Html, CSS, JavaScript, jQuery, SQL, and the database of your choice.

Once you feel confident with these technologies, then you are ready to begin planning, choosing who you will be hosting with, then working & debugging your main project.

Answer - Part 2

Regarding the Date format question, if you are building a website, then it is a global (worldwide) application by default.

You have no control over where your users are in the world. So you have no control over time zones. Therefore you need to work in UTC times and localize to the individual user.

You can read more about how to do that here: Converting times between time zones | Microsoft Docs[^]


首先,我建议您详细记下您想要做的事情,它永远不会受到伤害。

我用这个分层的ToDoList应用程序来做它,

- 第一个条目是应用程序功能,我使用子任务进入细节,直到有足够的细节我想要的东西。

- 秒条目是用于数据库数据和使用,查询类型。

- 第三个条目用于数据库结构,其中包含有关索引和表之间链接的技术详细信息等等。

ToDoList 7.1.3 - 一种有效而灵活的方法来保持领先地位你的任务 [ ^ ]

First of all, I recommend to write down what you want to do in details, it never hurt.
I use this hierarchical ToDoList app to do it,
- first entry is app features and I use subtasks to get into details until there is enough details on what I want.
- second entry is for database data and usage, kind of queries.
- third entry is for database structure with technical details about indexes and links between tables an so on.
ToDoList 7.1.3 - An effective and flexible way to keep on top of your tasks[^]
引用:

这里的任何人都可以帮我一把吗?

Anyone here can lend me a hand?

因为为你做这个应用的唯一真正的帮助是超出主题,您基本上有3种选择:

- 找到现有应用并根据您的需求进行定制。我使用TDL应用程序来记住我周围的人的生日。

- 有人为你建造它。聘请专业程序员来完成这项工作。

聘请自由职业者&在线查找自由职业者 - 自由职业者 [ ^ ]

- 自己动手,但是你还有很多学习。



[更新]

Since the only real help of doing the app for you is out of topic, you have basically 3 choices:
- find an existing app and customize it to your needs. I use the TDL app to remember birthdates of people around me.
- have someone build it for you. Hire a professional programmer to do the job.
Hire Freelancers & Find Freelance Jobs Online - Freelancer[^]
- do it yourself, but you have a lot of study ahead.

[Update]

引用:

我的目标是学习。

所以为了这个目的,我想到了一个跟踪应用程序,因为我会与某些东西进行交互作为一种工具使用。

如果你能及时回过头来告诉自己,你有什么建议,你打算学什么?

my goal is to learn.
So for this purpose, I thought of a tracking application since I would be interacting with something I would use as a tool.
Any suggestion, as to what would you program to learn, if you could go back in time and tell yourself such?



建议:不要试图通过做个人项目来学习。

你必须知道你可以用任何语言做几乎任何事情,只是一些语言对初学者来说更难,因为有更多的陷阱需要处理。

你需要掌握一套作为工作基础的技巧,而不是与语言联系。



你有要知道你几乎可以做任何事情在任何语言中,只有一些语言对于初学者来说更难,因为有更多的陷阱需要处理。

你需要掌握一组作为工作基础的技术,而不是与语言相关联。



你必须知道你几乎可以用任何语言做任何事情,只是一些语言对于初学者来说更难,因为有更多的陷阱需要处理。

您需要掌握一组作为工作基础的技术,并且不与语言相关联。



建议:

- 从简单/安全的语言开始:VB,Java,C#,而不是C或C ++

- 阅读文档/关注教程(很多)

- 从微小/无用的项目开始,目的是学习编程,而不是做一些有用的事情。

- 从控制台模式程序开始(没有花哨的图形,没有鼠标)

- 学习调试器

调试器 - 维基百科,免费百科全书 [ ^ ]

掌握Visual Studio 2010中的调试 - 初学者指南 [ ^ ]

- 有问题吗?谷歌是你的朋友。

- 学习布尔代数

- 学习一种或多种分析方法, E.W。 Djikstra自上而下的方法是一个良好的开端。

https:// en.wikipedia.org/wiki/Top-down_and_bottom-up_design [ ^ ]

https://en.wikipedia.org/wiki/Structured_programming [ ^ ]

https://en.wikipedia.org/wiki/Edsger_W._Dijkstra [ ^ ]

https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF [ ^ ]

- 学习SQL

- 学习数据库设计和管理

数据库设计简介 [ ^ ]

数据库规范化中的1NF,2NF,3NF和BCNF | DBMS教程| Studytonight [ ^ ]

- 学习正则表达式



有趣的链接:

学习编程 [ ^ ]



没有知识的捷径,没有人可以为你学习,你是唯一可以做到的人。

记住练习和小项目不是为了让你有用,他们在这里教你编程。


Advice: Don't try to learn by doing a personal project.
You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle.
You need to master a set of techniques that are the basis of the job and are not linked to a language.

You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle.
You need to master a set of techniques that are the basis of the job and are not linked to a language.

You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle.
You need to master a set of techniques that are the basis of the job and are not linked to a language.

Advices:
- Start with an easy/safe language: VB, Java, C#, not C or C++
- Read documentation / Follow tutorials (a lot of them)
- Start with tiny/useless projects, the purpose is to learn programming, not doing something useful.
- Start with console mode programs (no fancy graphics, no mouse)
- Learn debugger
Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]
- A problem ? Google is your friend.
- Learn Boole algebra
- Learn one or more analyze methods, E.W. Djikstra top-Down method is a good start.
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]
- Learn SQL
- Learn Databases design and Administration
Introduction to database design[^]
1NF, 2NF, 3NF and BCNF in Database Normalization | DBMS Tutorial | Studytonight[^]
- Learn Regular Expressions

Interesting link:
Learn to Program[^]

There is no shortcut to knowledge, no one can learn for you, you are the only one that can do it.
Remember the exercises and little projects are not here to make something useful, they are here to teach you programming.


这篇关于制作出生跟踪应用程序C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆