- 6 Posts
- 112 Comments
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•The Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blog
2·16 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·24 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·26 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·26 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·26 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
7·27 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·29 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
ADHD memes@lemmy.dbzer0.com•Keeping busyEnglish
91·1 month agoLearn to feel emotions in your body and allow them to pass through you.
bestboyfriendintheworld@sh.itjust.worksto
Programming@programming.dev•Why Does Development Slow?
4·2 months agoComplexity is inherent an unavoidable.
bestboyfriendintheworld@sh.itjust.worksto
ADHD memes@lemmy.dbzer0.com•Do you have people around you that think they have ADHD but they clearly dont, or have it at a much lower level than you?English
41·2 months agoDont make ADHD part of your identity, it’s unhealthy.
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
ADHD memes@lemmy.dbzer0.com•D please. Final answerEnglish
3·2 months agoI managed to make myself a nice breakfast. As a reward I took a moderate amount of LSD and am about to indulge in some weed.
bestboyfriendintheworld@sh.itjust.worksto
ADHD memes@lemmy.dbzer0.com•Fuck you brainEnglish
3·2 months agoAnd decide what game to play.
bestboyfriendintheworld@sh.itjust.worksto
ADHD memes@lemmy.dbzer0.com•*Inner irritance at its finest*English
1·2 months agoThe key is to not do hobbies alone.
bestboyfriendintheworld@sh.itjust.worksOPto
ADHD memes@lemmy.dbzer0.com•How to finishEnglish
21·3 months agoIt’s simple, not easy.
bestboyfriendintheworld@sh.itjust.worksto
ADHD memes@lemmy.dbzer0.com•[ADHDinos] HobbiesEnglish
4·3 months agoGardening can cost zero money.
Pot: an empty can, joghurt package, cut off plastic bottle
Dirt: go outside and scoop some up, people who make their own compost often give some away
Seeds: fruit and vegetables from the supermarket often include free seeds (e. g. bell peppers)
People also give away plants and cuttings all the time.
You will need a spot that gets some sunlight though.
bestboyfriendintheworld@sh.itjust.worksto
ADHD memes@lemmy.dbzer0.com•LOOK A SQUIRREL you assholesEnglish
7·3 months agoIt’s not a super easy thing. It’s a simple but very difficult thing.
Trying harder doesn’t work with ADHD.

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.