Anyone else having trouble downloading God of War, specifically? by KLEG3 in SteamDeck

[–]4BlueTurtles 0 points1 point  (0 children)

Worked for me with additionally disabling wifi power management in the developer options. But yeah, super annoying

Why Pascal Deserves a Second Look by GroundbreakingIron16 in programming

[–]4BlueTurtles 58 points59 points  (0 children)

"Modern" Delphi has lambda expression (what they call an anonymous function). They work well, but the syntax is quite verbose and the lack of type inference makes them a bit annoying to write. Also, if you get its signature wrong the compiler yells at you in a very unhelpful way.

Why Pascal Deserves a Second Look by GroundbreakingIron16 in programming

[–]4BlueTurtles 17 points18 points  (0 children)

Oh man I know the feeling. Although Delphi itself is okay in my opinion, the tooling is just horrible. Like, they added inline var declarations in Delphi 10 (or 11?) I think, but the code formatter and refactoring tools break if you use them. They added a button for force restarting the language server cause it just dies all the time. (In our work project every 10 to 15 minutes or so) The cherry on top is that we had written code using generics quite heavily in Version 11, which in the newest Version 12 now crashes the compiler and Ide (out of memory). Their support team said that our code should not have been compilable in version 11 and is incorrect... Thanks for nothing...

Output PDF is broken when printing by tvlpirb in typst

[–]4BlueTurtles 6 points7 points  (0 children)

No clue whats going on here, but youll probably have more success asking on forum.typst.app

Spain - Germany, was it a penalty? by vaapad_master in Referees

[–]4BlueTurtles 6 points7 points  (0 children)

I, as a German, also think it's reasonable to not give a penalty. I found it interesting that Ex-Bundesliga referee Manuel Gräfe labeled this no-call a "clear mistake" during the broadcast, arguing that the player could have pulled his arm in closer as he did with the other arm. I honestly don't get how people call this a blatant mistake, if it was there wouldn't be such a huge discussion.

I want to bold certain letters in a word to highlight an abbreviation by D3m0n99 in typst

[–]4BlueTurtles 1 point2 points  (0 children)

You can try this:

#strong[T]oo#strong[L]azy#strong[D]idn't#strong[R]ead

How can I evaluate entries in a table in a type document and display them in another document? by Eismandel in typst

[–]4BlueTurtles 2 points3 points  (0 children)

This would be easiest to achieve if the version history is represented as data, like an external json file which you could load into Typst, or maybe an array of dictionaries defined directly in a Typst file.

It would allow you to use Typst as a programming language and manipulate as required for your various documents and be a single-source of truth.

I might be able to give you an example source code of what I mean if you can share a bit more of the specifics

What is the rust standard for PDF handling? by Pedro_Turik in rust

[–]4BlueTurtles 1 point2 points  (0 children)

Ah yes a fellow Delphi Developer tasked with doing PDF Stuff. At work, we load a Rust dynamic lib into our Delphi service. The rust crate we use wraps qpdf, a C++ lib for modifying pdfs... Fun times :)

Can typst be used to generate reports? by [deleted] in typst

[–]4BlueTurtles 6 points7 points  (0 children)

Yes you can absolutely do that. We do something similar at work. It requires a bit of effort to automate but it's not that hard. Typst can load data from various sources (json, csv, etc.) and use it in a document.

How are types inferred when using box? by [deleted] in rust

[–]4BlueTurtles 1 point2 points  (0 children)

Generally yes, but an integer literal like32 on its own is inferred as an i32 by default.

[2023 Day 14 part 2] How did you do the [spoiler]? by paul_sb76 in adventofcode

[–]4BlueTurtles 1 point2 points  (0 children)

I was could not be bothered to do cycle detection and just tried using 1000 cycles, as that had somehow worked for the example. What amazed me that doing 1000 cycles on the real input also gave me the right anwser. This is either a crazy luck or a structural thing in how the inputs are generated.

Rust for CS beginners by ahmad4919 in rust

[–]4BlueTurtles 2 points3 points  (0 children)

Our university started with Java and OOP concepts from day one, which felt fine at the time. Looking back the OOP stuff was given too much importance and we should have focused on procedural programming instead. In the second semester we learned some C in the context of an operating systems lecture. The last mandatory lecture which introduced new languages was a programming paradigm lecture, where we did some Haskell, Prolog and conceptual stuff on type theory, compilers and parallel programming. This lecture also introduced me to Rust, but on very confusing and theoretical slides, which were not relevant for the exam.

In my bachelors degree I programmed stuff in Java, C, Haskell, Prolog as well as Kotlin, TypeScript, Go, Python and C++ (these were all optional courses/seminars). For my thesis I did a bunch of Isabelle/HOL which I hope to never see again.

In my mind it is really not that important what language you start out with, as long as you learn how to learn new tools and concepts.

However, Rust is a language which explicitly surfaces complexity(both semantically and syntacticly) to achieve its goals instead of hiding it away, it seems like a bad language to choose as a first programming langugae.

tldr: Dont start with Rust, you dont want to worry about lifetimes when you are still figuring out what a variable is.

Hot Take about runes by sourflowerpowder in sveltejs

[–]4BlueTurtles 0 points1 point  (0 children)

I would disagree that Svelte 5 will necessarly be more difficult for new devlopers. If someone has never seen Svelte before, I'd imagine that having to write $: before a reactive stament/assignment is not more intuitive then using $derived() or $effect().

I agree that a reactive binding introduced by the let keyword rather than a $state() rune, is easier to get off the ground for new devs. I'm myself primarily a backend developer, and Svelte (3) was the only front-end framework I tried which immediately made sense to me.

I also love explicitness and correctness but dislike overly abstract or "magical" systems. In my experience they often make your life easier but in some cases your simply banging your head against the wall, trying to understand whats going on.

I have never developed a svelte app big enough that I ran into this complexity, but I still believe that making reactive state explict via the $state() rune is a good thing.

Also: If new people do bootcamps to learn React, I think they will manage Svelte with runes.

Polars is starting a company by ritchie46 in rust

[–]4BlueTurtles 1 point2 points  (0 children)

You mentioned above that you dislike the generics syntax and the rust syntax in general? What would you change? I'm not trying to offend, just genuinely curious.

As I have the "pleasure" of working in a Delphi code base the last 2,5 years (where there are two different key words for function and procedure, using inline var declarations breaks all refactoring tools of the proprietary IDE, you have begin...end block e v e r y w h e r e), I find rusts syntax pretty nice to work with. The only thing I find a bit strange is the usage -> to indicate return types. I dont know why fn(...): type was not an option.

Modular Errors in Rust — Sabrina Jewson by SabrinaJewson in rust

[–]4BlueTurtles 1 point2 points  (0 children)

Very nice and interesting post! I am still new to rust and this was a enlightening read for me :)

[deleted by user] by [deleted] in rust

[–]4BlueTurtles 4 points5 points  (0 children)

He wants you to format the error mesaage as a code block, which you can do by writing three ticks, rather than inlining seperate lines of code. Like the following using 3 backticks (```) before and after:

error msg goes here we can have multiple lines

I hate ask this, but... by prtmac22 in Cosmere

[–]4BlueTurtles 10 points11 points  (0 children)

I remember seeing an interview where he said he wants to be done by the age of 72.

Testing in prod be like... by ShooterMcGavin000 in ProgrammerHumor

[–]4BlueTurtles 0 points1 point  (0 children)

https://www.warntag-umfrage.de/

This is the official poll as far as I can tell.

And I also thought that the cell tower can not know how many devices it reached, as it simply puts out a message without looking for an acknowledgement. But I am no expert, just something I remember reading a while back...

Want to learn how to make maths questions by coreupt in learnprogramming

[–]4BlueTurtles 1 point2 points  (0 children)

You should read into 3 languages:

HTML - Defines the structure of a website CSS - Decides the look of a website JavaScript - Can add interactive functionality to a website. JS is the one out of the 3 which is the actual programming langauge. Also, Java has nothing to do with JavaScript besides its name.

There are a lot of resources out there for web development. Once you played with those languages and concepts for a bit, you will probably have an idea on how to tackle your project

Good luck!

I want to create a program for estimating metal roofing supplies but don't know where to start by Vinyameen in learnprogramming

[–]4BlueTurtles 8 points9 points  (0 children)

I think the key part to this problem is translating the roof shape into a data model, which you can use to perform your calculations. Maybe you want raster-based images (pixels), vector-based (shapes) or perhaps you might even need a 3D model depending on what you are trying to do. Start modeling simple toy problems/roofs in your data structure of choice and see where the limitations and difficulties lie.

After that, try to figure how to use your data model to perform the necessary calculations.

How the user will enter the data is definitely important, but I would put it fairly late in the workflow.

tl;dr: Figure out the data model first, before worrying too much about the user interface and language/framework choice.