|
Shaggar posted:also theres cool stuff like jcl-over-slf4j or whatever which basically hijacks commons-logging bindings and redirects them to slf4j. I love that thing and the log4j one. I redirect all my stuff to logback, even the glassfish logs. Using Maven's parent POM really helps with making sure that all your project are using the same versions of libraries. It also makes upgrading to newer versions only require editing one file. And any child project can overwrite the parent POM if it really needs that specific version, but doing that can cause more headaches down the road when you forget about it. Janitor Prime fucked around with this message at 00:54 on Nov 6, 2012 |
# ? Nov 6, 2012 00:52 |
|
|
# ? May 26, 2024 05:32 |
|
yep. maven rules.
|
# ? Nov 6, 2012 00:53 |
|
i wrote an osgi wrapper for jython once, true story
|
# ? Nov 6, 2012 01:39 |
|
Shaggar posted:slf4j is fine. also dealing w/ multiple classloaders in a single module sounds horrific. the classloaders are abstracted away you specify, group, artifact and version of each library to import, and the osgi container does the resolution automagically, you can have like v1 v2 and v3 of some lovely library installed and any module can import any of those and run correctly without worrying about classloader nonsense, as long as you aren't a moron with your pom files
|
# ? Nov 6, 2012 02:32 |
|
tef posted:i wrote an osgi wrapper for jython once, true story ehhehe, was there any chance that wouldn't have ended up being a total waste of time? incidentally, I've usually liked python's api design in the few random snippets I've seen, would jython's implementation be helpful in making 100% pure java versions of them?
|
# ? Nov 6, 2012 02:33 |
|
trex eaterofcadrs posted:the classloaders are abstracted away wasn't the deal there that two modules both using the same v2 of the same library would use the exact same classes and memory which would open a whole host of concurrency bug opportunities, if the modules don't know of each other?
|
# ? Nov 6, 2012 02:40 |
|
Win8 Hetro Experie posted:wasn't the deal there that two modules both using the same v2 of the same library would use the exact same classes and memory which would open a whole host of concurrency bug opportunities, if the modules don't know of each other? maybe in a lovely version but at least in v4+ each "bundle collaboration" or whatever it's called gets it's own class space, meaning you could theoretically start with v1 of a module, upgrade it to v2 and remove v1 and your poo poo will keep on running as long as the classes were loaded prior to uninstallation.
|
# ? Nov 6, 2012 02:53 |
|
well, it wasn't more or less of a waste of time than the other java programs I wrote. the problem with trying to make java apis nicer, is that python features like default values, named arguments, and with statements make a bunch of stuff quite neat. decorators, and descriptors too. with java on the other hand, you will need to find java ways to do it. there are a bunch of nice java libraries out there that make use of 1.6 that I never got the chance to use - including project lombok
|
# ? Nov 6, 2012 03:02 |
|
how does maven interact with osgi because the intersection of those two things sounds like a train wreck usbchat: Windows has this thing where the only kind of USB device that's accessible from user-space is HID, so all sorts of random poo poo gets turned into a "HID device" to make poo poo install reasonably. Nowadays there's WinUSB and UMDF (not sure how these two are related exactly) which installs an MS-signed shim driver that forwards everything to userland, but you're still installing a driver, which means that you still get to deal with the screaming horror that is INF files and SetupAPI. Then there are those people who try to force their lovely thing to look like a UART using the USB modem device class, even though the designers of USB specifically went out of their way to prevent people from trying to do that sort of thing, but those people are beyond help USB itself is actually surprisingly nice for something that was co-designed by MS and Intel, the only real problem with it is they basically randomly permuted their glossary. So "transactions" are not atomic at all and they actually comprise "transfers" which are your basic request/response pair, and an endpoint whose buffer temporarily underruns sends a NAK whereas an endpoint which is in an errored state sends a STALL.
|
# ? Nov 6, 2012 03:26 |
|
Mr Dog posted:usbchat I think the reason most people do the CDC serial thing is because it's the only reasonably well supported cross platform solution. And even if your device is HID compliant on windows you still have to gently caress with SetupAPI stuff if you want your code to handle hot-plugging at all gracefully. I just don't understand why USB is so much more complicated from a user-space perspective than ethernet or serial ports. I mean basically you plug a device in and you should have a file for each endpoint.
|
# ? Nov 6, 2012 03:52 |
|
Probably because USB devices do things that files don't
|
# ? Nov 6, 2012 04:25 |
|
everything is a file in unix
|
# ? Nov 6, 2012 04:27 |
|
Sniep posted:everything is a file in unix most of the time, except when it isn't. it's ok, most of them are file descriptors
|
# ? Nov 6, 2012 04:46 |
|
i loving hate windows btw today had some edge case where a windows server was involved and i was completely lost turns out there are like 2 people in the entire company that know how it works they will be in tomorrow, sorry customer, your sales team sold you some poo poo we dont really support
|
# ? Nov 6, 2012 04:49 |
|
tef posted:the problem with trying to make java apis nicer, is that python features like default values, named arguments, and with statements make a bunch of stuff quite neat. decorators, and descriptors too. see, I don't think that's generally true, maybe in some specific cases that syntax-sugar makes all the difference but for a simple case like this: code:
Java code:
|
# ? Nov 6, 2012 04:56 |
|
ugh thats gross. just use cxf and jackson 2 post the object directly. json is bad enough but doing it by hand is even worse
|
# ? Nov 6, 2012 05:02 |
|
tef posted:well, it wasn't more or less of a waste of time than the other java programs I wrote. java is mega barebones
|
# ? Nov 6, 2012 05:05 |
|
Lysidas posted:those backups on the flash drive on my keychain are in addition to the main central repositories that i use, just as extra backups in case my office is hit by a meteor and my laptop drive dies at the same time lmao, yeah, that's awesome. just freeballin it, who the gently caress knows what the gently caress repo that last release came from, hell yeah Mr Dog posted:svn seems like a good source control system to use if you're forced to manage bad programmers, yes this is v true because all programmers are bad. gucci void main posted:I like when git wipes out your local repo i think it's great that git encourages a workflow that assumes developers have a robust backup solution on their dev boxes
|
# ? Nov 6, 2012 05:06 |
|
i backup my repo inside itself
|
# ? Nov 6, 2012 05:06 |
|
Shaggar posted:i backup my repo inside itself i believe it
|
# ? Nov 6, 2012 05:07 |
|
its distributed so that means its backed up on everyone elses repo
|
# ? Nov 6, 2012 05:08 |
|
rotor posted:i think it's great that git encourages a workflow that assumes developers have a robust backup solution on their dev boxes i never thought about this but it's really funny
|
# ? Nov 6, 2012 05:09 |
|
the freedom from source control comes at a price...
|
# ? Nov 6, 2012 05:14 |
|
Win8 Hetro Experie posted:see, I don't think that's generally true, maybe in some specific cases that syntax-sugar makes all the difference A really slow way of doing it, probably. You would probably have to write a bunch of interfaces or crud to expose the objects you like. http://wiki.python.org/jython/PythonTypesInJava There is probably nicer java specific libraries out there for this task. Every big project has a library like you propose, but it is usually called SomethingUtil instead of 'simple'.
|
# ? Nov 6, 2012 05:43 |
|
rotor posted:lmao, yeah, that's awesome. just freeballin it, who the gently caress knows what the gently caress repo that last release came from, hell yeah idk is this sarcasm? checkout the tag and build the release...git repos are all mirrors except some have working copies...i feel bad for u if u cant use whatever repo and build artifacts identical to the released ones
|
# ? Nov 6, 2012 08:14 |
|
anything with atomic multi-file commits is cool man, version skew is a soul killer
|
# ? Nov 6, 2012 09:03 |
|
Win8 Hetro Experie posted:see, I don't think that's generally true, maybe in some specific cases that syntax-sugar makes all the difference
|
# ? Nov 6, 2012 09:27 |
|
Nomnom Cookie posted:Probably because USB devices do things that files don't well a single USB device would have to be multiple files, one for each endpoint. At the level basically every program is written at they just take data in and spit data out. Maybe you would have to do something slightly different for isochronous endpoints, but you could still use a file as the data transfer abstraction.
|
# ? Nov 6, 2012 11:03 |
|
Mr Dog posted:how does maven interact with osgi because the intersection of those two things sounds like a train wreck believe it or not it's actually really nice, unless you're sloppy with your dependencies, both osgi frameworks i've worked with can pull right from a maven nexus, and actually can wrap non-osgi modules so you don't have to worry if the author didn't give a gently caress
|
# ? Nov 6, 2012 15:46 |
|
Zaxxon posted:I think the reason most people do the CDC serial thing is because it's the only reasonably well supported cross platform solution. And even if your device is HID compliant on windows you still have to gently caress with SetupAPI stuff if you want your code to handle hot-plugging at all gracefully. USB is indeed no less complicated from user space if you're interacting with a standardised device class than a TCP/IP socket is, in fact it's probably a lot less complicated, depending on what kind of device you're dealing with (inputdev in win32 is just aggressively poo poo) If you want to actually send raw ethernet frames though then lol CDC seems to me like a huge abstraction inversion, though. USB has a lot of really nice things in it like out-of-band control messages with a consistent structure, as well as the fact that USB is datagram-oriented instead of byte-oriented in general. CDC also isn't supported well under Windows at all, Linux gives you a /dev/ttyACM easy as pie, but then who gives a gently caress about Linux (also libusb under not-Windows is even more straightforward than a tty, do a libusb_open_device_with_vid_pid, maybe acquire the interface you're working with to disconnect the OS class drivers and you're good to go). USB. I like making USB devices, they're pretty cool.
|
# ? Nov 6, 2012 16:30 |
|
Mr Dog posted:USB is indeed no less complicated from user space if you're interacting with a standardised device class than a TCP/IP socket is, in fact it's probably a lot less complicated, depending on what kind of device you're dealing with (inputdev in win32 is just aggressively poo poo) I've never had much of a problem with CDC under windows. Just pops up as COM whatever. HID also does ok, and you can register hooks which notify your program on plugin/removal.but yeah I wish libusb didn't suck on windows. USB devices are pretty fun to make though.
|
# ? Nov 6, 2012 19:02 |
|
Shaggar posted:like i said, these problems dont affect open sores cause their time isnt valuable. literally the best example of the 'shaggar gimmick'
|
# ? Nov 19, 2012 21:37 |
|
syntaxrigger posted:literally the best example of the 'shaggar gimmick' Shaggar is really Linux Torvalds online alter ego (like evil Kirk).
|
# ? Nov 20, 2012 01:13 |
|
http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html e: code:
|
# ? Nov 21, 2012 15:40 |
|
it makes sense, code should be ~beautiful~
|
# ? Nov 21, 2012 15:45 |
|
Jonny 290 posted:http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html the two worst things i did in school, finally together!
|
# ? Nov 21, 2012 15:48 |
|
Jerry SanDisky posted:the two worst things i did in school, finally together! but that doesn't look like your sisters??
|
# ? Nov 21, 2012 16:08 |
|
then again learning latin < keeping it in the family i guess. poast withdrawn
|
# ? Nov 21, 2012 16:14 |
|
Jonny 290 posted:http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html I think that LOLCODE thing was just a different version of this
|
# ? Nov 21, 2012 16:32 |
|
|
# ? May 26, 2024 05:32 |
|
Jonny 290 posted:
gonna report this to the tumblr justice police
|
# ? Nov 21, 2012 16:41 |