The Big Programming Thread - Page 513
| Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
|
Grobyc
Canada18410 Posts
| ||
|
Morga
Belgium35 Posts
| ||
|
meatpudding
Australia520 Posts
On August 27 2014 16:29 Grobyc wrote: One quick question for the Python guys out there: One of the Python guides I'm looking at in the OP is based on Python 3.2.1. I'm assuming that's just because that was the most recent version when the guide was put out, but am I safe to use 3.4.1 for the guide or should I expect some notable differences? I would guess it's ok. I don't know for sure but if you're looking at python.org then you can find an up-to-date one. Also keep in mind that the latest Python 2.x.x branch still sees a lot of use (possibly more than the 3.x.x branch) . Just something to keep in mind that both version 2 and 3 are perfectly fine to use. | ||
|
Nesserev
Belgium2760 Posts
| ||
|
Grobyc
Canada18410 Posts
![]() | ||
|
delHospital
Poland261 Posts
On August 27 2014 07:16 Nesserev wrote: Well, there are many choices, but you probably would want: - a general scripting language - a web front-end language - a language to write programs Python can do all 3, but it shines the most as a general scripting language. Alternatively, Perl is also used a lot. PHP/Python as web front-end languages are probably all you will need (and javascript and the whole mess). If you want to write programs... almost any general programming language will suffice ![]() My recommendation: Python, C++ and Bash(Unix shell scripting) will get you very far. Web front-end is HTML, CSS, and JS. PHP, Python, and Perl are back-end languages. @Grobyc, if you want to create websites, you need to know HTML, CSS, JS, a back-end language (PHP, Python, Perl, Ruby, JS, C#, almost any language), and SQL. You will also have to learn how to use libraries like jQuery and Django/RoR/ASP.NET/whatever-applies-in-your-case, how to configure web servers (Apache, nginx), SQL severs (PostgreSQL, MySQL/MariaDB, MSSQL). And you need to know how HTTP works. If you want to create network clients and servers, you most likely need C and C++. Possibly a higher level language like Java. Possibly even Erlang. You also need to know how to use the tools provided by your operating system and programming language library/runtime system (processes, threads, other kinds of IO concurrency, IPC, sockets, etc.). And obviously, you will need knowledge of network protocols. Unless you only develop on Windows and for Windows, you should also know shell scripting (not only syntax, but also commonly used utilities and all kinds of traps you can fall into). Oh, and use git. It's pretty useful ![]() | ||
|
Nesserev
Belgium2760 Posts
| ||
|
tofucake
Hyrule19173 Posts
| ||
|
obesechicken13
United States10467 Posts
| ||
|
CatNzHat
United States1599 Posts
I'd put Ruby high on the list for web back-end languages. Sinatra and Rails make it easy to get something up and running without too much effort, which is important to keep from losing interest. | ||
|
delHospital
Poland261 Posts
On August 28 2014 01:29 CatNzHat wrote: From a web perspective Python 3 is definitely used more: http://trends.builtwith.com/framework/Python I'd put Ruby high on the list for web back-end languages. Sinatra and Rails make it easy to get something up and running without too much effort, which is important to keep from losing interest. from the website you linked: python 2.6: 400k, how is python 3 used more?? e: oh, the question was specifically about 2.7. sorry, didn't see | ||
|
Manit0u
Poland17496 Posts
I have this little thingie in my code...
It works correctly for the 'before' part but the else part doesn't for some reason (cells disappear). Expectations: |-----|-----| <-- merged cells (preserving all cells, just expanding them) |--|--|--|--| Reality: |-----------| <-- some cells disappear |--|--|--|--| Documentation: https://github.com/PHPOffice/PHPExcel/wiki/User Documentation | ||
|
nunez
Norway4003 Posts
an nnary-apply_visitor for my variant (now called mux_t) that i posted earlier. apply_visitor(visitor,visitable0,...,visitableN-1); ( demux(demuxer,mux0,...,muxN-1) ) took a some shortcuts and will have to tinker with it, some of the machinery behind it looks absolutely horryfying. finally solving the problem feels good, and going from a trivial unary apply_visitor to an nnary apply_visitor is pretty effin' sweet if i may say so myself. allthough i think compilation time when N grows large will be insane. can now write: struct print_t{[jeh@gloin workbench]$ make | ||
|
delHospital
Poland261 Posts
On August 29 2014 20:30 nunez wrote: [jeh@gloin workbench]$ make Forcefully removing all files and directories ending with an "o" when you run make... ballsy. | ||
|
bardtown
England2313 Posts
I would like to create a graph of hexagons, in which each hexagon will change its state based on the surrounding hexagons. Is there some sort of visual library which will allow me to do this simply, or would it be more straightforward for me to use a coordinate system and perhaps add the hexagons later as a visual aid? Hope that makes sense. | ||
|
meatpudding
Australia520 Posts
On August 30 2014 07:38 bardtown wrote: I have started with Python this week, after a long break from programming (in the past I used C++, and I miss everything about it but I needed to be able to produce functional programs more quickly, and most modelling seems to use scripting languages). Now familiar with most of the basics of the language. I would like to create a graph of hexagons, in which each hexagon will change its state based on the surrounding hexagons. Is there some sort of visual library which will allow me to do this simply, or would it be more straightforward for me to use a coordinate system and perhaps add the hexagons later as a visual aid? Hope that makes sense. Pygame is an easy but basic graphics library. I've used it. It's ok but I don't strongly recommend it. Maybe take a look at SciPy and Numeric libraries for a visual plot library, I don't know of any off the top of my head. If you don't mind outputting to data (text) files and running another process to produce images, then use gnuplot. It can take a while to learn but I've been using it for almost everything since I picked it up. | ||
|
Blisse
Canada3710 Posts
| ||
|
Cyx.
Canada806 Posts
On August 29 2014 20:30 nunez wrote:<snip> yo nunez I'm about to go away for like a week but I swear to god when I get back I'm going to sit down and actually understand some of the shit you post... it always looks cool but I never have time to actually sit down and look at what it is ![]() | ||
|
Prillan
Sweden350 Posts
On August 30 2014 11:23 Blisse wrote: If I wanted to hold a direct connection to a computer/device from another computer/device, how would I do that? I mean like, not routing the connection to a server then back down. Directly. Is that even possible? What would be the closest? Of course, take a look at sockets. It can look very different depending on your language. | ||
|
Blisse
Canada3710 Posts
On August 30 2014 16:55 Prillan wrote: Of course, take a look at sockets. It can look very different depending on your language. I know what sockets are. Am I just asking if I can host my own server at home? I think I'm basically asking that. | ||
| ||


