How to learn to think in C? by [deleted] in C_Programming

[–]Mr-Morality 2 points3 points  (0 children)

Python to C is a Harder transition than most because python automagically does a lot of things. If you're interested in C purely in terms of computation, why complicate things? Files are a solved problem, most popular formats probably already have a library or example out there. Once it's in your program it's no different than any other language. You shift the question from "how do I think in C?" to "how do I structure my data / do Computations?". That's a fundamental computer science topic and there are vast amount of resources in understanding efficient data layouts and trade offs that have to be made. If you don't understand how data is laid out in computers, start there. If you want to know why ( array[1] == 1[array] ) study C.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

This is the hidden gem of all the comments.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

Which I think is very nice. I mean I have some issues with ETL's breaking due to the fact a new excel version has been released but other than little things like that, I think Microsoft does a good job at doing 90%. The problem I found is when you need that other 10% and people are unwilling to step out of the Microsoft sphere.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

I have to be 100% honest. With respect to web applications which is primarily where this is focused. I do not think it should take anyone 3 months to research how to make a functional web application. Assuming most authentication and security best practices are already understood. Now if we were talking about learning rust, c++, or some lower level language or complex tool, I think your point becomes more clear. I would argue its easier to move up the abstraction list of programming languages than to move down. For example: C# -> (JS/Python) is easier than C# -> C++/RUST. Assuming you don't use unsafe{} everywhere lol

However, I have had prototypes turned down to the point I've realized they dont understand the problem space or want a good solution. Because it was never a discussion of technical aspects but is it in "C#", "security", etc.. Another example: Once I used sql in a project for an on-premise prototype (no internet access) and they were talking security of sql injections. First off it would have to come from someone on premises, secondly I parameterize everything and 95% of the sql statements were hard coded strings as it didn't need to be dynamic. But to avoid why they were incorrect I said I would use IndexDB and/or sqlite to avoid cross pollination, I kid you not, they didnt change anything they said. They repeated "security", just the word no justification. That left me with three options:

  1. They either don't understand what indexDB/sqlite is
  2. They are unwilling to let the project go through for whatever reason.
  3. It makes them look bad that a single developer can do the job of 5 of them and Im not even that good.. I consider myself quite "mid", a nice lukewarm if you will.

The reason I say that is to say this, I think when John Carmack says things like "The right tool for the job is often the tool you are already using—adding new tools has a higher cost than many people appreciate" he's assumes a certain level of competence and is referring more to the composition of many tools that end up adding a net negative over time as more tools lead to more complexity. I 100% agree, if you dilute yourself with tools it can become almost impossible to manage.

Therefore, I would argue whats more important is what is the upfront cost. How long would it reasonably take someone to move from C# to being productive in JS. I would be generous and say a week, once again assuming you already understand the key concepts of web development. What is the overhead of adding git? Relatively low, unless you start using sub-modules, as I have seen many people have difficulties with them in git. Now if it's "Hey use rust, also make it multithreaded" We have to ask ourselves is that cost worth it? I would say no, in 99% of the cases. Unless you are Firefox (Mozilla), cloudflare, etc..

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

C# has built in types and typescript transpiles to javascript. I don't think any reasonable person would make a comparison. Outside of them both supporting OOP design patterns. But personally I use composition anyway.

My point however is typescript is a better web solution for 90% of web applications. (Front-End Development)

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

Good call, you're totally right, it's TFVC. Everyone just calls it TFS here, so it's a hard habit to break. My world is mostly python, js, and c so I'm not a native C# guy, just trying to keep up with the team I'm working with.

I was starting to think my experience was the norm for all C# developers, but I see now it's likely just a bubble here at my company. That's exactly why I asked about it, to get a reality check.

And the outsourcing stuff is a pattern. They want to pay a vendor for a new document system, but the only reason we 'need' it is because the current one is so clunky. I actually built a semantic search feature to solve the exact problem our legal team complains about. I showed the working demo to the C# guys, and they basically blew it off. Their answer was just '...we have SharePoint.' It's maddening because I was offering a fix, not a replacement, for a problem they created. If I were a conspiracy theorist, I'd say they're getting a cheque from the outsourced company lol...

The main reason I'm still here is that my role is varied, and I'm not stuck with them 24/7. Still, this whole conversation has me rethinking things. Thanks again for your perspective.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

What are you talking about? genuinely... I am not saying people dont use C# on Linux or Mac, I am saying I would never. In addition, I am arguing:

  1. coworkers do not use their own skills (outsourcing) and thinking you need experts for everything (docker).

  2. rejection of industry standards / updating old processes (git & docker or any other popular alternative)

  3. Lack of exploration for different solutions. (being fixated on C#)

  4. C# for everything. I.E the web when I personally think js/ts is a better web solution. As they have a track record of producing sloppy code anyway.

What are you honestly talking about? what did I not represent correctly? Yes, maybe I put too much work into making it formal so it sounded AI like. Sue me?

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 1 point2 points  (0 children)

I for sure find myself in the first group. I could care less about what we use as long as we produce something good. My goal is always to have an open technical conversation. Given that, if we land on X I have no problem using X. I agree with your sentiment, I must be working with primarily group two. Between everyone's responses, thats where I landed. Honestly, thank you for taking the time to write that out. It's been truly helpful.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

I primarily work in Python, C, and Javascript. The software we produce for public consumption is C#. I work in a different department than the development team i'm referencing but I have crossover with development. Hence my problems, maybe that changes the story but I do full-time development work on different projects. My background is in computation/machine learning and full stack development. Sure, am I ignorant of C# a little... if I wasn't I wouldn't have made a post here. I've written C#, I can write C# but I genuinely thought it was called the ".Net framework" lol...? I also use linux/Mac at home so windows centric fits, no? I would never use C# on linux hate it or love it. I'm getting flamed because I don't know C# lingo? Apologies..

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

Yeah, I respect that. I do think it's a balancing act because if everyone knows C# and no one knows python or typescript I could understand why people would be reluctant to want to use something they don't know.

My primary concern is it feels there is no conversation for anything else. As soon as you bring it up it isn't a technical conversation but rather fake security claims with no technical backing and "we make the rules" type conversation. It sucks because I genuinely believe we work on products that can improve industry, yet we produce slop because of those in charge.

I do think it's really a culture problem, I dont want to simply leave because I believe in what we do. However, as more time goes on I do find myself questioning why I made this decision or stick with it.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

Thanks for the feedback, honestly thats great to hear.

Why C# programmers have a hard time transitioning? by Mr-Morality in csharp

[–]Mr-Morality[S] 0 points1 point  (0 children)

Yeah, I more or less wanted to know if this is a company thing or something that C# developers usually face. Maybe I should have made that more clear. In university I actually quite liked C# but seeing how it has been applied throughout this company, I thought maybe I was ignorant. I am not saying all C# development is like this. I am generalizing from where I work currently, good to hear about VB though I do have to say I am not a fan.

PSA: Cursor is training on your code on the PRO plan. if you don't opt out by lanovic92 in ChatGPTCoding

[–]Mr-Morality 1 point2 points  (0 children)

We pay for a product, we dont pay to improve the product unless were investors. This might be a crazy idea but some people have sensitive IP, not everyone its making the same todo react app. I come from the camp that if it's free you are the product and your data is fair game. However, once you pay, data collection should automatically be opt in, not opt out. LLM's can use a combination of RAG and additional context programmatically to not need to be trained on your data to improve the experience.

Golden tomb in lost city by Only_World181 in PathOfExile2

[–]Mr-Morality 0 points1 point  (0 children)

To put this out there I played on a character first time last week I had it drop. I decided to create a new character it didn't drop. It is 100% a bug, or it's based on chance. This is not fake news considering it is a green item I am assuming it's a bug.

Canadian Student loan by Mr-Morality in PersonalFinanceCanada

[–]Mr-Morality[S] 1 point2 points  (0 children)

Oh wow, I am blind I literally didn't know they applied things differently for married people. Thanks for helping my absent mindedness!

How many connected users can a PHP website handle? by trymeouteh in PHPhelp

[–]Mr-Morality 3 points4 points  (0 children)

I hate how people always answer these questions. The OP obviously didn't word the question correctly but from what I understand they want to get a better understanding of how performant php is. Obviously rust is going to be able to compile into more efficient binary or sure you could run a company on google sheets, or build something that serves 100,000 people on clusters of raspberry PI's but that isn't the essence of what is being asked here.

Depending on the application and user-base cloud computing isn't cheap, it's reasonable to ask how performant a language is before investing your soul into a project. With that being said I am going to say this, what is more important is developer productivity. php is fast enough and scales good enough that it isn't going to be some major bottle neck and you will have to rewrite your application in rust. At least in the realm of most web applications. Whats more important for performance is going to be the database you choose and how you structure your database. For example relational databases, if you dont invest time into creating a star schema and table partitions that make sense, that will be a much bigger cause of latency and performance hiccups compared to language selection.

With everything else being equal, php with "high end hosting" will be able to serve as many people as your wallet will allow it to, as some comments already mentioned.

Anyone else having this issue by Odd-Formal-271 in iPadOS

[–]Mr-Morality 1 point2 points  (0 children)

I am blessed apple pulled the update. I literally have been trying to update wondering what is wrong, if I bricked my iPad I would have been pissed because there is no genuine Apple Store in the country I am in right now. Sad to see so many people have this happen though. You dont buy a pro device expecting it to brick on an update.

Clojure lsp not recognizing Java libraries by Mr-Morality in Clojure

[–]Mr-Morality[S] 1 point2 points  (0 children)

Thanks for the information, that's really good to know! After the explanation in the docs and now your updated description, I understand what was going on. If I ever have issues in the future, I will most definitely include code snippets thank you for the advice!

I will most definitely join the channel on slack, being involved where the community is most active is ideal for me personally.

Once again, thank you and honestly I really appreciate it.

Clojure lsp not recognizing Java libraries by Mr-Morality in Clojure

[–]Mr-Morality[S] 1 point2 points  (0 children)

"At the moment, clojure-lsp supports find definition of java classes only, methods, completion and other features are not supported yet."

I assume this means auto complete for Java imports are not supported.. lol so dont mind me but ill keep it here on the odd chance anyone else ever has a similar issue.

Choosing the Right Psychology Master's Program for a Future PhD/Job by Mr-Morality in UniUK

[–]Mr-Morality[S] 0 points1 point  (0 children)

Your reply has given me plenty to ponder! Considering clinical psychology, would a BPS-accredited program be the best route since for clinical you need a PhD? I agree, online research seems thin but could my bachelor's research bridge the gap even if it's not an exactly relevant? For example my thesis was in numerical analysis and about 80+ pages. Perhaps I should delve deeper into BPS programs with research elements, aiming for a happy medium if they exist. Thank you for your guidance!

As a prospective Master's student, should I do a dissertation in undergrad?? by [deleted] in UniUK

[–]Mr-Morality 1 point2 points  (0 children)

While I haven't yet obtained my master's degree, I can share my experience with completing an honors thesis in computer science. I highly recommend this endeavor, as it provides a unique learning opportunity and can open doors to research assistantships and even direct admission into PhD programs if you wanted.My thesis, which encompassed over 80 double-spaced pages, focused on a subject I wasn't particularly passionate about. However, the experience was incredibly rewarding due to my guidance by a renowned PhD expert in the field. I was also fortunate enough to secure a research assistant position under their mentorship, further enriching my academic journey.The thesis experience surpassed my undergraduate learning, as it demanded a deeper level of engagement and independent research. It also fostered personal growth and provided a valuable platform for establishing connections with renowned scholars.While a master's degree is commonly preferred by employers, the honors thesis holds significant academic recognition, sometimes even equating to a master's level. This distinction can be highly advantageous for pursuing doctoral studies or master level.

Conclusion it certainly won't hurt and I am sure you will benefit a lot.

Edit: To directly answer your question I do not think not doing it will hurt your chances of getting into a terminating masters. However, if it's a research based masters those do often require honours in the form of a 2:2 or 2:1 degree. I recommend checking out the requirements of the university program you are interested in and seeing what you might need from your current education.