| Off Topic > Off Topic |
| Programming Megathread |
| << < (11/241) > >> |
| Steve5451²:
--- Quote from: Aide33 on October 29, 2015, 02:28:52 PM ---So who programs in C#? i do ;-; --- End quote --- I know a bit but I never have a reason to play with it. |
| Foxscotch:
--- Quote from: Maxwell. on October 29, 2015, 12:11:59 PM ---I actually prefer to code in SQL manually than use the the awkward interface that is access 2007 for databases --- End quote --- an ORM is even better for example, django's: Blog.objects.filter(pub_date__range=('2015-06-01', '2015-06-30') gets every Blog in june (assuming that a Blog model exists and has been imported) plus it works with datetime objects from datetime import datetime, timedelta from .models import Blog Blog.objects.filter(pub_date__range=(datetime.now() - timedelta(days=5), datetime.now()) gets every Blog in the last five days --- Quote from: Headcrab Zombie on October 29, 2015, 01:50:54 PM ---Yeah but it's more of a "we need you to support this old stuff" type job than "let's make something new and exciting" So if supporting old legacy stuff sounds better to you than making new stuff with modern tech, then sure, go for it. But that sounds dull to me --- End quote --- not to mention COBOL is a DoD project so no thx yeah so is the internet but u see: the internet is cool --- Quote from: Headcrab Zombie on October 29, 2015, 11:09:00 AM ---One of my methods in my rest API project at work was throwing and catching a forgetton of exceptions --- End quote --- in python that's the preferred way to do it there's LBYL and EAFP respectively: x = '123' if x.isdigit(): x = int(x) else: print('nevermind') vs x = '123' try: x = int(x) except ValueError: print('nevermind') |
| Otis Da HousKat:
--- Quote from: Foxscotch on October 29, 2015, 04:41:08 PM ---in python that's the preferred way to do it --- End quote --- Python also isn't known for it's runtime performance either though so that's a tradeoff. |
| shitlord:
idk programming well but i can navigate files in a linux terminal meme@mememachine:~$ ls Blockland Forums meme@mememachine:~$ cd Blockland Forums meme@mememachine:~$ ls Announcments Blockland Forums Blockland Files Off Topic Archive meme@mememachine:~$ cd Off Topic meme@mememachine:~$ ls Off Topic Games Forum Games Creativity Drama meme@mememachine:~$ nano Off Topic |
| Foxscotch:
--- Quote from: Otis Da HousKat on October 29, 2015, 04:45:07 PM ---Python also isn't known for it's runtime performance either though so that's a tradeoff. --- End quote --- well, it has nothing to do with the exceptions and you can always use pypy if you wanna be obsessive about speed |
| Navigation |
| Message Index |
| Next page |
| Previous page |