Programming

13473 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
126
127
37
Nim v2.0 released (nim-lang.org)
submitted 2 years ago by brie to c/programming
 
 

I've played around with Nim before, and thought some of the features such as default values were quite helpful, so it's quite nice that 2.0 is now officially released!

128
129
10
A Type System for Scripting ECS (ceesstuff.github.io)
submitted 2 years ago* (last edited 2 years ago) by TheCee@programming.dev to c/programming
 
 

cross-posted from: https://programming.dev/post/1086370

This time on my arbitrary blog: Entity component systems.

Also, highlight.js should degrade more gracefully without JS activated than last time. Note that I can't process syntax highlighting in my build step, because I don't have a build step.

EDIT: improved phrasing

130
 
 

cross-posted from: https://programming.dev/post/1048663

This month we look at debuggers in Python and how to choose your own debugger instead of relying on the built-in pdb.

131
9
Fundamentals of HTML (domesticatedbrain.com)
submitted 2 years ago by ShehanPerera@lemmy.zip to c/programming
 
 

This article explains the fundamentals of HTML including the HTML document structure.

132
21
submitted 2 years ago* (last edited 2 years ago) by dontblink@feddit.it to c/programming
 
 

Hi! I'm learning code: I've been doing a bit of JavaScript, and now i'm switching to TypeScript before going through frameworks.

One thing i'm quite missing is the possibility to have a personal documentation environment: something that let me write documentation on what i'm learning WHILE writing code and following my courses, using something like typedoc or javadoc.

I have been using Obsidian, that is good for markdown content, and i can generate docs with typedoc-markdown-plugin that i can then open on obsidian. However i would like to have both my code and my docs all togheter, not for a single project but for all the courses and little projects i'm doing, having it all togheter stored in one place, and possibly being able to share it as a portfolio in the future.

I don't specifically need to show the code in this environment, i just need the docs to be visible and to be pointing to the specific sections of the environment holding my code (wich can be github links like the ones that typedoc automatically add). I would like to have one directory for each project containing both my code and my docs.

Something like a programming digital garden! But integrated with tools that generate documentation from my code.

I've tried the typedoc-hugo-plugin to host a static docs website with Hugo, but it's not quite mantained and came with a lot of bugs, like broken links.

I'm trying to use Docusaurus and docusaurus-plugin-typedoc; it looks quite good, however i understood it is designed more to hold documentation for a single big project than for a series of small (learning oriented) projects. You need to configure each extra (more than one) docs folder to get it work properly, which is something i would avoid, if possible.

I love all the TSdoc standard thing, but i don't really know how to put everything togheter.

133
 
 

Was digging through a project at work today where some guy in 2014 made 100+ commits in a single day and the only one that had a comment said "upgrading to v4.0".

134
135
 
 

I used to be a lurker of r/C_programming where people would ask questions and get answers. It mostly consisted of students wanting to get a human answer to their problem.

I liked chiming in there and answering from time to time. Although you always had that one student who ordered to do the homework for them, there were some nice and helpful interactions in that subreddit.

Would people be interested in a community focused around helping each others in programming? Or would this very community do the job already?

136
137
 
 

I lately saw the following Software Development jobs requirements:

Experience with Generative AI - Advantage

What the hack does it means? I know how to use ChatGPT or Bard, but how much experience can one have to be experienced with it?

And I'm not talking about AI/ML or Algorithmist jobs

138
 
 

When running docker dev environment with Linux and Windows (with WSL2), it's already in the same container context so the performance is decent. However, on Mac there's no WSL2 equivalent so bind mounts are painfully slow due to the overhead of translation between the Mac's and container filesystem.
Is there any way to run the code in docker VM like WSL2 allows?

139
 
 

cross-posted from: https://programming.dev/post/869062

Let's test if crossposting works this time...

In this poorly written essay I list programming language design features that make dynamically typed languages less dynamic. Stuff I collected over the last few years when people asked about it.

Also, don't worry, next post will be more concise.

140
 
 

Hey! Curious if anyone tried to communicate between GovCloud and Commercial AWS? I am aware they are separated by design. I have a task to try to have a ECS make an api call a private api gateway on GovCloud. Right now the idea is to use private API gateway on GovCloud and a VPC Endpoint on the Commercial side. I don’t think this will work..

I’m certain that this cannot be done without a VPN or having the GovCloud api be public facing, but as I’m not by any means an expert in AWS networking I am curious if anyone has any thoughts?

141
 
 

This seem quite counter intuitive and to be bloating the project: i'm trying to install tsdoc linter, but npm adds like other 50 packages alongside with it, is this the expected behaviour? Why is it so?

A project that could easily be 5MB ends up being like 60MB

142
 
 

Source code

This is a very basic Lemmy feed viewer, written in Skew.

It doesn't support much as of yet, but it can view instance/community feeds:

/#/beehaw.org

/#/beehaw.org/c/technology

143
7
submitted 2 years ago* (last edited 2 years ago) by captsneeze@lemmy.one to c/programming
 
 

I hope this isn’t breaking any rules here. I’ve been struggling with a personal web project for the past week, and I’m hoping some smart people here could get me pointed in the right direction.

I’ve already posted a full explanation in another community here, with some informational comments.

Long story slightly shorter… trying to get a website that is great for scoring a tennis match, and making it work offline so I can have it run locally on an offline machine. For some reason that I can’t figure out, the js refuses to work as expected.

First, I thought there may have been a CORS issue. And, the js is checking the protocol and changing it from “file” to “http” (see comments in like above). I worked past this issue, but it's still not really working.

Now, I can see the first action of the “score” function is working (it logs to console), but nothing after that does anything at all, and I can’t figure it out!

Edit: A very kind person (what’s the lemmy equivalent for “redditor”?) offered some insight through a DM that got me on the right track! I won’t put all the details here because it could be considered borderline “unethical” if the wrong person was trying to follow my path. Thanks to that person and to the community! Ive learned a lot in the past weeks.

144
145
 
 

Why is it so in mobile development that 90% of projects does not have proper architecture, and when there is one, devs complain about it. I don't see it being a case for other technologies of development, only mobile. In mobile the project always has spaghetti code, barely any abstraction it is developed just to be finished as quickly as possible and that's it. And when there is clean architecture introduced, everyone complains. Why is it just a case in mobile development?

Just disclaimer: It is not like the architecture in project is completely new invention, it uses well known principles and approaches

146
 
 

How would you design a tool to specify deeply nested forms, basically a complex decision tree, eg for medical diagnosis or complex tax stuff etc, where future form elements can dependent on a previously specified one, but statically ie chosen from few option not generated via a function so that all options and branches are known without executing code. The form specification should just be declarative, data. What data structure would you use to represent that form (I think it would basically be a DAG)? What language would you write it in? How would you generate a graphical representation (eg converting to .dot)? How would you generate a fillable form from it?

147
16
submitted 2 years ago* (last edited 2 years ago) by dontblink@feddit.it to c/programming
 
 

I'm doing a JavaScript course, i got to know typescript and i definetely see it as a way better alternative and way of writing cleaner code in the usually messed up js.

Anyway it's not quite clear to me what i should do now, because i understand javascript to a decent level, but i woul love to use typescript in the future for my projects..

It's knowing javascript in depth better or should i opt into a new course that teaches typescript in depth, if so, do you have any resources (free, paid courses, free docs like MDN or javascript.info) to suggest me?

I'm following the "complete javascript course" from jonas schemdtman, that i got suggested from coding communities, on udemy, which is an 80 hours course that looks quite complete to me, it teaches about the js engine, its compilation style and its runtime too, not just the code, is there anything similar? My goal would be opting into typescript and really digging into it, really learning how it works on code level and behind the scenes.

148
 
 

C is an old language lacking many, many, many modern features. One of the features it does not lack is encapsulation and isolation.

149
7
Coroutines for Go (research.swtch.com)
submitted 2 years ago by Penguincoder to c/programming
 
 

This post is about why we need a coroutine package for Go, and what it would look like. But first, what are coroutines?

Every programmer today is familiar with function calls (subroutines): F calls G, which stops F and runs G. G does its work, potentially calling and waiting for other functions, and eventually returns. When G returns, G is gone and F continues running. In this pattern, only one function is running at a time, while its callers wait, all the way up the call stack.

150
view more: ‹ prev next ›