|
yo leaving out braces is fine as long as you indent
|
# ¿ May 19, 2013 13:30 |
|
|
# ¿ May 10, 2024 09:31 |
|
Cocoa Crispies posted:check to see if something will work, do something and check to see if it failed (though i guess if ur lucky enough to be using a language where exceptions aren't expensive as gently caress u can skip the first part)
|
# ¿ May 19, 2013 13:50 |
|
no but seriuosly the answer is, and always is, understand your tools and how they work and code what makes sense in the moment if you're processing 10 million files per day and they are always there and only one day two years ago a file was missing because some idiot cj deleted it from under your job, sure don't check in advance because it's wasted cycles conversely if you're converting 10 million strings per day into numbers and roughly 1% of them won't convert and when they don't you put in a -1, use something like tryparse or isnumeric assuming it's faster than exception handling with the tools you use
|
# ¿ May 19, 2013 13:57 |
|
Doc Block posted:What happens when you add a statement but forget to add the braces? same as when u accidentally use assignment instead of checking for equality in an if statement: poo poo breaks because terrible programmer wasn't careful (i'm being nice b/c this is a safe zone for terrible programmers)
|
# ¿ May 20, 2013 04:10 |
|
keygen and kel posted:i think i want to start a project to access data in this horrible industry specific XML format from a horrible Web Service and dump it into a sql db. I'm back and forth between java and c# but i'm think c# because who am i kidding everyone uses windows, i'd like to make it not terrible what's a good starting point for learning c#. (i've done development before but it was a long time ago.) http://msdn.microsoft.com/en-us/vstudio/hh341490 http://www.learnvisualstudio.net/
|
# ¿ May 31, 2013 20:56 |
|
Shaggar posted:I don't like the xml datatype. there may be some highly specific valid uses but it smells bad. like it was probably a convenience thing for people who used to store xml as binary in their db and now its destined for abuse by idiots who cant do data design. it's kinda dumb if you use it right (i.e. querying from it) it's slow as heck and encourages bad design if you just use it as a place to dump xml files for lookup later, use a filestream
|
# ¿ Jun 17, 2013 17:45 |
|
prefect posted:just relax; every language is blamed for the sins of its worst users qft
|
# ¿ Jun 18, 2013 01:05 |
|
dur posted:ok so i don't know much SQL but i was just given a big file full of SQL queries and i get most of it but there's these parts like what database is that against i use ms sql server and oracle and that's greek to me
|
# ¿ Jun 18, 2013 16:05 |
|
dur posted:well i figured it out. notepad++ highlights both COUNTs like their sql command things, but the second one is just a text output, like a column header. i changed it to FeatureCount so it's not as confusing oh right, so like select count(1) as count except coded in a non-obvious way
|
# ¿ Jun 18, 2013 17:44 |
|
wolffenstein posted:In the past week, I pulled an all nighter at a hackathon just to find out they threw out my backend code because "the frontend didn't look the way I imagined". I went to a meetup for civic coding, ended up being the only experienced programmer that knows git, and taught a group of designers how to use git and github to manage their 5k+ lines of single file javascript. is this a real post bc if so drat you can do better don't give up man
|
# ¿ Aug 1, 2013 18:24 |
|
i like tabs because if you like two space tabs or four space tabs or six space tabs or one space tabs it's only a text editor config away
|
# ¿ Jan 8, 2014 00:33 |
|
spaces are ok i guess mixed tabs with spaces is evil
|
# ¿ Jan 8, 2014 00:34 |
|
prefect posted:you're moving on up. if everything succeeds: you're a big success and had great ideas. if everything fails: you have architectural experience and have mistakes that you can draw upon as learning experiences truth. i have learned so much from my design gently caress-ups
|
# ¿ Jan 16, 2014 04:03 |
|
i like that you can do circuits in minecraft it's neat for that but then they added magic and xp and garbage like that and i was like "children should not be exposed to this"
|
# ¿ May 6, 2014 02:46 |
|
Cold on a Cob posted:children should not be exposed to this" mlmp
|
# ¿ May 6, 2014 02:46 |
|
pre-emptive: the p is for post you sickos
|
# ¿ May 6, 2014 02:46 |
|
i've been coding in c# so long that i have completely forgotten how to manage memory guess i need to learn to manage my memory about memory management
|
# ¿ Jul 8, 2014 19:27 |
|
Citizen Tayne posted:I don't have one. I just remember things. That's what your brain is optimized to do, remember things about people. not with all the goddamn name changes and av changes it's not
|
# ¿ Jul 13, 2014 03:44 |
|
AlsoD posted:they like to do their management close to the metal lol
|
# ¿ Jul 13, 2014 19:38 |
|
pointsofdata posted:there's a stylecop rule which says any use of #region is not allowed, which i don't really get. maybe that's why i'm in this thread! the only times i've seen #region in use (where it helped a lot) are really crazy dense codebases with poor soc and big nasty swiss army classes
|
# ¿ Dec 23, 2014 00:12 |
|
Shaggar posted:array and list both have sort methods oh did they add natural sorting for strings at some point? because that's what we're talking about here
|
# ¿ Dec 26, 2014 17:09 |
|
prefect posted:you start with a giant manual process and then you automate that yep i guess i'm technically our 'build engineer' and it's just 'push button, receive software' except in prod, they wouldn't let us set that up even if i wasn't the one pushing the button. i guess that's going to change though, or so i heard through the grapevine
|
# ¿ Jan 13, 2015 19:41 |
|
idk about msft but i think i read somewhere that apple maintains old machines for regression testing. wouldn't be surprised if msft does the same. also don't they bump up min requirements with patches sometimes? this could be why but idk, idk.
|
# ¿ Jan 14, 2015 15:06 |
|
i want a dumber house, not a smarter house. i want things i can fix myself with a soldering iron.
|
# ¿ Aug 11, 2015 05:02 |
|
eschaton posted:the only database ports I've ever really heard of in significant number have been i've seen a lot of oracle to sql server too oracle to anything can be pretty brutal though, loving oracle joins everywhere
|
# ¿ Aug 22, 2015 01:56 |
|
triple sulk posted:i should use vs more than i presently do especially considering i can use it 100% of the time vs + resharper is great
|
# ¿ Aug 22, 2015 01:59 |
|
sometimes trying to force everything into some abstracted dependency injected multiple inheritance poo poo pile is way worse than copy/pasting, hth
|
# ¿ Aug 26, 2015 21:21 |
|
been coding for around 15 years. i figure another 20 years or so of dev work and i'll figure out when i should refactor and when i should leave well enough alone. maybe.
|
# ¿ Aug 26, 2015 21:22 |
|
bobbilljim posted:is there something inherently wrong with this if so please inform me (other than that its php top lols) idk php but usually you just use a built in replicate function, or at least a for loop
|
# ¿ Aug 26, 2015 23:05 |
|
99.9% of the time if you're loving around with strings, someone already wrote a function to do it, so use it instead. unless you're using sql server in which case download sql# lol
|
# ¿ Aug 26, 2015 23:12 |
|
AWWNAW posted:one project i've had to deal with used a DI framework but instead of injecting the actual dependencies they just injected the whole DI container into the ctor of each class
|
# ¿ Aug 27, 2015 00:23 |
|
Luigi Thirty posted:I just got fired lovely how's the package? if it's good: enjoy your funemployment, calmly update resume, look for a good job if it sucks: get drunk as poo poo this weekend, update resume in a panic, take first lovely job you're offered
|
# ¿ Feb 3, 2017 16:49 |
|
AggressivelyStupid posted:Luigi what did you do rm -rf on the production database drive and the five backup methods he was using all failed to restore
|
# ¿ Feb 3, 2017 16:55 |
|
uncurable mlady posted:unless you're a dba yessss
|
# ¿ Feb 13, 2017 13:45 |
|
MALE SHOEGAZE posted:any of you all ever program while high? i find that it helps me engage with certain kinds of problems differently. more than anything, i think it makes me a more patient reader. i find a single beer lets me get into it faster, i think maybe it just makes me less anxious?
|
# ¿ Feb 13, 2017 13:46 |
|
Shaggar posted:mssql for sure. i want materialized views and natural joins in mssql shaggar when will i get them??
|
# ¿ Feb 14, 2017 05:03 |
|
Shaggar posted:you can index views in mssql if you really want to and natural joins are bad and dangerous. indexed views are not the same as materialized views. i'd like the option to use either in different scenarios. why do you believe natural joins are dangerous? you can already change FKs to silently break your existing queries so if that's your argument i don't buy it
|
# ¿ Feb 14, 2017 13:08 |
|
Shaggar posted:Natural joins involve the server deciding which keys to join on which can change without you being aware of it. if someone adds a column with a name that matches a column in another table and the server decides to join on it now you've got different behavior without warning. natural joins are a really bad idea and they only exist to maybe save you a little typing. ah. i want natural joins that use fks not something fragile like a column name, but the standard and implementations out there are as you describe so i'll concede on that one i still want materialized views in addition to indexed views though
|
# ¿ Feb 14, 2017 17:10 |
|
Shaggar posted:idk what the benefit of a materialized view is over an indexed view indexed views to have ridiculously restrictive prerequisites, like no outer joins allowed and no referencing other views. this is why i've never been able to use them effectively. so presenting a choice between them is dumb on my part, i should have just wrote 'i want indexed views that work like materialized views ie. less restrictive requirements'
|
# ¿ Feb 14, 2017 17:51 |
|
|
# ¿ May 10, 2024 09:31 |
|
Rex-Goliath posted:upper management swooped in out of nowwhere to dictate that we should convert all of our xml to json during transmission in order to save bandwidth lol just put everything into attributes and use self closing tags bam you're done
|
# ¿ Feb 20, 2017 16:10 |