|
uncurable mlady posted:i thought i hated selenium but i spent a bit browsing through this custom selenium driver we're using and i think i just hate the guy who wrote it update: found the part of the code where he wrote a json parser rather than using a library so now I know I hate this fucker
|
# ? Mar 6, 2015 02:18 |
|
|
# ? May 11, 2024 14:32 |
|
uncurable mlady posted:update: found the part of the code where he wrote a json parser rather than using a library so now I know I hate this fucker you probably don't hate him enough (though the grammar is pretty simple)
|
# ? Mar 6, 2015 02:38 |
|
terrible programmer status: the other guy who started when I did quit so the manager called me into a meeting and said my supervisor says I am doing great at providing janitorial services which shocks me as I definitely have no idea what I'm doing half the time and spend half my shift reading the forums
|
# ? Mar 6, 2015 03:29 |
|
try spendign all your time on here
|
# ? Mar 6, 2015 03:39 |
|
Luigi Thirty posted:terrible programmer status: the other guy who started when I did quit so the manager called me into a meeting and said my supervisor says I am doing great at providing janitorial services which shocks me as I definitely have no idea what I'm doing half the time and spend half my shift reading the forums hooray, your job evaluation depends on things mostly out of your control
|
# ? Mar 6, 2015 04:31 |
|
Brain Candy posted:hooray, your job evaluation depends on things mostly out of your control otoh it sounds like his manager has pretty explicit instructions to not let Luigi quit in the near future
|
# ? Mar 6, 2015 04:44 |
|
Subjunctive posted:otoh it sounds like his manager has pretty explicit instructions to not let Luigi quit in the near future it's fantastic when you get clear signs that this is the case
|
# ? Mar 6, 2015 05:02 |
|
Luigi Thirty posted:terrible programmer status: the other guy who started when I did quit so the manager called me into a meeting and said my supervisor says I am doing great at providing janitorial services which shocks me as I definitely have no idea what I'm doing half the time and spend half my shift reading the forums welcome to white collar work
|
# ? Mar 6, 2015 05:11 |
|
Subjunctive posted:otoh it sounds like his manager has pretty explicit instructions to not let Luigi quit in the near future this is basically what i got out of it yes. "please don't quit you'll start doing developer things instead of janitor things soon we swear!"
|
# ? Mar 6, 2015 06:03 |
|
I'm pretty sure this is also gonna be my status in a few months. the other guy who got this job with me said in a chat with the ceo that he only sent the resume because he wasn't able to close a job in the usa so welp
|
# ? Mar 6, 2015 06:58 |
|
so im goofing with go a bit somebody talk some poo poo about it
|
# ? Mar 6, 2015 07:36 |
|
Jonny 290 posted:so would have been a great language 30 years ago
|
# ? Mar 6, 2015 07:42 |
|
Jonny 290 posted:so "classes? nah, have you heard of seriously, who in the loving 21st century does a language without implementation inheritance. it's the one thing the message sending and generic function schools of OO could loving agree on, and even the prototypes people. (NewtonScript > JavaScript) eschaton fucked around with this message at 07:50 on Mar 6, 2015 |
# ? Mar 6, 2015 07:48 |
|
paging pram
|
# ? Mar 6, 2015 08:13 |
|
go is google trying to make c more p-langy. nothing should be made more plangy. for real though i like the lang, but lack of generics suck and error checking being code:
is awful for a language in 2015
|
# ? Mar 6, 2015 08:25 |
|
Jonny 290 posted:so ive heard its not as good as it could have been but ive never used it. does that help?
|
# ? Mar 6, 2015 08:48 |
|
'ST posted:i have wanted to do a hobby project for a while and i decided recently that i would set up the data model and database first. embrace vertical integration and face to the orm (django) i really don't think there's a good way to do migrations well in a language agnostic way pls correct if wrong
|
# ? Mar 6, 2015 09:34 |
|
my stepdads beer posted:embrace vertical integration and face to the orm (django) The way I'm doing it for one project (haskell, im a bit loco) is to use liquibase standalone for the migration management. Its nice because I can write the migrations as straight SQL with rollbacks, and also have multiple apps with different named migrations that don't collide with one another, yet it's not tied to a particular language. That said I'm generating a complete schema from my code so that I can be sure everything is set correctly on the real migrations. In my code I'm specifically not using an ORM, just a mapper that let's you write type safe queries that map to data types.
|
# ? Mar 6, 2015 10:45 |
|
bucketmouse posted:crosspost from the bitcoin thread for a completely different sort of terrible programmer If only Google had a race service so that we didn't need to hand roll these lists
|
# ? Mar 6, 2015 13:11 |
|
Jonny 290 posted:so The type system is extremely limiting. It loving sucks actually. http://yager.io/programming/go.html Otherwise I really like it so it's a shame about the type system. Go channels are awesome and kinda feel like having kafka / rabbit mq built into your language. My bad programming project atm is using kafka and go channels to implement rpcs
|
# ? Mar 6, 2015 13:15 |
|
pointsofdata posted:The excel api is still utter garbage though, check out msoTriState good thing now we have EPPlus! except when you try to do something that it just can't
|
# ? Mar 6, 2015 13:47 |
|
Stringent posted:why do people still leave that kind of poo poo lying around even though the project is in version control? deleted code is invisible code sometimes that's fine! sometimes it's not.
|
# ? Mar 6, 2015 13:50 |
|
I converted a subversion repo from no structure to the standard trunk, tags, and branches layout. My co-workers deemed this too confusing and reverted it.
|
# ? Mar 6, 2015 14:10 |
|
wolffenstein posted:I converted a subversion repo from no structure to the standard trunk, tags, and branches layout. My co-workers deemed this too confusing and reverted it. lol
|
# ? Mar 6, 2015 14:25 |
|
i have a dumb question my p-lang brain keeps asking what the point of interfaces is if the implementation of any of the interface methods could be wildly different. what's the piece i'm missing?
|
# ? Mar 6, 2015 14:26 |
|
Blinkz0rz posted:i have a dumb question Yeah this is why it's called a protocol in some langs. If it doesn't return the right thing or have the correct side effects it's bad obviously
|
# ? Mar 6, 2015 14:32 |
|
Blinkz0rz posted:i have a dumb question 1. it might be wildly different, but when I ask to GetSomeButts() why do I care if your OracleButtGetter is completely different to your WebServiceButtGetter 2. most languages do not have multiple inheritance so interface implementation is one way of achieving something similar. 3. unit testing (or to be precise, mocking) relies on you implementing an interface for the object you want to mock so get used to it. yes this is dumb. (this list is not exhaustive)
|
# ? Mar 6, 2015 14:41 |
|
~Coxy posted:1. it might be wildly different, but when I ask to GetSomeButts() why do I care if your OracleButtGetter is completely different to your WebServiceButtGetter would it be fair to say that it's a convention to have the matching interfaces behave mostly the same way?
|
# ? Mar 6, 2015 14:47 |
|
someone mentioned Kotlin in of these threads is it good? will i end up with a billion auto generated class files a la Scala? i see its made by jetbrain so maybe its good, but maybe its bad??? anyone tried it here?
|
# ? Mar 6, 2015 14:50 |
|
Blinkz0rz posted:i have a dumb question think about observers. you don't necessarily know what they need to do with a notification. you just need a standard method for sending it
|
# ? Mar 6, 2015 14:55 |
|
prefect posted:would it be fair to say that it's a convention to have the matching interfaces behave mostly the same way? not sure what you mean by that yes the different implementations should both implement the implementation in a way that makes sense and is not pathological I'm trying to think of an example from my work offhand... we have a couple of x86 vs. x84 implementations that implement the same interface? the same interface also has a "mock" implementation that is a concrete class that returns static objects for testing
|
# ? Mar 6, 2015 14:55 |
|
~Coxy posted:not sure what you mean by that i just mean that you _could_ make the interface implementations do wildly different things, but you don't, because that's not how you're supposed to do it. it's not a rule that's enforced by the compiler; it's a good practice that people generally do
|
# ? Mar 6, 2015 14:56 |
|
~Coxy posted:3. unit testing (or to be precise, mocking) relies on you implementing an interface for the object you want to mock so get used to it. yes this is dumb. not any more, thank god we still have way too many single-implementation interfaces littering our code for precisely this reason, I try and delete them when I can because it really pisses me off
|
# ? Mar 6, 2015 15:01 |
|
DaTroof posted:think about observers. you don't necessarily know what they need to do with a notification. you just need a standard method for sending it ya i get why an interface would be important when you don't necessarily know what you're calling but you want to make sure it's called correctly. the thing is, i feel like a lot of that can be done using abstract classes and inheritance too. i'm sure there's a piece that i'm entirely missing but i am dumb and a very bad programmer
|
# ? Mar 6, 2015 15:09 |
|
~Coxy posted:1. it might be wildly different, but when I ask to GetSomeButts() why do I care if your OracleButtGetter is completely different to your WebServiceButtGetter so this is cool but it mainly makes me thing that interfaces are useful when implementing an api that will be consumed by others
|
# ? Mar 6, 2015 15:10 |
|
Blinkz0rz posted:so this is cool but it mainly makes me thing that interfaces are useful when implementing an api that will be consumed by others remember: you will be an "other" in six weeks or so (this is also why writing maintainable code is important all the time)
|
# ? Mar 6, 2015 15:22 |
|
Blinkz0rz posted:ya i get why an interface would be important when you don't necessarily know what you're calling but you want to make sure it's called correctly. the thing is, i feel like a lot of that can be done using abstract classes and inheritance too. yeah a lot of it can be done with abstract classes and inheritance but not all of it. especially in languages with single inheritance. with a typical observer there's no such thing as a default implementation, and you don't want to require observers to be a specific class if you want default implementations for interfaces you probably want a language that provides mixins (a good thing imo)
|
# ? Mar 6, 2015 15:23 |
|
Jabor posted:not any more, thank god what do you mean? this is important
|
# ? Mar 6, 2015 15:31 |
|
prefect posted:remember: you will be an "other" in six weeks or so DaTroof posted:yeah a lot of it can be done with abstract classes and inheritance but not all of it. especially in languages with single inheritance. with a typical observer there's no such thing as a default implementation, and you don't want to require observers to be a specific class that makes a lot of sense since i'm on a roll with dumb questions, has anyone used aws opsworks before? it's got some stupid edge cases with lifecycle events that is making my brain hurt.
|
# ? Mar 6, 2015 15:42 |
|
|
# ? May 11, 2024 14:32 |
|
Blinkz0rz posted:ya i get why an interface would be important when you don't necessarily know what you're calling but you want to make sure it's called correctly. the thing is, i feel like a lot of that can be done using abstract classes and inheritance too. there are times to use interfaces (most of the time) and there are times to use abstract classes. so like data structures. a List interface makes way more sense than an abstract List because the underlying storage and plumbing in a list implementation is always going to be wildly different. you might use an array, you might use a linked list, you might use a database table (don't do this) or w/e else. The point is that the List defines how you interact with the underlying data. If someone swaps the list implementation out from under you, it should still be functional even if certain runtime metrics might change (operation performance, memory usage, etc...) The point is even if you only ever used an ArrayList (and you will only ever mostly use an array list), you still don't care that its an arraylist. you aren't going to be poking at the underlying array. you're still going to be going through all the list interface methods for interaction. An abstract class is useful for the case where you have common implementation details or resources that you want all subclasses to use and you have common methods that need to be implemented in all subclasses. ex: C# code:
a more real world example is the Controller class: https://msdn.microsoft.com/en-us/library/system.web.mvc.controller(v=vs.118).aspx . Theres no reason to have an IController interface cause your controller that you create is never going to match that interface. You're going to have your own methods and attributes and all this other stuff that would make an interface pointless. Controllers generally have a single implementation for the underlying plumbing of getting requests in and out of the controller, so again, interface doesn't make sense. In Controllers case there are also loads of context variables that get stuffed into it when its instantiated which makes them available for your extending class at runtime. Things like the current request. There are also common methods (like View() for returning a view) that are extremely common and that you would never implement yourself. Abstract classes constrain you to a specific implementation which is good when thats what you want, but most of the time thats not what you want.
|
# ? Mar 6, 2015 15:48 |