|
There Will Be Penalty posted:lmbo if you're not using the select builtin noobz
|
# ? Mar 27, 2018 02:13 |
|
|
# ? Jun 3, 2024 21:06 |
|
Gazpacho posted:found this while looking for a bash menu framework What is stronger, my spite for bash or my desire to spite my fellow developers by using a bash oo framework...
|
# ? Mar 28, 2018 02:58 |
|
sounds like a self-own to me, unless you’re a non-coding dev lead or something and can only mandate that others use it
|
# ? Mar 28, 2018 03:37 |
|
if you hate your fellow developers that much you owe it to them to create your own OO mechanism for bash using files and directories maybe make it use one of the different styles of OO too, like generic functions instead of message sends
|
# ? Mar 28, 2018 05:19 |
|
my idea is that since : is not lexically significant in bash you could define a command "::" that introduces a method call. it would locate the directory named by its first argument which contains an object, use the second argument as a method name to find a method script symlinked within that directory, then run that script. the script would receive the object path as a prefix of its own e.g. :: butt fart .... --> butt/.class/methods/fart ....
|
# ? Mar 28, 2018 07:34 |
|
|
# ? Mar 28, 2018 09:28 |
|
And Canadian Aboriginal Syllabics for generics
|
# ? Mar 28, 2018 10:49 |
|
im sorry but programming languages are over no need for this thread, mods pls close
|
# ? Mar 28, 2018 18:16 |
|
JawnV6 posted:im sorry but programming languages are over no need for this thread, mods pls close i hate javascript weeabs so much
|
# ? Mar 28, 2018 18:23 |
|
JawnV6 posted:im sorry but programming languages are over no need for this thread, mods pls close there has never been a vm-based language that let you write lovely, resource-hungry web back ends, web ui, desktop applications, phone applications, and kinda-sorta video games before. nope. definitely not e: too bad, it could have been called something like javascript, except shorter, because it came earlier, you know
|
# ? Mar 28, 2018 18:25 |
|
if node is the last language to be used then I'm gonna become a software architect that asks devs to do poo poo that is glaringly painful in JS to punish them as much as I can for what they allowed to happen
|
# ? Mar 28, 2018 18:45 |
|
i cant wait for web rear end to deprecate javascript.
|
# ? Mar 28, 2018 18:49 |
|
MononcQc posted:if node is the last language to be used then I'm gonna become a software architect that asks devs to do poo poo that is glaringly painful in JS to punish them as much as I can for what they allowed to happen Hi I need a rest service to check if two numbers are equal. Then 3 days later make them change it to not equal
|
# ? Mar 28, 2018 18:49 |
|
Shaggar posted:i cant wait for web rear end to deprecate javascript.
|
# ? Mar 28, 2018 19:00 |
|
JawnV6 posted:im sorry but programming languages are over no need for this thread, mods pls close what is this hacker noon site. are people paid to write for it
|
# ? Mar 28, 2018 19:41 |
|
wrap it up, ruby on railures
|
# ? Mar 28, 2018 19:49 |
|
Shaggar posted:i cant wait for web rear end to deprecate javascript. JavaScript has been deprecated since 2008, when the iPhone SDK was released there is no reason to use JavaScript on web pages now that you can build fully native applications for desktop, mobile, TV, and watch
|
# ? Mar 28, 2018 20:39 |
|
eschaton posted:JavaScript has been deprecated since 2008, when the iPhone SDK was released i was just thinking yesterday how aggressively awful the youtube app is on literally every device now that it's the same lowest-common-denominator web garbage it is on the goddamn wii
|
# ? Mar 28, 2018 20:41 |
|
iPhone ... SDK? is that the thing that sits under react native?
|
# ? Mar 28, 2018 21:30 |
|
eschaton posted:JavaScript has been deprecated since 2008, when the iPhone SDK was released your cremnob is showing
|
# ? Mar 28, 2018 21:45 |
|
Shaggar posted:i cant wait for web rear end to deprecate javascript. i want to agree but also isn't the next hot thing web assembly?
|
# ? Mar 28, 2018 23:01 |
|
Is reopening a file (read only!!) THAT much slower than just hanging onto 200+ handlers? C# in windoze.
|
# ? Mar 28, 2018 23:03 |
|
whats a handle how big is it will TWO HUNDRED HANDLES take more than like... a meg of memory just keep them around, dont talk to spinning disks
|
# ? Mar 28, 2018 23:11 |
|
Boiled Water posted:i want to agree but also isn't the next hot thing web assembly?
|
# ? Mar 28, 2018 23:11 |
|
JawnV6 posted:whats a handle This is where I learn a lesson, 'cause this is on a SSD and still slower than I'd expect. Glad I at least realized wtf I should be doing. Also I'm sorting a huge file with a weird sorta merge-sort and it turns out that the hidden message is the entirety of Moby Dick. 🐳
|
# ? Mar 28, 2018 23:13 |
|
Space Whale posted:This is where I learn a lesson, 'cause this is on a SSD and still slower than I'd expect. Glad I at least realized wtf I should be doing. https://gist.github.com/jboner/2841832 main memory is stupid fast. any read from the ssd is 1500x more expensive than grabbing from ram, much less doing 200 and potentially having it open/close pages or banks or w/e it is SSD's do
|
# ? Mar 28, 2018 23:21 |
|
Shaggar posted:i cant wait for web rear end to deprecate javascript. save the fiction for nanowrimo
|
# ? Mar 28, 2018 23:26 |
|
Gazpacho posted:iPhone ... SDK? is that the thing that sits under react native? that thing you have to sometimes drop to when react native doesn't have a suitable control.
|
# ? Mar 28, 2018 23:29 |
|
Ralith posted:that's what he said i'm terrible at reading turns out
|
# ? Mar 28, 2018 23:31 |
|
JawnV6 posted:i saw your other post, i knew the problem behind Holy poo poo just passing around StreamReaders (I'm in C#land) is so much loving faster
|
# ? Mar 28, 2018 23:31 |
|
I can't just do a using() them since I'm passing them around. If the program just terminates after I finish my file handle twiddling/stream twiddling is this going to be a memory leak or a file handle lock on the temp files? Can I just .Dispose() the StreamReaders or do I somehow need references to all the filestreams too?
|
# ? Mar 28, 2018 23:37 |
|
Space Whale posted:I can't just do a using() them since I'm passing them around. StreamReader objects dispose their underlying streams when they're disposed. even if you forget to dispose them they will be eventually finalized unless you're actually keeping references around. i suspect that you are being unnecessarily paranoid about whatever it is you're doing but it's hard to tell without code.
|
# ? Mar 28, 2018 23:53 |
|
Space Whale posted:I can't just do a using() them since I'm passing them around. AFAIK if you don't call .Dispose() on an object that implements IDisposable and have no more references to it, the garbage collector will eventually take care of it for you because IDisposable objects call .Dispose() in their .Finalize() method. I think you're technically not supposed to depend on that because it's not explicitly required of IDisposable objects to call .Dispose() in their .Finalize() and also the garbage collector makes no guarantees of when it'll actually get around to the object, but you shouldn't need to worry about leaks. ThePeavstenator fucked around with this message at 01:00 on Mar 29, 2018 |
# ? Mar 29, 2018 00:57 |
|
Space Whale posted:I can't just do a using() them since I'm passing them around. the kernel will close any open file handles when a process ends (on windows, dunno about other oses). i'd expect other kernel handles to be closed as well, but i'm not sure about this. other unmanaged, non-os resources? who knows! also finalizers are delicate, fragile things that need to be written with care. and they're not guaranteed to run at all
|
# ? Mar 29, 2018 01:22 |
|
there is no way your C# program is leaking memory after program termination
|
# ? Mar 29, 2018 01:24 |
|
I called .Dispose() on each file handler as the file was exhausted, so if the StreamReader disposes of the inner FileReader I'm fine, thanks.JawnV6 posted:there is no way your C# program is leaking memory after program termination Well, no, but lots of people looking over code will wag a finger at the very least.
|
# ? Mar 29, 2018 01:36 |
|
Suspicious Dish posted:what is this hacker noon site. are people paid to write for it no. it's just a curated selection of medium posts that are written for ~exposure~
|
# ? Mar 29, 2018 06:09 |
|
Space Whale posted:I called .Dispose() on each file handler as the file was exhausted, so if the StreamReader disposes of the inner FileReader I'm fine, thanks. yeah, streamreaders and writers are a little odd in that they will dispose of the underlying stream when you call their Dispose() method (unless you use one particular ctor) but if your coworkers wag their finger at you for not worrying about memory management, you should consider finding different coworkers
|
# ? Mar 29, 2018 09:38 |
|
redleader posted:yeah, streamreaders and writers are a little odd in that they will dispose of the underlying stream when you call their Dispose() method (unless you use one particular ctor) I mean you can’t just leak file handles in software that matters, I wouldn’t call wanting to properly close stuff finger wagging
|
# ? Mar 29, 2018 11:05 |
|
|
# ? Jun 3, 2024 21:06 |
|
JawnV6 posted:there is no way your C# program is leaking memory after program termination Technically I can think of ways of doing that, e.g. System V shared memory segments
|
# ? Mar 29, 2018 12:54 |