26
60
Why YAML sucks? (programming.dev)
submitted 1 week ago* (last edited 1 week ago) by heikkiket@programming.dev to c/programming@programming.dev

I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it's clunky to use. Can you explain why?

27
14

Omg it's sooo daammmn slooow it takes around 30 seconds to bulk - insert 15000 rows

Disabling indices doesn't help. Database log is at SIMPLE. My table is 50 columns wide, and from what i understand the main reason is the stupid limit of 2100 parameters in query in ODBC driver. I am using the . NET SqlBulkCopy. I only open the connection + transaction once per ~15000 inserts

I have 50 millions rows to insert, it takes literally days, please send help, i can fucking write with a pen and paper faster than damned Microsoft driver inserts rows

28
111
29
24

Most modern JavaScript UI frameworks boast Reactivity, but have you ever wondered what that means exactly?

In my opinion, Reactivity is largely responsible for making modern frontend development unintuitive to outsiders.

This blog post explains what Reactivity is, and how it manifested in the frontend development world today.

You might find this interesting if you're: a frontend dev unfamiliar with the concept, a non-frontend dev interested in frontend, or just curious what Reactivity is!

30
8
submitted 1 week ago* (last edited 1 week ago) by LadyLeeLoosh@programming.dev to c/programming@programming.dev

One recommended approach to improving an application’s performance is caching.

31
15

I understand that Exact Cover is a problem where you want to select a subset of rows from a binary matrix such that each column contains exactly one '1'. What specific constraints need to be included in the matrix to ensure that the solution adheres to the rules of Sudoku (e.g., unique numbers in rows, columns, and subgrids)? provide a simple example of a Sudoku puzzle and its corresponding Exact Cover representation may be 3x3 sudoku puzzle for example ? I tried reading the Wikipedia article and various links, but I couldn't understand Exact Cover, even though I am familiar with the DLX structure.

32
55
Code Smells Catalog (luzkan.github.io)
33
35
submitted 1 week ago* (last edited 1 week ago) by drspod@lemmy.ml to c/programming@programming.dev

Threat actors are utilizing an attack called "Revival Hijack," where they register new PyPi projects using the names of previously deleted packages to conduct supply chain attacks.

The technique "could be used to hijack 22K existing PyPI packages and subsequently lead to hundreds of thousands of malicious package downloads," the researchers say.

If you ever install python software or libraries using pip install then you need to be aware of this. Since PyPI is allowing re-use of project names when a project is deleted, any python project that isn't being actively maintained could potentially have fallen victim to this issue, if it happened to depend on a package that was later deleted by its author.

This means installing legacy python code is no longer safe. You will need to check every single dependency manually to verify that it is safe.

Hopefully, actively maintained projects will notice if this happens to them, but it still isn't guaranteed. This makes me feel very uneasy installing software from PyPI, and it's not the first time this repository has been used for distributing malicious packages.

It feels completely insane to me that a software repository would allow re-use of names of deleted projects - there is so much that can go wrong with this, and very little reason to justify allowing it.

34
11

Warning that the link goes directly to the PDF, hosted on collaboration.csc.ncsu.edu

35
48

When you're on a website or an app, you look at something (a post, or a part of a UI), and your brain just starts calculating how this was made in your own language.

Like brain, stop, I'm tired, I don't need the calculations right now.

36
87
submitted 1 week ago* (last edited 1 week ago) by Carighan@lemmy.world to c/programming@programming.dev

Obviously, given the subject matter, I had to let ChatGPT generate a summary for this:

The Meta Stack Overflow post discusses a policy decision regarding the use of generative AI tools, such as ChatGPT, on the platform. The key points include:

  1. Ban on Generative AI: The community has decided to prohibit the use of generative AI for answering questions on Stack Overflow. This is due to concerns about the quality and reliability of AI-generated content.
  1. Quality Control: The decision aims to maintain high standards for answers, as AI-generated responses may lack accuracy and context, potentially leading to misinformation.
  1. Community Feedback: The policy was influenced by feedback from the community, emphasizing the importance of human expertise in providing reliable answers.
  1. Future Considerations: The post suggests that while the current stance is a ban, the situation may be revisited in the future as the technology evolves.

Overall, the policy reflects a commitment to ensuring that the content on Stack Overflow remains trustworthy and valuable to its users.

37
25
parquet vs csv (lemmy.ml)

What's your take on parquet?

I'm still reading into it. Why is it closely related to apache? Does inly apache push it? Meaning, if apache drops it, there'd be no interest from others to push it further?

It's published under apache hadoop license. It is a permissive license. Is there a drawback to the license?

Do you use it? When?

I assume for sharing small data, csv is sufficient. Also, I assume csv is more accessible than parquet.

38
19
39
62

cross-posted from: https://lemmy.ndlug.org/post/1064425

And Linux isn't minimal effort. It's an operating system that demands more of you than does the commercial offerings from Microsoft and Apple. Thus, it serves as a dojo for understanding computers better. With a sensei who keeps demanding you figure problems out on your own in order to learn and level up.

...

That's why I'd love to see more developers take another look at Linux. Such that they may develop better proficiency in the basic katas of the internet. Such that they aren't scared to connect a computer to the internet without the cover of a cloud.

Related: Omakub

40
223
submitted 2 weeks ago* (last edited 2 weeks ago) by cyclohexane@lemmy.ml to c/programming@programming.dev

There are a couple I have in mind. Like many techies, I am a huge fan of RSS for content distribution and XMPP for federated communication.

The really niche one I like is S-expressions as a data format and configuration in place of json, yaml, toml, etc.

I am a big fan of Plaintext formats, although I wish markdown had a few more features like tables.

41
72
42
9

This past few weeks, Python 3.13 and the possibility to disable the GIL has seen a lot of coverage and that pushed me to dig into my own language, to see how different our approaches are.

So if you’re curious about the rambling of a pldev, that might be for you!

43
30

I'm trying to feel more comfortable using random GitHub projects, basically.

44
14

Long story short, I don't have the resources to keep any PC on for a reasonable time, so I want to make use of all the hardware I can find, I have an old iPad 4th generation lying around, I know anything related to programming becomes annoying when using a touchscreen but it's what I got, I don't mind jailbreaking it, or even have a Linux distro that actually works on (I'm fine with compiling stuff myself too)

45
6
46
96
47
129
submitted 2 weeks ago* (last edited 2 weeks ago) by iso@lemy.lol to c/programming@programming.dev

I prefer simplicity and using the first example but I'd be happy to hear other options. Here's a few examples:

HTTP/1.1 403 POST /endpoint
{ "message": "Unauthorized access" }
HTTP/1.1 403 POST /endpoint
Unauthorized access (no json)
HTTP/1.1 403 POST /endpoint
{ "error": "Unauthorized access" }
HTTP/1.1 403 POST /endpoint
{
  "code": "UNAUTHORIZED",
  "message": "Unauthorized access",
}
HTTP/1.1 200 (🤡) POST /endpoint
{
  "error": true,
  "message": "Unauthorized access",
}
HTTP/1.1 403 POST /endpoint
{
  "status": 403,
  "code": "UNAUTHORIZED",
  "message": "Unauthorized access",
}

Or your own example.

48
21
submitted 2 weeks ago* (last edited 2 weeks ago) by frostprophet@infosec.pub to c/programming@programming.dev

Apologies if this is the wrong community, happy to remove and post elsewhere.

I'm essentially a beginner to programming. I know some python (made a game of hangman with ASCII art for example) but nothing more complicated than that.

I've been wanting to learn some programming, whether it's python or something else, and I think I've decided on a project I want to make (if possible?).

I aiming to make an emulation front end/GUI selector. I know there are things like RetroArch that are great, but it doesn't have access to all emulation tools (e.g. doesn't have Xbox/PS2/switch).

I'd picture just opening one program GUI that can select the "system" you want to use, then it provides a list of games.

The complexity that I can see is that even if I can run the actual emulator in a container or use a custom GUI to open the emulator it won't 1) be able to show a games list within the same GUI and 2) it won't be an easy back and forth to change emulators.

Not looking for anyone to solve the problem for me, just hoping for some advice on where to start like languages and what I should be trying to learn etc. or if it's even possible. I'm aware there's a high chance it's not!

I've got years to learn and build before my kid might use it, not in a rush.

Thanks!

49
97

Videos (part 1 and part 2) just released for public viewing this week.

Grace Hopper (December 9, 1906 – January 1, 1992) was an American computer scientist, mathematician, and United States Navy rear admiral. She was a pioneer of computer programming. Hopper was the first to devise the theory of machine-independent programming languages, and used this theory to develop the FLOW-MATIC programming language and COBOL, an early high-level programming language still in use today. She was also one of the first programmers on the Harvard Mark I computer. She is credited with writing the first computer manual, "A Manual of Operation for the Automatic Sequence Controlled Calculator."

50
26
submitted 2 weeks ago* (last edited 2 weeks ago) by ZILtoid1991@lemmy.world to c/programming@programming.dev

Originally, I was going to use D, but its current WASM guideline is buried under a lot of Discord threads, all while people are lazy to touch the wiki. I need to test stuff with WASM (use for scripting in applications, not browsers).

Please NO RUST!!! While I see why functional programming is useful (I even use wasmtime as my WASM engine, which is developed in Rust), but is horribly counterproductive for game development, especially if it's opt out like in Rust.

EDIT: In the meanwhile, I've found AssemblyScript, which seems to be good for my usecase.

view more: ‹ prev next ›

Programming

16991 readers
152 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS