Nkrs Got this special assignment at work this week: I'm making a small web application that shows a large SVG map where each municipality has its own polygon, and clicking on it shows their stats, like how many cases were received and solved, how many employees are there on the cases, etc (backstory: I work for a large government institution and we already publish these stats, but it's a separate Excel file for every month and it's hard to visualize, especially over time). The only downside is that it has to be in .NET which is far from my set of skills, but if C# is anything like Java as they say on the internet, I should be fine.
Mark Dain Sounds really neat! Having used both C# and Java, I can say they have some differences but yes, if you know one you'll be able to pickup the other fairly easily. I wouldn't be worried though as it sounds like a lot of this work could be frontend heavy?
Nkrs Yeah, I guess it is. It's not anything complicated: the SVG map has a polygon for every municipality, and a click on it triggers an overlay with charts and tables. A special URL leads to the admin panel (there's a predefined URL scheme for all apps that I just need to remake in my project) where new data can be uploaded as a CSV file (the guys in HR make a monthly table for the entire country so they will be supplying the files) or edited by hand in special situations. What I do find odd is how .NET handles pages: there two files, one with the template and one with the class underneath the page. It's a different experience.
Mark Dain Sounds like MVC to me? It's got a learning curve behind it but it's great to know as it's a pattern used by a ton of frameworks and programs
Nkrs I guess it's just their way of making sure people don't put SQL queries directly into the HTML template along with the server-side logic. It all gets compiled into a .DLL in the end. Personally I'm more accustomed to writing template handlers myself with "html/template" in Go and having them as static files in a separate directory, but this could be a good opportunity to learn how others do it.
Login or register your account to reply