TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Programming Language to Track Workouts?

1 pointsby lemonberryover 1 year ago
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 comments

theGeatZhopaover 1 year ago
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 未加载
surprisetalkover 1 year ago
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 未加载
NotGManover 1 year ago
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 未加载
OsintOtter69over 1 year ago
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!