- 3 Posts
- 73 Comments
bestboyfriendintheworld@sh.itjust.worksto
Linux Gaming@lemmy.world•PC Gamer: "I'm brave enough to say it: Linux is good now, and if you want to feel like you actually own your PC, make 2026 the year of Linux on (your) desktop"English
1·9 days agoDo you mean lack of quality native applications?
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•The Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blog
2·13 days agoDepending on the language exceptions are used in many different ways. Some use it liberally for all kinds of error handling.
A good feature of Exceptions is you can throw them all the way up the stack and handle them there, giving you loose coupling between the code that calls the dangerous code and the one that catches it.
Exceptions have a big runtime overhead, so using them for normal control flow and error handling can be a bit meh.
Using return types can be great, if the language has good support for. For example swift enums are nice for this.
enum ResultError { case noAnswer; case couldNotAsk; case timeOut } enum Result { case answer: String; case error: ResultError } func ask(){ let myResult = askQuestion(“Are return types useful?”); switch myResult { case answer: print(answer); case error: handleError(error); } } func handleError(error: ResultError) { switch ResultError { case noAnswer: print(“Received no answer”); case couldNot: … } }Using enums and switch means the compiler ensures you handle all errors in a place you expect.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•AI-authored code needs more attention, contains worse bugs
1·21 days agoA friend has had good results using AIDD as an agent framework. It’s basically a built in project/product/scrum master that creates tickets and with that constraints.
Have you tried something like this?
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
1·23 days agoThe available libraries, operating system, and hardware platform pay a bigger role than the programming language. Often the choice of language follows the tool chain and frameworks that fit with the intended program.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
2·23 days agoAnd love reading ten pages of Java stack trace.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
2·23 days agoReasoning about memory use is kind of hard though.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•AI-authored code needs more attention, contains worse bugs
6·24 days agoFor LLM generated code, it can also take a whole to read and understand. When I write code myself, I understand the intention, architecture, and so on. Machine written code is very different. I need to understand how it works. There’s often extraneous stuff in there or weird patterns.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•Suggestions for first C project
3·26 days agoWrite a program that reads or writes a simple binary file format. I recommend midi, TIFF, BMP.
For example write a generator for fractal images.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•Why Does Development Slow?
4·2 months agoComplexity is inherent an unavoidable.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•Lucky enough, I am C++ Developer
5·2 months agoC++ is a great language it you refrain from using 70% of its features.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•I'm new to using Ruby and this tickled me pink
12·5 months agoNever use numbers when calculating dates. Use the data formats and constants the calendar library provides.
bestboyfriendintheworld@sh.itjust.worksOPto
Programming@programming.dev•Read the Following Manual
5·5 months agoWhen learning a new human language, it’s good practice to also learn sentences and practice speaking and writing, not just rote vocabulary memorization.
bestboyfriendintheworld@sh.itjust.worksOPto
Programming@programming.dev•Read the Following Manual
1·5 months agoWhen learning a new human language, it’s good practice to also learn sentences and practice speaking and writing, not just rote vocabulary memorization.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•Screen size & your importance
4·5 months agoThe waste and corruption in private industry is mind bogglingly huge compared to the public sector.
ADB was superior.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•I want to make games someday but where do i start and what should i learn?
2·6 months agoStart with designing a physical card or board game. Play test it until it’s fun.
For artwork practice drawing on paper.
For writing write stories and dialogue.
Make or choose some music.
Use the above to make a video.
No programming required.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•*Permanently Deleted*
1·6 months agoJava has been running serious server software since the mid 1990s. Think WebObjects running on Solaris. Lots of business stuff with big databases still run infrastructure like that.
Java still has the big advantage of being machine agnostic. No need to recompile for ARM or Intel.
bestboyfriendintheworld@sh.itjust.worksto
Programmer Humor@programming.dev•*Permanently Deleted*
1·6 months agoEarly Swift was very slow to compile and start. The debugger was nonfunctional.
Otherwise it was pretty usable. Especially since it got to leverage the huge libraries written for Objective-C.
Which meant it lacked some basic collection types. A Swift native Set was introduced with Swift 3 IIRC. Before that you had to bridge back and forth between Swift and Objective-C. Sometimes leading to unexpected behavior at runtime.
In Objective-C if an object reference was nil, you could send it messages (call methods) without a problem. Swift however did away with this. Optionals had to be explicitly unwrapped. So if the annotations weren’t correct, Swift code would crash at runtime where Objective-C would have been fine. Lots of bugs related to that existed.
Swift peaked around version 4. Since then, they have been adding kitchen sink features and lots of complexity to feel smart.
I still would have preferred an Objective-C 3.0. Chris Lattner was a C++ guy and never really understood Objective-C culture and strengths.

Excel (all spreadsheet applications) are an integrated environment for non linear functional programming with flexible data structures, where you can see all memory and data at the same time. It’s a marvel.