TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Programming Language to Track Workouts?

1 点作者 lemonberry超过 1 年前
Does anyone know of a programming language to track workouts? I keep my workouts in a text file and keep thinking how great it would be if this was actually a programming language that I could run to get information out of and to run queries against? Maybe queries isn&#x27;t the correct word, but functions that could take the text file as input and output certain specific data. For example: how many pushups I did in the past 30 days.<p>I&#x27;m barely a programmer, though I do enjoy it, so I&#x27;m not sure if this is a dead end idea or not.

4 条评论

theGeatZhopa超过 1 年前
It&#x27;s never a dead end Idea. It&#x27;s just, independent of the programming language, with all of the languages you describe logic in code. So if you really want to learn that, you have to learn a syntax and basical thinking in &quot;chains&quot;. Because that&#x27;s what you do in the end: building a chain of instructions.<p>I think, Python is very fast to learn and you&#x27;ll find a lot of resources. Chatgpt also helps a lot, but you have to check really a lot what that AI guy say. It&#x27;s better to read up the basics and do what ever to get acquainted with the language first.<p>The are also online websites that let you run code online without having to set-up an IDE.<p>if you ask me, it&#x27;s easier to set-up an excel file that imports the contents of the text file (link it) and then, you can query it with Plain Excels formulas. Which is a database or can be seen as a database and actually, it&#x27;s sufficient more than that for your use case imho<p>So. Try a few steps with python. Remember. It&#x27;s pure logic. Nothing magical on that.<p>You also can go for other languages, but, mostly they&#x27;re difficult to understand in my opinion. You can try JavaScript, but then you also have to learn the basics of HTML and so on .. when you&#x27;re at it, you might end in programming a small website.<p>So check out what you really need.
评论 #39435754 未加载
surprisetalk超过 1 年前
SQL might be a good fit for this.<p>You can ask ChatGPT to help you import your text file into a tiny SQLite DB and then query against it. GPT is also very good at helping write queries.
评论 #39435738 未加载
NotGMan超过 1 年前
R is a language for statistics which has built-in support for plots and many libraries for visualization etc...<p>You can also use it then to generate PDF&#x2F;text files for eg tables of sets&#x2F;reps&#x2F;whatever you want.
评论 #39435729 未加载
OsintOtter69超过 1 年前
SQL would be great for this. I got into sql by building a DB that tracks my hunting and fishing trips. SQLite or mysql would be great!