Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using matlab project to create a project is a huge mistake! #1

Open
cuixing158 opened this issue Aug 30, 2022 · 2 comments
Open

Using matlab project to create a project is a huge mistake! #1

cuixing158 opened this issue Aug 30, 2022 · 2 comments

Comments

@cuixing158
Copy link

cuixing158 commented Aug 30, 2022

As with Visual Studio project work, matlab has introduced project since 2019a, but I think this is an ill-advised move, as it makes it easy to organize folders in current projects, but it also creates problems. matlab should behave as "directly available "It is true that fewer and fewer customers are using project in their own repo, and that is why it is not widely accepted, judging from the open source projects of the last few years!

@eszmw
Copy link
Member

eszmw commented Aug 30, 2022

It is convenient but not a requirement to begin by loading the project file in this repository. Once you have cloned this repository and opened it in MATLAB you could ignore NumericalMethods.prj and start by adding the relevant folders to the path and then running OpenOverview.m as follows:

>> addpath("NumericalPDEs")
>> addpath("NumericalODEs")
>> addpath("NumericalIntegration")
>> addpath("Interpolation")
>> addpath("HelperFunctions")
>> addpath("Data")
>> addpath("Derivatives")
>> OpenOverview

When you are done with the scripts, you can remove them from your path using

>> rmpath("HelperFunctions") 
>> rmpath("Derivatives")
>> rmpath("Data")
>> rmpath("Interpolation")
>> rmpath("NumericalPDEs")
>> rmpath("NumericalODEs")
>> rmpath("NumericalIntegration")

Can you explain what problems you have encountered due to projects?

@cuixing158
Copy link
Author

cuixing158 commented Sep 1, 2022

@eszmw What I mean is that it is not the use of the function that is problematic, but the introduction of the project function that is "be completely superfluous". matlab is a high-level computing language that is directly problem-oriented, writing programs to obtain output as it goes, and there is absolutely no need to create a project framework like Visual C++ Project. It may seem necessary to organise files for "big projects", but matlab is widely used and satisfied with "short and concise" code for the vast majority of tasks (if not, TMW will consider introducing a new buildin function integration), project needs to consider the configuration of the environment in addition to providing the code files, which can add to the overhead of removing the problems themselves and cause discomfort to the user, both during creation and during use.

我的意思是:不是函数使用上出现问题,而是引入这个project功能就是“画蛇添足”。matlab是一种高级计算语言,直接面向问题编程,随即写程序随即获得输出结果,完全没必要像C++那样搞一个project工程框架出来,看似是为“大项目”组织文件所需,但matlab在面向绝大数任务时候,“短少精简”的代码是广泛使用和满足的(如果不满足,TMW会考虑引进一个新的buildin-function集成),project除了提供代码文件,还需要考虑配置环境,无论是创建还是使用过程中,会增加除去本身问题的开销,引起使用者的不适。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants