|
For us it is the huge range of third-party packages and how easily Python interfaces with other systems.
|
|
|
|
|
import framework
import that-cool-library-someone-made
to be that nitty gritty announce, C# or c#.net, which includes so much everyday functions. And net 6/c#10 have global usings that hides a bunch even more, yay.
So I would lean that python has a huge early years, "free" publicity growth, which then just lingers and continues to grow because its popular, which makes it more popular, and repeat.
think 10 years ago, .net 4 is great, but still windows, and visual studio a heavy weight install.
python, with scratch and other simple editors, and interpretation language, comparably more easy errors
again comparing 2012 python world to c#.net.
add 10 years people putting time and effort into python, they create packages, they share, improve them, write guides, and how tos.
look at just c# changes in last 5 years, yearly major version numbering changes compared to 2008-2012 of slow if anything.
So what you start with has big influence, I can switch between javascript and c#.net fairly easily because I dont have to worry if a space or tab, or if not align. VS with errors improved somewhat in last 10 years.
but if someone starts with a python syntax of writing, then semi-colons and braces will be a pain.
cross platform, run on raspberry pi, or linux, again most of that c#.net core has had to rewrite (or however that had to do to get methods which were copywrite to make code open source) has been done in last 5 ish years.
Performance gains from core 3 to 5, significant and leaps things like json parsing for asp.net comparable if not faster then node.js.
not sure if any makes sense, simply attempting to compare the legacy with what have today, and why python might appear more popular
|
|
|
|
|
Great questions. I have recently started using Python for machine vision prototyping as well as exploring the machine learning libraries. While I like the language, the lack of structured architecture is a bit unnerving. It reminds me of National Instruments LabVIEW which is also very easy to use and make a big mess in.
I have had conversations with our software department and there are some very good libraries available in Python for complex math operations that are well documented and have community support. There are similar libraries available in C#; however, they are difficult to implement and lack proper documentation or support. I think this may have more to do with the underlying code that supports Python is C++ rather than C#, so there is some conversion/wrapping that needs to be done to make the library available to C#.
I think it comes down to your use case, but I don't think there is anything available in Python that isn't available in C#. A lot of the available Python libraries are wrappers for other general purpose code blobs available in other languages. Case in point is the Kivy library for building UI interfaces. The code base underpinning Kivy is god-level genius. Some of the implemenation requirements are a bit clunky, but I have been impressed so far with the library.
|
|
|
|
|
MSBassSinger wrote: What value-add(s) does Python bring that I cannot get now in C#? What disadvantages are there, if any, to using Python over C#?
Not to be flippant, but if you have C#/T-SQL experience, go ahead and learn Python and you will discover the advantages and disadvantages, and sometimes they overlap.
I used Python for a large (60+ Beaglebone SBC's [Single Board Computer]) inhouse project for a customer. (If any of you know my somewhat colorful past, you'll know what "industry" this was for.) We implemented a simple web server for each Beaglebone, used RabbitMq for messaging, had a small screen with a GTK interface for the graphics, and custom IO for the various buttons and one-wire iButton readers, all running under Debian.
The cool thing was that I could test all the software (GTK runs in Windows as well) and emulate the hardware I/O on my Windows machine, debugging it directly in Visual Studio. And the software included an auto-update process that would automatically update all 60+ Beaglebones (that took some trial and error but eventually worked.)
Being able to test the app on Windows and deploy it automatically with WinSCP to the test jigs (I had 6 Beaglebones at home for testing) was, frankly, a very pleasant experience.
Would I write a professional web server with database requirements in Python? Heck no, but Python definitely has its uses, certainly in the SBC arena.
|
|
|
|
|
I work out in the real world writing C#, JavaScript, TypeScript, and SQL everyday.
I also teach one night a week at a community college, Data Structures in the Spring semester and a programming language (currently C) in the Fall semester.
My observations is that Python is a scripting language and, like other scripting languages, useful for doing things a little more rapidly but inexactly.
My observation of students who want to know why they can't use Python in the Data Structures class (college requires C++ for transfer reasons) is that the new crop of students really don't understand what or why they are doing things but are monkey-see, monkey-do programmers. Of course that doesn't apply to the 5 - 10 % of my students who really DO understand how a computer works.
The net being, a lot of computer is "close enough is good enough" in our world of today. Obviously that doesn't apply to certain financial type transactions in banking, real estate, etc, but DOES apply to a lot of things that are just providing info.
|
|
|
|
|
i have zero learning hours of python and yet i have never had problem a reading Python code. to be real, that was only 3-4 times and the code was short
the first time i saw Python was in the book Foundations of Python Network Programming. somehow i got this book in my hand and i started reading immediately. i was surprised how easy i understood the language. it was so clear that i didn't bother to write the examples in Python, but i translated them on the fly to C on the Windows platform. the only gotchas were the ones with the Win32 API
next comes what's important about C# and Python, that i think is highly subjective. at the moment i get my living from writing C# code. i'm not good at it, just barely good enough for people to put up with me. i feel repulsion with languages like Java and C#. i was assigned to read data from a server and luckily from me i found code examples:
https://github.com/flightaware/firehose_examples
i was looking at the C# example and looking and looking... even had it compiled and it was working, but still i couldn't grasp it. then i turned to the Python example and i immediately understood what needs to be done. what is the essence. that's what i mean when i say your question is highly subjective. there is no "the right language" and "the only right thing to do for the common good", because too much right turns into left
i believe, no matter what others say (although some of those people i know for decades and value their opinion highly), based on my experience, that Python is clean and very good language for introduction into programming. regardless if it will potentially introduce bad habits on may-have-been-future professional programmers.
you know when you ask how to do something in git and you get a 10 page explanation of the theoretical possibilities and historical background of all version control software VS an answer saying: type this 4 words and it will do? for me, the former is C# and the latter is Python
cheers
|
|
|
|
|
Hi,
I am harley, new to the group. I would like to add the best of my knowledge to the group and would love to learn more in technology from you guys.
modified 26-Sep-22 8:57am.
|
|
|
|
|
Welcome, maybe you can tell us a bit more about yourself and what technologies you are interested in.
|
|
|
|
|
Welcome Harley. Looking forward to your contributions and enjoy exploring the site!
|
|
|
|
|
|
I see ransomware as such a threat, as does any sane IT person... such a great business model. Salesforce is completely SAAS. I've been dealing with it some. It's interesting and ... can be standoffish, hard to reach. I'm wondering if that barrier makes it protected from ransomware.
|
|
|
|
|
There is no such thing as proof.
And there is also no point in asking Salesforce, I mean, they're probably pretty good, but no-one is perfect. Also: Security Questionnaire | CommitStrip[^]
Just make sure you have off site backups. And also a backup plan.
|
|
|
|
|
That's the thing. While my knowledge of Salesforce is not advanced, having your own offsite backups seems pretty near impossible. Just getting to the data is very hard. Since it is all browser based and a few other things, it might be fairly easy for the Salesforce folks to protect the data pretty good on their own. I don't know.
|
|
|
|
|
The only systems that are ransomware-proof are systems that don't have a network access.
|
|
|
|
|
That's the point. Salesforce seems to have very limited access other than by browser. It may be designed that way with security in mind and it may allow a very high degree of protection. That is what I am curious about.
|
|
|
|
|
Or a user!
Or a user with admin privileges!
I am sure that some hacker has a script that given the correct access(admin) could encrypt all of your data in-place.
How easy is it for SalesForce to fall back/restore to a time frame before the hack?
|
|
|
|
|
It's not "completely SAAS"; at some point the business has to interact with it and that's one weak link (like transferring infected image files).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Not too shabby. I was sort of thinking that since all data enters through forms, it could be examined for safety. I didn't think of images that were uploaded. I don't think it is a large vector of attack, but it is one. Thanks
|
|
|
|
|
Michael Breeden wrote: . It's interesting and ... can be standoffish, hard to reach. I'm wondering if that barrier makes it protected from ransomware.
Just because it's hard to reach doesn't make it ransomware-proof. Login credentials can still be compromised, tokens can be stolen, even two-factor authentication is proving to be more of an inconvenience for legitimate users than the bad guys (I don't have the details, but there was a discussion on this topic not too long ago on the Security Now podcast).
Why the worry about ransomware, specifically, when it comes to Salesforce?
|
|
|
|
|
Quote: Why the worry about ransomware, specifically, when it comes to Salesforce?
It's not that I'm worried about it. I'm curious if it can be attacked by it. I'm mostly a .Net developer, AWS, IIS, Data Center. All of those can be attacked by Ransomware or other malware. Even if a person had login credentials I suspect that Salesforce could not catch a ransomware bug. You might be able to delete the data or change user credentials, but I'm not sure you can infect it with much in the way of malware. That's what I am curious about... They said they couldn't get anyone with Salesforce experience so they just got a senior developer and hoped I'd figure it out
|
|
|
|
|
Michael Breeden wrote: It's not that I'm worried about it. I'm curious if it can be attacked by it.
It can be attacked for sure, and I'm sure they have all sorts of mitigations in place...so the question is, how successful might an attack be?
Anything that gets loose on their internal network will be able to encrypt whatever it's running under has read/write access to. How that might happen however is anyone's guess (or else it'd be fixed).
|
|
|
|
|
First there's noise: a gale blowing outside. (7)
(My browser thinks I already posted this, but I can't see it on CP.)
[edit: found it in W&W. No idea how.]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
modified 26-Sep-22 4:54am.
|
|
|
|
|
First
noise DIN
gale LEA G
blowing outside. (anag)
LEADING
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Well it is easy Monday...
YAUT(uesday).
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
So, a recipe for ragu contains amongst others Pancetta di maiale.
This translates to pork belly or bacon depending on which translation I use.
Question: should it be smoked or not? It's not obvious to me.
|
|
|
|
|