|
all those moments will be lost in time... like tears in rain... time to sniiiiiiiipe
|
# ? Aug 4, 2012 05:59 |
|
|
# ? Jun 5, 2024 04:08 |
|
Use qt. All the power of c++, plus more ownage on top
|
# ? Aug 4, 2012 07:55 |
|
0xB16B00B5 posted:good job spending all your time targeting one platform when you could just as easily target android, iOS, windows, mac, etc.. all at once
|
# ? Aug 4, 2012 08:27 |
|
zero to app in like 5 hours (thx for the api elgruntox) poo poo is easy. the hardest part was configuring xcode to use an external library, which was a p huge pain. i mean i won't pretend i like "know" objective-c now, but it wasn't like it was really difficult to get the hang of. still kinda figuring out some parts of the syntax and the whole delegates thing which seems to be kinda key, but its fun now i just need $100 to run the app on my phone :s
|
# ? Aug 4, 2012 10:10 |
|
MrMoo posted:I love with 0mq you can start with inter-thread sockets, move to inter-process, then cross-network with only a configuration change. That's putting power into operations hands. I tended to use cross-network from the outset, rather than moving code from one to the other. I guess I am lucky in that I can live with the latency of tcp for the most part. quote:I'm using 0mq in a hedge fund project to distribute big data queries, it gives a nice simple low learning curve API which is a nice change after looking at many other APIs in the industry. It's nice to hear some success stories. I get that 0mq has its plus points - reasonable low-latency message passing library, that allows you to move code between different transports, with reasonable cross platform support. unfortunately, multipart support is manual, some connections require extra synchronisation to prevent message loss, as well as heartbeats to detect failure. the biggest thing 0mq doesn't do is define your message format, It just handles the framing for you. the content of messages is opaque to 0mq, and so if you want any middleware, you have to write it yourself. "did you just tell me to go gently caress myself?" this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components. I like caches. I quite like redirects and urls too. I like transparent gzip, and arbitrary message bodies. don't get me wrong: the use of HTTP is also a tradeoff, but for the software I build, loose coupling is more important than latency. tl;dr 0mq smells of wee.
|
# ? Aug 4, 2012 10:32 |
|
tef posted:this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components. A platform is built by picking a transport and a message format, this isn't exactly very different from TCP, HTTP, RV, RSSL, and many other APIs. Tightly coupling a message format to 0mq makes the API larger and more limiting: everyone has their own preferred messaging format. "did you just tell me to go gently caress myself?" Connection handling and reliability is a difficult direction. A lot of the problems stem from the underlying transports and thus heartbeats become a requirement. 0mq is a thin API and not a big super message queuing system which does provide this additional functionality. This is why 0mq is in active development to carve out the required features for application developers. Caches, compression, filtering, are all value added functionality that big message middleware provides. Not everyone wants a 600MB minimal MQ install (IBM), and the technologies are rapidly changing with many different choices.
|
# ? Aug 4, 2012 15:21 |
|
MrMoo posted:Caches, compression, filtering, are all value added functionality that big message middleware provides. Not everyone wants a 600MB minimal MQ install (IBM), and the technologies are rapidly changing with many different choices. you can get http proxies that do all that for free and way less than 600mb Joyent will even lease you one
|
# ? Aug 4, 2012 17:03 |
|
tef posted:this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components. Neither ZMQ nor HTTP has a defined payload format, what makes them different?
|
# ? Aug 4, 2012 17:15 |
|
abraham linksys posted:zero to app in like 5 hours Change the ui. You used MVC right
|
# ? Aug 4, 2012 17:49 |
|
Cocoa Crispies posted:you can get http proxies that do all that for free and way less than 600mb They don't however support 400,000 requests per second per core using cheap commodity hardware and you have to add an expensive load balancer to get a half rear end fault tolerance with a fundamentally single point of failure device. Our hosted operations guys & gals are terrible though, they sell on pairs of servers that have maximum capacity of 300,000 cached items. My project requires 20 million cached items, which would work fine on a single pair of servers with only 32GB ram.
|
# ? Aug 4, 2012 18:23 |
|
Zombywuf posted:Turns out that's probably illegal text in my country, I just got arrested jerk. is that really a thing
|
# ? Aug 4, 2012 20:05 |
|
pls publish goonsay that poo poo cheers me up when I feel like I wasted my life keeps things in perspective ya know
|
# ? Aug 4, 2012 20:23 |
|
vapid cutlery posted:Change the ui. You used MVC right if by mvc you mean "shoved everything into viewcontroller.m" sure i don't really know any sort of architectural poo poo for this; i just designed my interface w the builder and did the connect to outlet thing and put some extra UI code in viewcontroller.m to better style it (what you can't make fuckin rounded corners in interface builder??? weird apple!!) i dunno i mean i have like a single extra class for each entry that restkit binds the API data to is that "MVC" enough for you Cold on a Cob posted:pls publish goonsay that poo poo cheers me up when I feel like I wasted my life i dont think apple would allow it there's some real horrible quotes in this
|
# ? Aug 4, 2012 21:20 |
|
Mr Dog posted:Neither ZMQ nor HTTP has a defined payload format, what makes them different? 0mq has 'length:content'. http has 'verb location headers content' http can answer 'what format is the body of this message in', 'can I cache this message', 'this this request safe/idempotent?' 0mq can answer 'how long is this message fragment' tef fucked around with this message at 21:33 on Aug 4, 2012 |
# ? Aug 4, 2012 21:29 |
|
abraham linksys posted:if by mvc you mean "shoved everything into viewcontroller.m" sure post it on github
|
# ? Aug 4, 2012 22:08 |
|
gently caress me on github
|
# ? Aug 4, 2012 22:09 |
|
salted hash browns posted:post it on github https://github.com/thomasboyt/goonsay-ios
|
# ? Aug 4, 2012 22:12 |
|
srs q why dont you do some interesting programming cos that thing looks like a shitload of crap around whats essentially grab data from url + display on screen. i mean its not even an interesting problem from a architectural pov if you buggered the mvc up
|
# ? Aug 4, 2012 22:19 |
|
Milkie Galore posted:srs q why dont you do some interesting programming cos that thing looks like a shitload of crap around whats essentially grab data from url + display on screen. i mean its not even an interesting problem from a architectural pov if you buggered the mvc up interesting things are hard to come up with because most of programming is boring as hell. maybe i feel this way because i like designing things and i only program to see if my idea works
|
# ? Aug 4, 2012 23:12 |
|
Sweeper posted:interesting things are hard to come up with because most of programming is boring as hell this also did you miss the part where i had never touched objective-c before (or c, or c++, for that matter), or xcode, or any sort of mobile development? this was my hello world now if you have other great suggestions for sick appz feel free to post them but i'll probably just do a to-do app to learn more complex/dynamic interfaces and coredata
|
# ? Aug 4, 2012 23:19 |
|
to-do app. the first and last app you'll ever make in anything.
|
# ? Aug 4, 2012 23:39 |
|
so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would becode:
|
# ? Aug 4, 2012 23:43 |
|
Apocadall posted:so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be please don't try and learn java by writing javascript in it. get yourself a good book.
|
# ? Aug 4, 2012 23:54 |
|
actually do get a book don't just copy that and put static everywhere without knowing what it means
|
# ? Aug 4, 2012 23:56 |
|
yeah i wasn't really aiming to mimic the code in java, but more the idea of displaying the output of a function to the console and how i would go about doing that. seems one of the biggest things with differences in java by comparison to interpreted languages (python and javascript are interpreted, not compiled right?) is the extra words that need to be added to things like int, double, static, public, private, any of those. i get what most of them mean like the public/private having to do with whether a class can access functions from another class or that it can only be called from within a class that it's in, static is confusing though, i looked it up but i'm not really getting why it exists. what are some of the alternatives used to static? if i had something to compare it to it would help understand what it does in relation.
|
# ? Aug 5, 2012 00:05 |
|
read a book i dont know what a good zero to java book is but please read a book
|
# ? Aug 5, 2012 00:06 |
|
Apocadall posted:yeah i wasn't really aiming to mimic the code in java, but more the idea of displaying the output of a function to the console and how i would go about doing that. seems one of the biggest things with differences in java by comparison to interpreted languages (python and javascript are interpreted, not compiled right?) is the extra words that need to be added to things like int, double, static, public, private, any of those. i get what most of them mean like the public/private having to do with whether a class can access functions from another class or that it can only be called from within a class that it's in, static is confusing though, i looked it up but i'm not really getting why it exists. food for thought: notice now we create a class called main but never instantiate it, and yet stuff still happens.
|
# ? Aug 5, 2012 00:14 |
|
Alligator posted:it sounds like you probably need to go over oo from the ground up. yeah i've been reading up on main from a few different sites (that's kind of how i've been going through this). when i come to something i don't know i'll spend time researching it from as many different locations as i can until i understand it and then poke and prod at it until it clicks as to what it does. main from what i've gathered is just the first class always called and the String [] args parameters is to allow it to store methods while it's processing? i'm gonna poke it some more and see what happens
|
# ? Aug 5, 2012 00:25 |
|
the String[] parameter is like argv, its the array of arguments passed to your program on the command line http://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html main is the method which is invoked (statically!) when you run your program static methods can: call other static methods, access static properties non-static methods can: call both static and non-static methods, access both static and non-static properties both types of method can instantiate new objects learn the difference between classes and objects because the idea of static is closely related
|
# ? Aug 5, 2012 01:03 |
|
Apocadall posted:yeah i've been reading up on main from a few different sites (that's kind of how i've been going through this). when i come to something i don't know i'll spend time researching it from as many different locations as i can until i understand it and then poke and prod at it until it clicks as to what it does. main from what i've gathered is just the first class always called and the String [] args parameters is to allow it to store methods while it's processing? there are some languages you can sorta hack away at (perl, python) and get an understanding of, and some you need to know a little coming in otherwise you'll get lost very quickly. dont end up writing everything inside one huge class and making everything static to get rid of those 'annoying' error messages plz. at least read through this http://docs.oracle.com/javase/tutorial/getStarted/application/index.html and then look at the objects and classes lecture notes here: http://ocw.mit.edu/courses/electric.../lecture-notes/
|
# ? Aug 5, 2012 01:04 |
|
Milkie Galore posted:the String[] parameter is like argv, its the array of arguments passed to your program on the command line http://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html this sounds like hell
|
# ? Aug 5, 2012 01:05 |
|
Otto Skorzeny posted:is that really a thing It's a depiction of acts "likely to cause serious injury to the breasts, genitals or anus." There's actually a case going on now that is determining whether anal fisting is illegal "extreme porn".
|
# ? Aug 5, 2012 01:07 |
|
Alligator posted:agh. thanks for these, one of the first things i did after you posted that code was to try putting the method into a class by itself and get it working as it was.
|
# ? Aug 5, 2012 01:10 |
|
fidel sarcastro posted:this sounds like hell its really not that bad (by java standards) ive just explained it terribly static poo poo belongs to classes non-static poo poo belongs to instances of classes, ie objects the entry point being static means youre stuck in static land till you call new but im over analysing this
|
# ? Aug 5, 2012 01:11 |
|
Apocadall posted:so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be
|
# ? Aug 5, 2012 01:17 |
|
not to be all "loving google it", but how does someone not know how to get started with a programming language when there's google
|
# ? Aug 5, 2012 02:53 |
|
Apocadall posted:so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be don't do this. java hates functions.
|
# ? Aug 5, 2012 04:32 |
|
|
# ? Aug 5, 2012 05:27 |
|
juts shove everything into a bunch of awful objects until java is happy.
|
# ? Aug 5, 2012 05:28 |
|
|
# ? Jun 5, 2024 04:08 |
|
ios dev, day 2: added a continuous pagination feature. you can swipe horizontally between goonsay entries and it loads a new one if you swipe past the last loaded one. it owns i wish i had $100
|
# ? Aug 5, 2012 06:16 |