Programming

13386 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
226
 
 

An interesting take on why dynamically typed languages became so popular and why staticly typed languages are making a comeback.

227
 
 

I work for an association and every time i get the material for a new blog post i need to format, publish it on the blog and then design different types of post for FB, IG and Telegram with their own formatting. That requires plenty of time and work.

Ideally, i would love to create a blog where i can publish items ONE TIME, and then get social designs (with one or two alternative types of designs) and getting the text formatted right to be published.

The website is on wordpress right now, but i'm studying webdevelopment and i would really love to remake it in plain code with HTML, CSS and JS / JS frameworks. I'm not seeking to do this on Wordpress, on the opposite i would like to move away from it.

I know i would have to work with the APIs of the socials in order to get the content automatically published and with AI to get a quick text formatting: for example cutting some key parts of a text automatically. I have no clue for the design part, right now i'm using Canva but i always do pretty simple designs and all by hand.

I know this is probably a pretty ambitious project but it would leave me with A LOT less work once all of this is correctly set up, and replicating this for other blogs would simply be awesome.

How much is this makable? Would it require a lot of paid services, are the APIs usually free for such a small use? Where should i start from to learn how implementing the auto design part? Can a Junior webdeveloper do something like this in a reasonable amount of time, or are these pretty advanced skills?

228
 
 

This app will mostly be intended for reading, but it'll support multiple profiles, upvoting and commenting.

I currently plan on targeting both desktop and phone usage, with some primitive touch gestures to make it easier. Unfortunately, since this is just a progressive web app, that's going to feel a bit scuffed.

The source code is at https://github.com/diamondburned/slemmy. It's currently not usable for production yet :( but I'm working on it!

229
230
 
 

❗❗❗ Announcing the official community here: !beyond@lemm.ee and also announcing the first open testing for the alpha version is available for Android here: https://lemm.ee/post/688038 ❗❗❗


Hi all, keeping this post short, I am working on a new Lemmy app for iOS and Android, heavily inspired on the Infinity for Reddit app.

The app is very much still a work in progress, but I's like to share some screenshots and a few MVP functionalities already implemented:

Screenshots

Already implemented:

  • Anonymous browsing;
  • Login;
  • Multiple accounts support;
  • Account switcher;
  • Post cards
  • Sorting posts by Lemmy's sorting options (Active/Hot/New/etc..);
  • Listing posts by Lemmy's listing options (Subscribed/Local/All);
  • Upvote, downvote (and counters), comment counter, save;
  • Mark post as read;
  • Infinite post scrolling (keep on scrolling, app loads more posts in the background);

What's next before I make it available in the app stores (MVP):

  • Post view (see post's comments);
  • Add a comment to a post;
  • Create a post;
  • A sexier selected account card on the sidebar;

What's still to do before I can call it a beta version:

  • Profile view;
  • Community view (rules mods other details);
  • Search;
  • Dark mode;

What's to come after:

  • Custom theming/Material You support;
  • Advanced post filters;
  • Community groups (Add communities to a group, see posts only from selected group);
  • A video player with controls over speed playback and maybe quality if possible;
  • Alternative posts view (compact card, list, etc)
  • Other cool misc options.

Dreams:

  • Kbin and Mastodon accounts support.

Keep an eye for future posts, I may be able to announce the MVP by the end of this week if everything goes well, but I can't promise anything :)

EDIT:

This post got so much traction than I had predicted. Thank you so much for all your comments and ideas! I tried to reply to as many as I could.

I also collected from this post a bunch of good suggestions from you which for now I am keping track of here: https://brunofinger.notion.site/brunofinger/Beyond-45cabaae7f724cd5ad2b77d902e9a97e

The app name probably will be "Beyond" as suggested by a couple of users here, and really like this idea as it creates a sort of symbolic link to Infinity as the inspiration for my work by the famous "To Infinity and Beyond" phrase :)

231
47
submitted 1 year ago by rknuu to c/programming
 
 

Have to say, I wasn't expecting this in my feed. It is a bit novel of a concept, but if you think about what it takes to build and ship a product, a lot of this makes sense, and modern languages are starting to follow the batteries included mentality (golang, rust).

There's even an ironic naming ecosystem that just lends itself to this personification: flatpak and containers.

232
 
 

I want to start a discussion of MIT vs GPL and see what you all think

233
234
 
 

Hi all!

I am learning JavaScript and web development, and while i really like this road, i sometimes feel a bit alone following online courses and i think adding new brains would definetely help us to grow better, would anyone like to join and make a group where we share, learn and grow together?

I feel like we need to build a better web after all this Reddit thing, why not start together from the fundamentals?

We can do this on Telegram!

235
 
 

Hello everyone.

I just forked this and added my own 2 themes to my fork. Both themes are based on the winternord theme contained within that repository. In the theme the author, 2xx04 clearly states at the top that their code contains modifications to Bootstrap's CSS, as well as the Nord colour scheme by Arctic Ice Studio & Sven Greb. Both of those repositories contain the MIT license, but 2xx04's repository contains no license.

My question is this: Even though technically any github repository with no license has the default copyright rules applied to it (i.e. the author has sole ownership), since they failed to include the license of the software they modified, my repository should include the MIT license, and any code written by me is mine (under MIT license rules of course, so anyone can copy and distribute it)?

Thanks in advance. Here is a link to my repository in case you need it to understand what I mean

236
 
 

At my company there has been a move away from our large e2e testing suite for various reasons:

  • flaky tests
  • long build times
  • significant burden for multiple teams to contribute

The use of pact is seemingly only covering some small portion of each integration point between applications as large, comprehensive pacts that cover the full API and values used are considered too costly or coupled.

I am conflicted that we are losing test coverage of business use cases because there aren't necessarily any tests that are automatically running a use case end to end.

How do you deal with this in your workplace and what is your position on e2e vs pact testing.

237
 
 

Do you know any service that does that? Right now I have reached 5GB of my phone contract and I have to navigate with a very low speed. I was thinking to write a simple service that takes the URL as request and sends back the page but in read mode or in a very minimal way keeping focus only on the content. But I want to check if a service like this already exists.

238
12
submitted 1 year ago* (last edited 1 year ago) by FlightSimEnjoyer@vlemmy.net to c/programming
 
 

Hello there, fellow programmers! I am an Aeronautical Engineering student who is doing research on Multidisciplinary Optimization (MDO) since the beginning of this year.

All the code I've written so far is in Python, but I want to move it to C so I can learn more about low level programming and so I can have more control over what my code actually does (since it is an MDO code, it needs to be very optimized because every 0.5 seconds added to each iteration add 500 seconds over 1000 iterations (9 minutes!)). I am taking an online course on C from edX, but I still cannot understand how to actually substitute objects for C compliant code. The main problem is that my original code uses lots of objects, and I simply do not know how to eliminate objects from my code.

Can someone help me? Any help is welcomed.

[edit] Thanks for all your answers, I think I'm getting it now.

239
31
submitted 1 year ago* (last edited 1 year ago) by Dee_Imaginarium to c/programming
 
 

For anybody that might not have heard, Harvard University launched Intro to Programming with Python last year, which is a free 9-week course for complete beginners and includes a free certificate of completion at the end.

It's taught by the same professor who teaches Harvard's Intro to CS, the university's most-popular on-campus course.

The course is very hands-on with weekly problem sets and a final project that you complete through an in-browser code editor.

You can also take the course via edX but there, the certificate costs $199. If you take it through Harvard OpenCourseWare, the course is exactly the same but the certificate is entirely free.

240
 
 

cross-posted from: https://lemm.ee/post/116554

Hello community! 👋

I wanted to drop a short announcement: I'm building an iOS client for lemmy, named Lemon 🍋!

It is still very much in early development, only having one week of dev time so far. I'm not yet ready for users (unless you want a lot of bugs 😅).

I'll be sharing some development logs throughout the journey. Consider this the first of (hopefully many) entries!

Story time:

For years, I was an avid user of Apollo for Reddit. I was an "ultra subscriber" and occasional donor, since I loved the app and Christian Selig was such a kind and engaged developer. He managed to build both an inspiring app and community.

I was heartbroken when I learned Apollo would shut down due to Reddit's API changes.

Lemon for Lemmy as an homage to Apollo and is greatly inspired by his amazing work (Thank you, Christian!)

Features

Some of the currently-working features are:

  • 🔒 Logging in and registering (including instance search + information browsing such as user count, location, accepting memberships, etc!)
  • 💡 Light and Dark modes
  • 🔼 Upvoting / downvoting posts with optimistic updates and rollbacks (including swipe to vote!)
  • 🚀 highly performant feed with infinite scroll
  • 📚 persistent cache to read while you're offline

My goal is to make this a fully featured Lemmy client for iOS, and hopefully one day as good as Apollo is/was!

That's all for now. Here's some screenshots. Until next time!

Dark Lemon Light Lemon

241
 
 

Hello All,

TLDR:
I would like to contribute to an Open Source project but don't know where to start. Do you know any cool project that need help and have an "easy" codebase?

Long Version:
I am Coding for about 4 years now and did quite a few hobby-project on my own now. I would really like to step into some OpenSource Project for a few reasons:

  1. I hope to learn from others on that way. See how other devs write code or maybe improve mine or something along these lines.
  2. More users than on private projects. If I do a project on my own, no one ever finds it. And it would be really great to see my code "in action".
  3. Giving back to the community. I am using a lot of Open Source Software and would like to support the community that way.

My Problem is, I don't know where to start. There are so many repos on GitHub/GitLab that it is hard to find something with potential, that doesn't have a few hundred PRs waiting because there are already to many people working on it. Or Maybe I am just searching wrong. If that is the case, please give me a hint :D My skill-level is somewhere in the middle. Not terrible, but not a pro either. Because of that I would probably focus on smaller issues to get started. But I always strive to improve and get better.

My preferred languages are Python, Go or Javascript.

If anyone of you know a not to complex but cool project, that needs support, let me know.

I am happy about any feedback.

242
 
 

List of artist/album/song names that make dealing with music metadata harder than it should be

243
 
 

I know there are a couple of apps already in development, but I kinda want to have a go to learn how to build an app in Swift. So what are some good resources to learn?

244
 
 

I just joined a new team (very small: four developers in total, with two of those leaving soon). The two original developers set up the git repo on a folder in a Windows network share.

Am I taking crazy pills, or is that a bad idea? Our organization does have github/gitlab/bitbucket available, so is there any good reason not to use those hosted solutions?

245
 
 

I looked into the lemmy src, and what is supposed to be a CRUD API has several layers of abstraction. Same at work, where we have hexagonally structured apps where following any sort of logic is literally impossible. What are your thoughts?

246
 
 

(warning lots of wordy words)

I feel like i stink at everythign and im limited to what my low end pc can do it use to be an office pc but it got refurbished and whatnot (still low end). I usally just go to chatgpt to learn coding and youtube too but i guess thats the lazy way of the coder and i use chatgpt to code to becasue i stink at everything. i have no talent, skills or good hobbys and im dylexic and autistic but yet for some reason and im not sure why i want to make a game. I just feel very lost with things like wanting to make a game i even made a post asking what engine or framewrok i should use most said godot, python, love2d mostly but im not sure how to start its like some werid form of writters block with the fear and guilt of failing gamedev. i tried making a endless runner in godot but i coudent get the player to stand on the platform without falling thru so i raged quite and gave up.... but i still have the urge to create or be creative.

247
 
 

I'd love to see what kind of a game dev community we have here on beehaw and help each other out. Whether you use Unreal, Unity, Godot or even your own engine, let's see what you got!

248
 
 

There is a request for a comment on this issue Controversial posts and comments #2515. Do you have any ideas on how best to implement this?

I'd like to see some more people chime in with opinions, but maybe that'll come with a PR. At the very least, it's something that can be moved forward with.

— dcormier

249
17
submitted 1 year ago* (last edited 1 year ago) by CinnamonTheCat to c/programming
 
 

I've recently been wondering if Lemmy should switch out NGINX for Caddy, while I hadn't had experience with Caddy it looks like a great & fast alternative, What do you all think?

EDIT: I meant beehaw not Lemmy as a whole

250
 
 

Understanding ActivityPub and Federation

I have tried to understand how Federation works but I'm getting a feeling that there's some rather large gaps here. My first attempt was to find an API implementation in python, 3 wasted hours of my life later and I'm making requests.request() calls like it's 2007. And I still can't access the content as presented on the webinterfaces. There doesn't seem to be a way to access eg the communities tab via activitypub? Any Help?

@programming

view more: ‹ prev next ›