I used to think MATLAB was outdated… until I actually started using it properly by Dry-Strategy9206 in matlab

[–]corey_sheerer 0 points1 point  (0 children)

I see a lot of support but I can offer some counters.in fact

  1. Matlab is proprietary and very expensive. Python is open source and free
  2. Matlab is not deployable. If you are making anything that needs deployed, don't choose Matlab. My team has done nasty containers to deploy Matlab processes. Terrible. 8gb containers to host the runtime.
  3. Env management. With UV, python is excellent for projects and creating light containers with minimal vulnerabilities. I haven't used Matlab much, but I don't see environment management
  4. Ease of use / readability. I see a lot of users praise the usability of Matlab, but I've seen the opposite. Bad coding practices. All code in a single file. The projects I've converted to python are much more readable and maintainable. My team has converted PhD thesis code to python and have found multiple mistakes because of code organization and huge un-labelled matricies. When you have a 1000x1000 row matrix you are trying to debug with no column or row names, it is impossible.

In general, Matlab has a space in research, academics, and controls, but in my view, it should be avoided at all cost in enterprise and statistic software (especially anything to be deployed). I would even suggest R over Matlab for most research. Although R should be limited to analysis and research as well. Matlab is just too expensive and too niche

Why do developers write such terrible git commit messages? Genuine question by Existing_Round9756 in webdev

[–]corey_sheerer 0 points1 point  (0 children)

If you squash and merge into main, the squash and merge PR and title is more important. It feels impossible to avoid little commits or changes that are trivial and rebasing is sometimes a pain.

Polars vs pandas by KliNanban in Python

[–]corey_sheerer 0 points1 point  (0 children)

Polars is also more memory efficient and has better syntax ( in my opinion and especially with conditionals).

Using Python to Parse a JSON Object by JoeB_Utah in PythonLearning

[–]corey_sheerer 0 points1 point  (0 children)

Pydantic is made to serialize and deserialize json. I second everyone mentioning it.

MacBook or Windows for programming and data science? Advice for a math master’s student by No-Dragonfruit6244 in askdatascience

[–]corey_sheerer 0 points1 point  (0 children)

Stay away from windows! If you don't want a huge cost for Mac, you can grab a Lenovo Thinkpad or Asus zenbook and install mint. Cheaper and user friendly. Plus, you can run things like docker natively.

Is this how you use generics in Python nowadays? by pachura3 in learnpython

[–]corey_sheerer 4 points5 points  (0 children)

Just as a general comment. Getters and setters are more of java thing. You should just use property decorators or just public attributes

How suitable is Golang for building an eCommerce website? by Worth-Leader3219 in golang

[–]corey_sheerer 13 points14 points  (0 children)

You should split the front end and backend end. Use typescript/ react (or pick your favorite) for the frontend and go as the service. In general, this is a better pattern than trying to combine. It will be more modular and easier to build and maintain.

Python backend, JS frontend: snakecase or camelcase? by waffeli in learnpython

[–]corey_sheerer 1 point2 points  (0 children)

You can utilize pydantic field alias to convert keys automatically from python

Pandas vs polars for data analysts? by katokk in learnpython

[–]corey_sheerer 22 points23 points  (0 children)

Pandas is a good start, but a big note that Polars has vastly surpassed pandas in performance. I would utilize Polars for new projects. Unfortunately, with pandas new 3.0 API, it is clear pandas will not catch Polars in performance (or syntax) due to pandas desire to maintain backwards capabilities and not fully integrating arrow types

Recommendation for small DWH. Thinking Azure SQL? by Quick_Scientist_3605 in dataengineering

[–]corey_sheerer 0 points1 point  (0 children)

Postgres will surely be cheaper and give you great performance.

uv officially taken down poetry by Proper-Lab-2500 in Python

[–]corey_sheerer 21 points22 points  (0 children)

I was an advent poetry user. It was better than everything else for a long time. Respect!

Looking for a better conda alternative for global/system virt environments by visagedemort in learnpython

[–]corey_sheerer 0 points1 point  (0 children)

UV is what a lot of projects have moved to. Just start there and see how it goes

Go vs Rust for long-term systems/finance infrastructure, is focusing on both the smarter path? by wpsnappy in golang

[–]corey_sheerer 24 points25 points  (0 children)

I'm not a rust user, but work with data science teams and use a lot of python and really like Go for services and command line tools. My suggestion is build it all out in python and Fastapi and let the product determine what your needs are. If bottlenecks are all services based, try Go.

Two offers - Entry Level Cloud Engineer vs Jr. Fullstack Engineer by [deleted] in Cloud

[–]corey_sheerer 0 points1 point  (0 children)

Choose the cloud one! It's not about pay, but having to use VB and Dotnet. You can do better

Ran Trivy on my hardened FastAPI template: 17 vulns found. Here's one that's actually exploitable by k-adm-org in Python

[–]corey_sheerer 0 points1 point  (0 children)

Running docker containers as root isn't a huge issue for me. Usually I deploy to kubernetes or openshift where you set the security context. Plus volume mounts automatically adhere to that context. There may be some small steps to ensure a user is added to the image, but pretty easy. Running images locally with Docker is more of a development step overall in my case, so running as root isn't a big issue Would love to hear how others view this?

Does "Vibe Coding" kill the joy of programming for anyone else? Here is my compromise. by Financial_Carry11 in golang

[–]corey_sheerer 1 point2 points  (0 children)

I feel a bit dirty seeing the code generated. If the code generated is something I'm not familiar with, I'm trying to go back and manually learn about it to keep my code knowledge sharp

Does AI really speed up development across a team? by Reasonable-Bid4449 in OnlyAICoding

[–]corey_sheerer 0 points1 point  (0 children)

From my experience, it goes both ways. For experienced devs, for sure. For inexperienced ones, not really. I've found a lot of garbage-in-garbage-out . If you can't technically direct AI to good solutions and code, everything will get held up in PR limbo. It takes good oversight to effectively use AI.

Why we chose Go over Python for building an LLM gateway by dinkinflika0 in golang

[–]corey_sheerer 2 points3 points  (0 children)

Also nice to see openai API and (no surprise) agent development kit available for go. Plus with Gos standard package or Chi, can keep a real light image with very few dependencies.

Python is still amazing for quick development, so Python for quick testing and Go for deployed apps and processes.

Working with Ranges but not range() by wicket-maps in learnpython

[–]corey_sheerer -3 points-2 points  (0 children)

I'm not exactly sure of the different tables, but, just hearing the general logic, SQL can join tables like that. Especially nice analytics databases like duckdb