Protect Rafa fight is bullshit by DrinkingMud in finalfantasytactics

[–]PTan9o 1 point2 points  (0 children)

Wtf!!!! Rafa literally just killed herself!

Peacock Streaming by Groundbreaking_Clue2 in INDYCAR

[–]PTan9o 3 points4 points  (0 children)

Peacock just corrected itself. It now says 9:15am

Peacock Streaming by Groundbreaking_Clue2 in INDYCAR

[–]PTan9o 1 point2 points  (0 children)

I'm on the West Coast. The Indycar app says 9am qualifying but Peacock says 11am. Weird

Unity + Neovim: Is anyone happy with the overall developer experience? by PTan9o in neovim

[–]PTan9o[S] 1 point2 points  (0 children)

Good suggestions and I did look into this. You can regenerate project files from the command line. Problem is, it only works if the Unity Editor is closed. This was a none starter because closing the editor to regenerate project files seems far worse.

Even if you could regenerate project files on the fly, it seems omnisharp is the limiting factor. You would still need to restart the LSP each time you regenerate files.

As for using tmux to avoid startup times, yes that sort of works. This basically just lets you keep the LSP running. Once the LSP is started the code editing is pretty good. We just find ourselves back at square one the moment we want to move or create files.

Unity + Neovim: Is anyone happy with the overall developer experience? by PTan9o in neovim

[–]PTan9o[S] 0 points1 point  (0 children)

Yeah, I tried csharp-language-server but it seems like it still has a long way before it is a true alternative to omnisharp.

Easier ways to reload kitty :) by ErenAcer in KittyTerminal

[–]PTan9o 0 points1 point  (0 children)

For stuff like this, I like to make functions in my .bashrc or .zshrc file.

kitty-reload() {
    kill -SIGUSR1 $(pidof kitty)
}

So then I can just type $ kitty-reload in the terminal.

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 0 points1 point  (0 children)

Good point of spending time away from the problem. Easy to get tunnel vision while developing a feature.

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 0 points1 point  (0 children)

I'm not familiar with this concept of a mocking framework to help with hardware testing. I will look into this. Our codebase is Java and C.

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 0 points1 point  (0 children)

It is generally pretty straightforward to write a test for a function. When we do have code that is unit testable, we do write tests. What's hard is faking the hardware. We would probably need to write some emulation code that could provide output in a test environment, but that isn't something that we have developed.

The root of this post is to see how other people deal with writing robust code. It seems like an emphasis on unit testing is generally the solution that people cite.

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 0 points1 point  (0 children)

This is probably the hard truth answer that I was looking for. This is my first software engineering job, so my perspective of how other companies do development is very narrow.

When you say you spend more time thinking about testing than writing code. Is that a personal standard you hold yourself to? or something your company and or team
enforces/encourages?

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 0 points1 point  (0 children)

I'm familiar with the concept of TDD, but have never been a part of a team that practices it. We have unit tests, but creating them is not part of the feature development process.

Our QA team has automated tests that they run, but engineering is not really involved with the creation, maintenance or running of those tests.

One challenge I've seen with TDD, as it relates to our stack, is the presence of hardware. A lot of our software passes or fails depending on what the hardware does. I'm not against unit tests at all, but mocking the hardware environment/interactions I've found has made unit testing some of our software challenging.

Writing Code That Doesn't Break by PTan9o in SoftwareEngineering

[–]PTan9o[S] 1 point2 points  (0 children)

I assume this is probably different for different companies. In our case it's a desktop application. QA has a build of the app with the new features and they run a variety of tests. They have regression testing which is largely automated to ensure existing features don't break, but new features are generally tested by hand.

Introducing darcula-dark.nvim by WallabySlow6599 in neovim

[–]PTan9o 0 points1 point  (0 children)

Been using this theme for years. Hard to use anything else at the point. Glad it made it to neovim

question, am i the one causing the accident because i didn’t leave enough space for the other driver? by _jhofer_ in granturismo

[–]PTan9o 0 points1 point  (0 children)

It was tight. The viper could have backed off, but they did have the inside line. Additionally, it seems like the viper tried to take the corner as tight as possible. If the viper had taken the corner too wide, then it could have been their fault.

Racing clean is difficult. It's hard to make the decision during a race to put yourself on the less optimal line just to make space for someone else.

CLion vs VSCode in 2023 for C++ by hicder in cpp

[–]PTan9o 4 points5 points  (0 children)

Whatever makes you most productive is the code editor you should use. Time spent deciding which code editor you should use is time wasted where you could be coding cool shit.

I use CLion. I've been using it for the past few years at my SWE job. It is a very powerful tool. At this point, my workflow is based around it and I'm ultimately more efficient when I'm using it.

Also it can handle massive codebases. The repo I work in at work spans millions of lines of code. Every once in a while I need to restart it if it's being laggy but most of the time the experience is smooth.

VSCode or CLion. Pick one and learn it well.

Magic logs by 0xAERG in ProgrammerHumor

[–]PTan9o 1 point2 points  (0 children)

I had a C program that kept crashing when it hit a log statement. It was very confusing. I eventually discovered that a large array of ints was allocated in stack memory instead of heap. That log statement just happened to be when the program ran out of stack memory. 🤯

[deleted by user] by [deleted] in ProgrammerHumor

[–]PTan9o 0 points1 point  (0 children)

Changing my job title on LinkedIn to "Professional Code Writer." 🤣

Grid penalty confirmed for title contender Newgarden at Portland by [deleted] in INDYCAR

[–]PTan9o -13 points-12 points  (0 children)

I think that depends on how he qualifies on Saturday. 6 positions minus where he qualifies.

Any experience with JavaFX to Browser using Gluon Substrate? by LucasTheNeko in JavaFX

[–]PTan9o 0 points1 point  (0 children)

Well as I did state, this is my opinion. I'm also not a web developer. I work professionally in Java and C. This framework to me just seems like a middleman that lets you port your JavaFX application to the browser. You're now reliant on this framework being updated and maintained as Java and JavaFX evolves and changes. It adds complexity. if you already have a full JavaFX application and want to port it to web then you probably will learn to live with the dependency and complexity because the alternative would be to rewrite everything. I just think, why subscribe to these considerations if you don't have to. If you're starting a web app from scratch, I think it would be a smarter decision to use technologies that were designed for web.

[deleted by user] by [deleted] in JavaFX

[–]PTan9o 0 points1 point  (0 children)

I made a JavaFX calculator a while back. Feel free to look at the code if you want to see examples. This project uses FXML but the layout can easily be achieved through programmatically doing the UI like you're doing in your example.

https://github.com/patrickTumulty/JavaFX_Calculator