Search found 207 matches

by DaveInsurgent
Wed Jun 29, 2016 3:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

Ok, sure, maybe if they had that documented somewhere I would totally believe that. But even if I assume it's undocumented, then why is the parameter for file path even there? The path doesn't mean anything in the application, once the file is uploaded I don't/can't know where it lives (it's abstra...
by DaveInsurgent
Mon May 30, 2016 3:16 am UTC
Forum: Coding
Topic: Entry level tech career--what should I be learning?
Replies: 3
Views: 4734

Re: Entry level tech career--what should I be learning?

I don't think anyone who *wants* to be a CTO is going to be a very good one. The best are the reluctant ones who, after building a lot of stuff throughout an abundant career working through multitudes of situations, bring an appreciation and understanding of the challenges we face as engineers and c...
by DaveInsurgent
Tue Feb 16, 2016 4:26 am UTC
Forum: Coding
Topic: Using Amazon S3 with a local drive as a cache
Replies: 2
Views: 3373

Re: Using Amazon S3 with a local drive as a cache

The question is, what obvious factors have I missed that make this a horrible idea? Cache invalidation can be tricky.. I'm curious why you believe S3 is slower. Does your application interact with the files, or just serve them to users? If the latter you can generate S3 signed URLs and send the use...
by DaveInsurgent
Fri Jan 22, 2016 4:16 am UTC
Forum: Coding
Topic: Learning HTML and CSS
Replies: 76
Views: 31259

Re: Learning HTML and CSS

I switched from Brackets to Atom. They are very similar, but Atom felt more polished and has thus far (6+ months) been more stable, had less plugin problems and so on..

The Brackets codebase is already kinda .. :|
by DaveInsurgent
Sat Jan 09, 2016 4:42 pm UTC
Forum: Coding
Topic: Best coding scheme for emailing error message
Replies: 3
Views: 3495

Re: Best coding scheme for emailing error message

I think the technique you're looking for is usually called a 'debounce' - basically, you have something that you want done when something happens, but only once every so often. Then, there's usually a leading or trailing debounce, so for example you might want to prevent double accidental clicks wit...
by DaveInsurgent
Fri Dec 11, 2015 8:15 pm UTC
Forum: Coding
Topic: Organising Wrestling DVDs via MySQL Database/PHP
Replies: 39
Views: 9393

Re: Organising Wrestling DVDs via MySQL Database/PHP

I've just been using phpMyAdmin to enter info. I understand - I'm ... I'm telling you you're doing it inefficiently and at an unnecessarily complex level. Again, if you are trying to learn, then this is valuable, but if you're just trying to organize your damn DVDs and get on with your life this is...
by DaveInsurgent
Fri Dec 11, 2015 4:04 pm UTC
Forum: Coding
Topic: Organising Wrestling DVDs via MySQL Database/PHP
Replies: 39
Views: 9393

Re: Organising Wrestling DVDs via MySQL Database/PHP

If the title is 'SummerSlam 2013' call it that and store the actual date. It's not the same thing. Your question about IDs... that's literally why applications exist. This web page is a forum discussion which has an identifier, which you navigate to because you loaded some index page (forum list, fo...
by DaveInsurgent
Tue Dec 08, 2015 11:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

Even that machine code is kinda an abstraction depending on target.
by DaveInsurgent
Tue Dec 08, 2015 11:14 pm UTC
Forum: Coding
Topic: Organising Wrestling DVDs via MySQL Database/PHP
Replies: 39
Views: 9393

Re: Organising Wrestling DVDs via MySQL Database/PHP

But...if all the wrestlers in a given match are in the one column, isn't it going to end up looking for ID '1 vs 2' instead of ID '1' and ID '2'? Er, so the best I can do is really say that a better understanding of JOINs and tables will help here - and I think you're also somewhat missing the part...
by DaveInsurgent
Tue Dec 08, 2015 7:00 pm UTC
Forum: Coding
Topic: IDEs and the death of the command line interface
Replies: 25
Views: 8025

Re: IDEs and the death of the command line interface

This probably sounds stupid, but I often use the time it takes to use the IDE as a way of giving myself a few cycles to think. It also gives (some of my) fingers a break. That said, I've shifted from "90%+ IDE" to a more 50/50 with a simpler IDE (atom) and I feel like I enjoy the balance.
by DaveInsurgent
Tue Dec 08, 2015 6:43 pm UTC
Forum: Coding
Topic: Organising Wrestling DVDs via MySQL Database/PHP
Replies: 39
Views: 9393

Re: Organising Wrestling DVDs via MySQL Database/PHP

I understood almost none of this, but a 'Wrestlers' table wouldn't work. Matches can have anywhere between two and thirty wrestlers, in various combinations of singles and teams of between two and five, so creating a table row that'll pull that together coherently with each match participant in the...
by DaveInsurgent
Fri Nov 20, 2015 6:37 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

Does OOP entail mutable state? Everywhere I look, languages that advertise OOP are imperative ones. Sure, most functional languages have type classes that allow you to declare behaviour (and have instances define and overload that behaviour) and types can have records, but I haven't heard anyone ca...
by DaveInsurgent
Fri Nov 20, 2015 6:18 pm UTC
Forum: Coding
Topic: Thinking loudly - making code more efficient
Replies: 7
Views: 3626

Re: Thinking loudly - making code more efficient

You didn't enumerate what stuff that I don't care about. is, so sorry if this is more of it: Your hunch about not calling the getFile each time is spot on, and is an example of something we'd throw at someone as part of a code review during an interview for being a 'real programmer', for what that's...
by DaveInsurgent
Thu Nov 12, 2015 12:17 am UTC
Forum: Coding
Topic: Very Stupid Javascript Question
Replies: 18
Views: 5595

Re: Very Stupid Javascript Question

There is exactly zero reason for there to be any web application that relies on sessions and any framework or system that does so should be summarily dismissed as Broken By Design. It is almost 2016. I'm not sure I follow. How would you remember who's logged in without sessions or some equivalent? ...
by DaveInsurgent
Tue Nov 03, 2015 6:55 pm UTC
Forum: Coding
Topic: Batch renaming files
Replies: 7
Views: 3780

Re: Batch renaming files

A lot of what you describe is just getting good at bash, plus using something like GOW on Windows. https://github.com/bmatzelle/gow
by DaveInsurgent
Fri Oct 16, 2015 3:22 am UTC
Forum: Coding
Topic: Very Stupid Javascript Question
Replies: 18
Views: 5595

Re: Very Stupid Javascript Question

Most of which aren't really problems. a) a tab doesn't deprecate, reducing the effective max by one, not an issue. b) very much not a problem, as they'll come back with a whole new session. c) also fine, two separate sessions with their own sets of tabs are free to run under the same user ID. The w...
by DaveInsurgent
Thu Oct 15, 2015 8:42 pm UTC
Forum: Coding
Topic: Very Stupid Javascript Question
Replies: 18
Views: 5595

Re: Very Stupid Javascript Question

I don't get why you're very restrictive in the supported browsers, but seem to invest a lot of time in the <1% of users with JS disabled. I'm not the OP, but in my case it is to encourage people to disable javascript, and to encourage web developers to not require that disease in order to function....
by DaveInsurgent
Tue Sep 15, 2015 3:45 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

I see. It sucks trying to help abstract problems, but to keep at it... isn't where Kinesis + Redshift shines? What about OLAP/multidimensional databases? Are the problems that you're trying to do too much with RDBMS? You want a "true alternative to SQL" and I think that you're reached the ...
by DaveInsurgent
Mon Sep 14, 2015 5:38 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

I really want to make a functional database programming language with lazy evaluation, even if it just translates to SQL. My problem is that I really don't know enough about functional programming languages to pull off the design. Things I want: 1) Ability to treat queries as if they are data, with...
by DaveInsurgent
Thu Sep 10, 2015 5:07 am UTC
Forum: Coding
Topic: New to Coding
Replies: 101
Views: 137016

Re: New to Coding

Sure, but those "idiots" go on to become "senior developers" with 25 layers of abstraction and all sorts of awful ideas about system design and while you're totally being reasonable to say that a programming language isn't going to save them, there are many facets of Java and the...
by DaveInsurgent
Thu Sep 10, 2015 1:49 am UTC
Forum: Coding
Topic: Sanitizing Code Submissions
Replies: 6
Views: 3543

Re: Sanitizing Code Submissions

Oh, in all seriousness - consider Docker. You can have a set number of containers that represent each submission environment (C++, Java, whatever) and you can even create problem sets FROM those containers, and then execute their submission that way. These will start up in milliseconds. You can even...
by DaveInsurgent
Wed Sep 02, 2015 4:17 pm UTC
Forum: Coding
Topic: Sanitizing Code Submissions
Replies: 6
Views: 3543

Re: Sanitizing Code Submissions

RUN IT IN DOCKER!!!!!1oneonelevenhypemachine
by DaveInsurgent
Tue Sep 01, 2015 5:16 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

Thanks for the advice! Nice to hear I'm not crazy :) I think I'm professional enough to not let my irritation show (I hope! One can over course never be completely certain about one's subconscious body language). But the internet can be a good place to vent, or ask for advice. I'm working in a scru...
by DaveInsurgent
Thu Aug 27, 2015 5:54 am UTC
Forum: Coding
Topic: Help building a parser combinator?
Replies: 10
Views: 3956

Re: Help building a parser combinator?

Would something like Protocol Buffers help you either as something you can depend on and build from, or draw inspiration from at the very least?

https://developers.google.com/protocol- ... s/overview
by DaveInsurgent
Wed Jul 15, 2015 3:55 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9853
Views: 1745917

Re: Coding: Fleeting Thoughts

I didn't think type erasure was "used" in Java but rather was as a concession that was made for the sake of backwards compatibility. C# (or rather, the CLR) does not have the same type erasure yet offers the "same" language features you're describing as having come "from&quo...
by DaveInsurgent
Wed Jul 15, 2015 3:52 pm UTC
Forum: Coding
Topic: HTTP response code for a redirect upon success
Replies: 4
Views: 2707

Re: HTTP response code for a redirect upon success

You're right that a 200 seems like the correct response. The fact a different 'page' is being sent is completely irrelevant, and in fact is how HTTP/REST is designed (all that matters is the current state of the resource as the server decides to present it). BUT - browsers exhibit some funny behavio...
by DaveInsurgent
Thu Jun 25, 2015 3:00 pm UTC
Forum: Coding
Topic: Abstraction-based versus instruction-based software document
Replies: 5
Views: 2448

Re: Abstraction-based versus instruction-based software docu

Could some of this be attributed to the use of documentation generating tools?

I prefer reading tests over docs of any kind.
by DaveInsurgent
Thu Jun 04, 2015 2:31 am UTC
Forum: Coding
Topic: Help with What If-style Citations
Replies: 23
Views: 6979

Re: Help with What If-style Citations

Xanthir is saying just put a onclick="event.preventDefault()" on the citation. I think that works and is the correct solution, I said javascript:; because I wasn't sure if "click" had any corner cases on any browsers with touch etc.
by DaveInsurgent
Wed Jun 03, 2015 2:40 pm UTC
Forum: Coding
Topic: Help with What If-style Citations
Replies: 23
Views: 6979

Re: Help with What If-style Citations

I think you can just use "javascript:;" as the href then.

And you could always make the citation anchor point to an id that is given to either the citation element itself, or the near/surrounding content..
by DaveInsurgent
Mon Jun 01, 2015 12:26 am UTC
Forum: Coding
Topic: Tipps for Android app server communication?
Replies: 15
Views: 3295

Re: Tipps for Android app server communication?

It's not hard to appreciate the wealth and depth of knowledge being presented here, but the OP asks how to make "a simple" Android app communicate with a server. Maybe I misread the OP, but I figured it was "I want to talk to a server, and it probably should be encrypted" not, &q...
by DaveInsurgent
Sun May 31, 2015 9:02 pm UTC
Forum: Coding
Topic: Useful applications of recursion?
Replies: 19
Views: 4405

Re: Useful applications of recursion?

If you're replacing recursion with a loop and a stack, all you've done is reinvented the call stack. There's no good reason to do this unless performance is absolutely essential. I thought the point was to work in the heap instead of on the stack, again all depending on what the environment the pro...
by DaveInsurgent
Sun May 31, 2015 5:16 pm UTC
Forum: Coding
Topic: Tipps for Android app server communication?
Replies: 15
Views: 3295

Re: Tipps for Android app server communication?

Just use HTTPS / HSTS - the problem you're solving has been handled via application layer protocols. (The user logs in to your service to obtain a token, but that is all done via HTTP within a secure connection).
by DaveInsurgent
Sun May 31, 2015 2:26 am UTC
Forum: Coding
Topic: Useful applications of recursion?
Replies: 19
Views: 4405

Re: Useful applications of recursion?

And recursive data structures can still be dealt with via loops and stacks/queues... it's a matter of what constraints (i.e. memory/storage) are placed on the solution, no? Yes, they can, but (at least IMO) doing so is often a PITA and makes for far less clear code than the recursive version. If yo...
by DaveInsurgent
Sat May 30, 2015 2:43 pm UTC
Forum: Coding
Topic: Useful applications of recursion?
Replies: 19
Views: 4405

Re: Useful applications of recursion?

And recursive data structures can still be dealt with via loops and stacks/queues... it's a matter of what constraints (i.e. memory/storage) are placed on the solution, no?

And in certain imperative cases, TCO is legit?
by DaveInsurgent
Sat May 30, 2015 2:41 pm UTC
Forum: Coding
Topic: Useful applications of recursion?
Replies: 19
Views: 4405

Re: Useful applications of recursion?

From an interview perspective, I think most people find the recursive solution (I liked the word 'notation' above) to be a bit easier to read and discuss, whereas other approaches within dynamic programming sometimes are not (as a matter of preference, of course)? There's also the part where most 'p...
by DaveInsurgent
Sat May 30, 2015 3:17 am UTC
Forum: Coding
Topic: Next Java List
Replies: 5
Views: 2455

Re: Next Java List

for sure - cheers. been a while since I dealt with public abstract crap Java.
by DaveInsurgent
Fri May 29, 2015 7:24 pm UTC
Forum: Coding
Topic: Next Java List
Replies: 5
Views: 2455

Re: Next Java List

index = 0; // if (tmpList.isEmpty()) { // handle empty } do { listItem = tmpList.get(index); // you can print other helpful information before this // but you will need a library if you want to create a 'full screen' console because this is just appending System.out.println(listItem) } while ((resu...
by DaveInsurgent
Thu May 28, 2015 5:00 pm UTC
Forum: Coding
Topic: Monads(?) in C++
Replies: 9
Views: 4074

Re: Monads(?) in C++

by DaveInsurgent
Thu May 28, 2015 12:34 am UTC
Forum: Coding
Topic: Help with What If-style Citations
Replies: 23
Views: 6979

Re: Help with What If-style Citations

I think this: http://jsfiddle.net/qvquoxou/1/ Is also a lighter weight version of the non-JavaScript implementation (though anyone trying to avoid JavaScript is basically going to have to give up computering in the next few years) -- if you can accept the lack of toggle (so it handles focus lost, bu...

Go to advanced search