Coding Structure
https://codingstructure.net/
Recent content on Coding StructureHugo -- gohugo.iocomments@codingstructure.net (Timo Dreyer)comments@codingstructure.net (Timo Dreyer)Thu, 11 Mar 2021 00:00:00 +0000Basic Principles of php-Websites
https://codingstructure.net/post/2021-03-11_developing-a-simple-php-app/
Thu, 11 Mar 2021 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2021-03-11_developing-a-simple-php-app/The programming language php has been around since 1995 and is a “classical” web development tool. Here I want to go over the very basics of the process to develop a simple online app with php. I’m doing this development on a Laptop with Ubuntu 20.10; if you are using a different operating system, some steps might differ, but this is not meant as a complete walk-through anyway.
A Very Brief Introduction to php php is run on a server and makes it possible to construct an HTML document dynamically before sending it to the client who requested it.HTML Form Submission via Phython (1/X)
https://codingstructure.net/post/2020-11-04_html-form-submission-via-python-part-1/
Wed, 04 Nov 2020 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2020-11-04_html-form-submission-via-python-part-1/Some tasks can be very tedious and then writing a short python script is often a nice way to automate them and save some time. But most people who actually tried doing that can probably tell you, that this script often gets more complicated than anticipated in the beginning. Here is the relevant xkcd comic:
Anyway, this story begins with a web form (on a site that shall remained unnamed), which I need to submit about 80 times with similar content.Automatic Semantic Versioning in Git
https://codingstructure.net/post/2020-05-23_automatic-semantic-versioning-in-git/
Sat, 23 May 2020 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2020-05-23_automatic-semantic-versioning-in-git/Most software that goes beyond small scripts has some sort of version number scheme. Very popular seems to be the Semantic Versioning schema as described by Tom Preston-Werner on a dedicated website. Let me quote the summary he gives there:
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes.Mathematical Expressions as Trees 3: Proper Expression Modelling
https://codingstructure.net/post/2020-04-09_mathematical-expressions-part-3/
Thu, 09 Apr 2020 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2020-04-09_mathematical-expressions-part-3/If you haven’t done so yet, read parts one and two first or watch the video that inspired these posts.
You can find a notebook with the state after this blog post here.
Last time there was a problem in the expression simplification left, which is apparent when looking at these two expressions:
str(Mul(Con(2), Mul(Con(3), Var('x'))).simplify()) # returns '2*3*x' str(Mul(Mul(Con(2), Con(3)), Var('x')).simplify()) # returns '6*x' They model the same expression, so both should return the second (simpler) string.Mathematical Expressions as Trees 2: Derivations and Expression Simplification
https://codingstructure.net/post/2020-03-17_mathematical-expressions-part-2/
Tue, 17 Mar 2020 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2020-03-17_mathematical-expressions-part-2/If you haven’t done so yet, read part one first or watch the video that inspired these posts.
You can find a notebook with the state after this blog post here.
More Functionality So far we mainly recreated what was already shown in the YouTube video and to be honest, this is not very useful yet. So I extended this base structure by a few parts.
Partial Derivatives The obvious extension, which was triggered by the video, is the addition of partial derivatives.Mathematical Expressions as Trees 1: Modeling, Evaluation and Printing
https://codingstructure.net/post/2020-03-12_mathematical-expressions-as-trees/
Thu, 12 Mar 2020 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/post/2020-03-12_mathematical-expressions-as-trees/I recently watched a computerphile video, where Prof. Thorsten Altenkirch talks about the data structures of trees and using them to model mathematical expressions. At the end, it is briefly mentioned, that this can also be used to perform derivations on the expressions, which inspired me to try that out myself.
So I opend up a jupyter notebook and started with an implementation analogous to what was done in the video, but a bit extended.About...
https://codingstructure.net/page/about/
Mon, 01 Jan 0001 00:00:00 +0000comments@codingstructure.net (Timo Dreyer)https://codingstructure.net/page/about/…Me I studied physics, got my Master’s degree and was working a few years in the ATLAS Collaboration doing statistical data analysis afterwards. Nowadays, I’m working as a Data Scientist, but my Interests reach beyond data science and machine learning also to more general topics of computer science and software development.
You can find out more about some other projects of mine at my personal website.
…This Blog I write the posts on this blog mainly for myself, as a reminder of things that I learned or small write-ups of things I worked upon.