« first day (1644 days earlier)      last day (3338 days later) » 
00:00 - 23:0023:00 - 00:00

12:19 AM
@AshleyNunn Well I'd say it was mostly the doctors, but I like to think I helped spiritually
 
user15026
@Ampt lol well, you guys are collectively keeping me from being completely bored til they cyborgify me tomorrow early so I appreciate it
 
2:23 AM
@MichaelT would you like to answer to this question?
-4
Q: Type checking in dynamic language

overexchangefrom module operator.py we have functional abstraction def concat(a, b): "Same as a + b, for a and b sequences." if not hasattr(a, '__getitem__'): msg = "'%s' object can't be concatenated" % type(a).__name__ raise TypeError(msg) return a + b to perform concatenatio...

as you answered well on chat
 
2:58 AM
sorry the question is on hold, so you can't
 
user55340
Chat works for such questions.
 
user55340
(Currently having fun with making a utility in Java that digs into the innards of one object and tries to do its best to clone the fields to the innards of another object... its... yea, reflection... things are going to get interesting real fast...)
 
@MichaelT I am going thru chapter Building abstraction with data from composingprograms.com/pages/21-introduction.html
 
user55340
Builder is a useful one.
 
what does it mean to say structure info here? This chapter focuses on data. The techniques we investigate here will allow us to represent and manipulate information about many different domains. Due to the explosive growth of the Internet, a vast amount of structured information is freely available to all of us online, and computation can be applied to a vast range of different problems. Effective use of built-in and user-defined data types are fundamental to data processing applications.
 
user55340
3:01 AM
        for(Field f : srcFields) {
            try {
                Field dstField = dstClass.getDeclaredField(f.getName());
                boolean state = dstField.isAccessible();
                if(dstField.getType().isAssignableFrom(f.getType())) {
 
user55340
Oh yea... its going to get fun.
 
user55340
@overexchange let me tell you about a class that I dealt with the other day. It has about 30 fields in it. Its a bit of a mess. At one time it had 10, and someone made a constructor for it. Then another 5 were added... and another constructor made. This class is an immutable - so no setters. Just constructors.
 
user55340
And so I get to it and I suspect I need to add another field... but its got 5 constructors now, four of which are not used (maybe... maybe not) and the 5th one has 30 parameters. You have to get them all in the right order.
 
user55340
new Foo(something, something, null, something else, 42, thatthing, null, null, ....)
 
user55340
3:04 AM
yea, thats easy to follow. You need to change the 23rd parameter.
 
user55340
So I made an inner builder in there.
 
user55340
You end up with code that looks like this:
 
user55340
public class YourTypicalBean {
  private final String foo;
  private String bar, baz;
  private int qux;

  private YourTypicalBean(Builder builder) {
    foo = builder.foo;
    bar = builder.bar;
    baz = builder.baz;
    setQux(builder.qux);
  }

  public int getQux() {
    return qux;
  }

  public static final class Builder {
    private final String foo;
    private String bar;
    private String baz;
    private int qux;

    public Builder(String foo) {
      this.foo = foo;
    }

    public Builder bar(String bar) {
 
user55340
Something like that...
 
user55340
And then the calls to it are:
 
user55340
3:07 AM
Widget = new Widget.Builder(10).setparm1(1).setparm2(3).build();
 
user55340
But you don't need them to be in any order... or all there even.
 
user55340
Widget = new Widget.Builder(10).setparm2(3).setparm1(1).build(); // works just as well
 
user55340
And so, now next time a field is added, instead instead of having a 6th constructor with 31 fields, its a modification to add one 3 line method to the builder and another copy parameter in the private constructor.
 
user55340
Its a rather useful pattern.
 
user20683
@MichaelT That's like the first article out of effective java IIRC
 
user55340
3:15 AM
@WorldEngineer Yep. And its useful and one that is easily recognizable as "this problem there"
 
@MichaelT so constructors are used to initial bind of name(field name) to values and setters are used for re-assignments, correct?
 
user55340
Often, though conventions of the language differ.
 
user55340
Java has a 'bean' concept where there is always an empty constructor and setters and getters for every public field.
 
what does it mean to say structured data as I mentioned above?
Is it data coming from flat files or logs that is considered un-structured?
 
user55340
Logs can be structured data too.
 
user55340
3:29 AM
192.168.2.20 - - [28/Jul/2006:10:27:10 -0300] "GET /cgi-bin/try/ HTTP/1.0" 200 3395
127.0.0.1 - - [28/Jul/2006:10:22:04 -0300] "GET / HTTP/1.0" 200 2216
 
user55340
There is structure to that.
 
basically am trying to understand, why the author is saying: vast amount of structured information is freely available to all of us online, and computation can be applied to a vast range of different problems composingprograms.com/pages/21-introduction.html
 
user55340
Quite simply, there's a lot of data out there that is in a machine readable (structured) format such that information can be derived from it and used.
 
user55340
Most recent posts on P.SE via api: api.stackexchange.com/docs/…
 
user55340
3:34 AM
{
  "items": [
    {
      "owner": {
        "reputation": 101,
        "user_id": 164151,
        "user_type": "registered",
        "profile_image": "http://i.stack.imgur.com/QF6FZ.jpg?s=128&g=1",
        "display_name": "5gon12eder",
        "link": "http://programmers.stackexchange.com/users/164151/5gon12eder"
      },
      "score": 0,
      "last_edit_date": 1425525913,
      "last_activity_date": 1425525913,
      "creation_date": 1425524466,
      "post_type": "answer",
      "post_id": 275289,
 
Woah... that's awesome! I didn't realize there was an API
 
user55340
@Ampt thats how durga gets comments.
 
user55340
 
gah... I want to look but I'm still at work lol
almost done with this stupid proposal
 
3:36 AM
@whatsisname That's a good point.
 
3:58 AM
@Ampt ...you didn't think there was an API for SE? Every high traffic community content site has APIs, they have to
@Ampt ugh.. that's too many hours, you get OT pay?
 
4:09 AM
@JimmyHoffa .... I can but I won't
on the other hand if we sell this proposal, I'm pretty much guaranteed a promotion and raise at the end of the year so...
 
4:57 AM
@l19 neither Programmers nor Workplace will accept a question like this; both sites have custom close reasons for these. Recommended reading: What goes on Programmers.SE? A guide for Stack Overflowgnat 57 secs ago
 
Duga duga duga GNAT!
2
 
5:07 AM
here is the below program that designs a data abstraction on rational number which is structured information (num, den):
#Use
def mul_rational(x, y):
    """Violate abstraction by using other than constructor and selectors"""
    return rational(numer(x)*numer(y), denom(x)*denom(y)) #x and y are abstract data

def add_rational(x, y):
    """Violate abstraction by using other than constructor and selectors"""
    nx, dx = numer(x), denom(x)
    ny, dy = numer(y), denom(y)
    return rational(nx * dy + ny * dx, dx * dy)

def eq_rational(x, y):
    """Violate abstraction by using other than constructor and selectors"""
but if the data is unstrucured like img.getBinaryFormat(), How would one represent and use the data to design data abstraction?
teacher also teaches that: The techniques we investigate here will allow us to represent and manipulate information about many different domains. Due to the explosive growth of the Internet, a vast amount of structured information is freely available to all of us online, and computation can be applied to a vast range of different problems. Effective use of built-in and user-defined data types are fundamental to data processing applications.
 
 
5 hours later…
9:49 AM
@MichaelT Can you suggest, how do I implement hashCode() method here?
1
Q: "Data Abstraction" and "Abstract Data Type" for a rational number

overexchangeBelow is implementation 1 of data abstraction for rational number using functional paradigm written in Python: #Use def mul_rational(x, y): """Violate abstraction by using other than constructor and selectors""" return rational(numer(x)*numer(y), denom(x)*denom(y)) #x and y are abstract ...

 
 
2 hours later…
11:41 AM
This question is off-topic, although it would be appropriate to post on programmers.stackexchange.com Try there. — johnyu 1 min ago
I'm voting to close this question as off-topic because while it may be ontopic for other Stack Exchange sites, it is not for SO. — deceze 1 min ago
 
user20683
11:53 AM
@AshleyNunn Brain Surgery T-1 hour and counting.
 
user20683
She has promised us that she is not becoming a cyberman
 
interesting but too broad question, some parts migth fit on superuser.com, with more details maybe programmers.se could have this. — rene 1 min ago
@AlexanderMeesters This might be acceptable on Programmers (READ THEIR HELP CENTER), or if you're looking for advice on how to resolve this workplace dispute, you might checkout The Workplace (READ THEIR HELP CENTER). This would be off-topic on Code Review (READ OUR HELP CENTER). — nhgrif 26 secs ago
 
12:27 PM
Can we migrate this to Prgrammers.SE? There is a version of this question for UNTYPED lambda-calculus: programmers.stackexchange.com/questions/185941/…mac389 1 min ago
 
 
2 hours later…
2:56 PM
@WorldEngineer Yeah, that's what they all say, next ting you know they're fighting trash bins with plungers for domination of the human race.
 
3:22 PM
Heh. My posts on LinkedIn are now being moderated.
 
3:43 PM
I like programming language questions, but that was a train wreck.
 
4:16 PM
The "Please enumerate for me exactly what I need to know" question?
 
I read it more of "Please guess what sort of fantasyland I am living in, and then explain all of reality in terms I will understand."
 
> Your posts in this group are being moderated temporarily because members of this community marked your recent contributions as spam or not relevant.
This post:
17
Q: How to help a junior developer that refuses help?

Marco de JonghIn my team, I am the person with the most experience. We lack a strict junior/medior/senior split so we are all equals. I have been involved with this project from the start and because of that I have an extra developer support role, which gives me the time and responsibility to help my team memb...

is being close-voted as "educational advice," which seems a bit.. unsatisfying.
Perhaps a migration to The Workplace?
 
4:36 PM
sweet, got a +2/-2 on a somewhat inflammatory answer
 
0
A: How/Why do we design "Data abstraction" and "Abstract Data Type"?

Robert HarveyLet's first clear up some of your terminology. Abstraction is a technique for managing complexity of computer systems. It works by establishing a level of complexity on which a person interacts with the system, suppressing the more complex details below the current level. So, for example, writi...

@Gnomo: Asking "What is best practice" is sketchy, because we typically don't know how to judge that, since the OP seldom provides his specific requirements. Asking "why is something considered a best practice" is often educational, because it picks apart the belief. Such questions typically fare well both here and on Stack Overflow. Stack Overflow isn't just a troubleshooting tool, despite much effort by many people to turn it into one. — Robert Harvey 2 mins ago
 
> spare the rod, stab the junior
 
So that's what pair programming is? A remedial technique for marginal performers? — Robert Harvey 22 mins ago
 
@RobertHarvey ugh no... there's two types of pair programming, maybe three. Mentoring (not pair programming), Pair (equal skill actual pairing), Prodding/Monitoring/Pip (I'm gonna cut you, I just need to document it first, not pair programming)
 
4:53 PM
Hi guys! Would you mind giving me a quick hint why condition=$(awk 'BEGIN{ print "'$low'"<="'$high'" }') gives me 0 i.e. false? $lowbeing 2 and $high being 10.
 
> I'm gonna cut you, I just need to document it first
There's nothing like a Jimmy Hoffa quote to restore your faith in humanity.
 
@RobertHarvey what's a teamster without his paperwork?
 
@alex Is it comparing lexicographical?
 
@ThomasOwens I'm certain it is
@alex remove the double quotes, that will fix it.
 
@ThomasOwens Should be numerical. I've just replaced it with echo "..." | bc, seems simpler. Thanks though!
 
user55340
5:07 PM
@gnat those autocorrect errors were intentional.
 
user55340
(Honestly, I had to force it with poor word choice and sms speak at places... And you missed half of the errors too)
 
@WorldEngineer any updates?
Nevermind :)
in The Bridge, 1 min ago, by Ashley Nunn
Upgrade complete!
2
 
user55340
@AshleyNunn could do a parody of achievement unlocked.
 
5:22 PM
I'm glad that I've got some good news with the bad this time. My manager and friend on my last project passed away 2 days ago and I just got the call from his boss today.
 
that's rough
 
Yeah it's just timing. My aunt passed away last month and now this. They were both way too young for them to just be gone.
Glad I'm a consultant because I need a drink.
 
@Ampt :(
 
user15026
5:39 PM
@ampt sorry to hear that :(
 
Hey, no sadness out of you! You just went through freaking BRAIN SURGERY! Like whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat
 
Hopefully no one ever has to open my head up. Who know what they'll find in there.
 
@RobertHarvey Probably that banhammer SE miss-placed
 
No doubt.
Apparently I'm not getting the question @overexchange posted.
He's probably over-thinking it.
 
5:59 PM
@RobertHarvey cobwebs and peanuts. Oh wait that's me
 
@JimmyHoffa no, yours would be some sort of monadic parser.
 
@AshleyNunn if you've not seen it and you have a laptop or hulu capable device, Journey Man on hulu is a great fun show that kept my wife well distracted during one of her recoveries.
@Ampt @MichaelT is Scott Walker been good for WI? Just curious because the GOP folk seem to think he's their best shot at the general in 2016, and other than gouging out the unions eyes, I don't frankly know anything about the guy, and definitely not how his results have been.
 
6:40 PM
hi all, can anyone please help me with ajax calling to a servlet? i don't have reputation to ask this in stackoverflow chat :(
can i ask that kind of a question here?
 
20 rep anywhere on SE is all you need for chat priveleges anywhere
 
but i'm newbie here... i have only 1 rep... sad
 
then you shouldn't be able to chat here either...?
 
i have 121 only for programmers... not for other forums
 
yep, that 121 here will let you talk anywhere
 
6:43 PM
really???? :O OMG i didn't know that
 
Remember, with great power comes great responsibility
 
sorry bro... they don't allow
i tried stackoverflow
 
like the chat room right?
 
yes...
there is a chat room for web development... i can only see that chat, i can't involve it
they saying that i required to have atleast 20
could you please help me with my situation ?
i'm having problem with ajax calling to a servlet... request is not hitting to servlet
i didn't do any configurations to the web.xml
 
have you tried restarting the servlet?
 
6:47 PM
according to the tutorial that i have followed, he is not dealing with web.xml
i have put some alert messages in my js, i can see those,
that means only the ajax calling part is having a problem
 
or that the servlet isn't working how you think it works
 
yes... may be... i am using post
@Ampt hey .... please refer to my question here
-2
Q: HTTP request is not hitting Servlet

Jude NiroshanI didn't use web.xml. haven't configured anything. I'm using ajax calls with jquery. But my request is not hitting the servlet. Please help me to find the root cause. @WebServlet("/UpdateServlet") public class UpdateUsername extends HttpServlet { private static final long serialVersionUID = 1L; ...

 
Why didn't you post on SO?
 
This is my JSP part which i couldn't include in question....
<form id="updateUsername">
<label for="username">What is your name?</label>
<input type="text" id="username" name="username"/>
<input type="submit"/>
</form>
<p id="displayName" />
sorry.... what is 'SO'?
 
Stack Overflow
you know, the main site for debugging questions
 
6:58 PM
opps!!! .... okk... will you be able to move that question to SO? i think you have enough rep to do that
 
No, no one but mods can move questions from CR to SO
secondly, that question is awful. you've put absolutely 0 effort into trying to solve the problem yourself
slapping code on a form does not make a question
 
i tried which i know.... please help me..... i'm trying to working this out awaking in the middle of the night right now
 
Is this homework?
 
so, i tried by looking at many examples on google
but i still can't figure out my issue here
 
Why don't you ask your teacher?
 
7:01 PM
no...... i am developing a cargo system... this is the very first implementation i'm trying to do
i have done Servlets & JSP long time ago... but i don't remember those now.... i thought to start this project using struts2...
but someone whom i know very senior person in this field told me that those frameworks are now getting out-dated
so he asked me to move to ajax and jquery
only to use servlets and JSP.
this is the very that i want to try.... but my attempt is totally failed ;(
i don't have a teacher to ask.... that is why i came here to ask from you super teacher xD
 
can you hit the ajax endpoint manually?
 
This is my ajax part in the JS
for the url i have put my servlet name
$(document).ready(function(){

$('#updateUsername').submit(function(){
$.ajax({
url : '/UpdateServlet',
type : 'POST',
dataType : 'json',
data : $('#updateUsername').seriallize(),
success :function(data){
if(data.isValid){
$('#displayName').html('Your name is : '+data.username);
$('#displayName').slideDown(500);
}else{
alert('Please enter a valid username');
}
}
});
return false;
});

});
 
can you hit the ajax endpoint manually?
 
He has no clue what that means lol
 
sorry.... yes
 
7:06 PM
can you crack open your web browser, point it at UpdateServlet, and hit your breakpoint?
 
@Ampt is correct
 
or at least get an error that isn't Not Found
 
wait... i'll try it
 
I'm guessing he doesn't have the java server running
 
I would also put in an error handler to your ajax call.
 
7:07 PM
no... i'm using tamcat 7
 
it should provide useful info.
 
i think... something to do with the ajax calling... please wait .... my server is starting
i got this on browser console :
 
For anybody who hasn't done this: Go to the chrome app store and look for "Dev http client" and install it in chrome to easily make all the REST or other http requests you want to mess with
 
Uncought typerror : Undefined is not a function
 
Then you don't need to rely on fiddling with javascript to hit a server request you're testing
 
7:11 PM
yeh, there's a bunch of different options for that sort of stuff.
 
@JimmyHoffa thanks
 
Aye, they're super handy tools to have on hand if you do any web service work
 
ok sir.... so what would be the issue in my ajax ? i'm getting 'Uncaught TypeError: Undefined is not a function'
 
@Telastyn Another handy one I really like is wizdler - you go to a wsdl and it automatically gives you a little menu button on your location bar that lets you choose a soap operation to execute, then gives you a stubbed message from the wsdl definition to fill in the fields and execute it with.
 
there's a tool in the .NET release IIRC which is a basic ui for wsdls
makes little edit menus for the fields so you can run it
 
7:14 PM
@Telastyn sure there's tons of tools for that stuff, but having them in Chrome I find handy because I always have chrome up, and WSDLs always come in the form of URLs so if I click the link it automatically pops in there
 
fiddler is the standard here.
nod
@JudeNiroshan - sounds like you're trying to invoke Undefined somewhere in your javascript
 
we use SoapUI here sometimes too, but it's so bulky and every menu has enough options to configure spring into a full blown OS kernel...
 
@Telastyn so only thing what i have in my js is only the ajax callling
 
Where are you getting that error again?
Thankfully I don't need to do a lot with webservices
and thankfully I don't need to do a lot with javascript.
 
@Telastyn really? What kind of .NET do you do these days? Desktop apps are relatively dead anymore and you don't strike me as a crappy LOB maintenance dev
 
7:21 PM
current company does ads for mobile games. A lot of work on the back end of a web service, but the endpoint itself is just serialization. The guts of the things are easily unit testable (or else!)
last job was working against hearing aids, job before was rendering on in-store displays
personal work is games and a programming language
mostly programming language these days
 
user20683
afternoon
 
great.... somehow i got the calling to servlet by configuring web.xml
now the problem is, my json object's response is displaying on a separate page
$.ajax({
url : '/UpdateServlet',
type : 'POST',
dataType : 'json',
data : $('#updateUsername').seriallize(),
success :function(data){
if(data.isValid){
$('#displayName').html('Your name is : '+data.username);
$('#displayName').slideDown(500);
}else{
alert('Please enter a valid username');
}
}
});
 
7:39 PM
you had that bound to submit?
 
yes... this is with the submit block
 
I...just...need...2...more...rep.
 
Ah shoot, now you have 40,008
guess you can try again at 50k?
 
dunno. my detailed knowledge of javascript/jquery is pretty limited. I expect that the submit is the likely cause, since nothing seems obviously wrong in the handler.
 
@Telastyn thanx buddy
 
user20683
7:52 PM
@ThomasOwens In the grim darkness of the meeting tomorrow, there is only bored.
 
any of you guys know if its possible, using android studio, to make plain-jane command line java programs to run on windows?
I need to make a library for an android app, and if I could run/test it straight on windows, I could possibly work a little faster than futzing with running it on the phone
or do I need to install eclipse or something of that sort
 
40k!
 
@whatsisname do you have a minute to talk about our lord and savior, IntelliJ?
 
I want to catch up with Robert Harvey, but there aren't nearly enough process and management questions.
Ask more CMMI, Lean, Agile, etc questions guys.
 
sure
 
8:01 PM
I have a whole 13 questions to my name in like 3 years.
 
lol I have 1 question for programmers
 
@whatsisname you know I was going to come up with some long intriciate LOTR esque story but TL;DR: Android studio is a spin off of IntelliJ, one of the better Java Development platforms out there
 
alright I'll give that a spin
 
I love it, and @MichaelT turned me on to it, and if you like android studio, you will likely love it too
@AshleyNunn are you here to DELETE us?
 
I've never used android studio
last time I did android development the android-sdk was that eclipse plugin
 
8:04 PM
oh, why would you want to use android studio to make plain-jane java apps then?
 
user20683
thoughts on Mark Cuban's bubble pronouncement?
 
Sounds fairly localized to the suckers who invested in dreams this time so I'm pretty OK with him being right or wrong
 
so android studio is a new thing for me
 
It sounds less like a tech bubble and more like a "Small startup that happens to be on the internet" bubble to me
 
@Ampt: only desire to use android studio to make a plain-jane testing rig rather than installing another ide is laziness
if it was super easy to do then I would
 
8:09 PM
Give intellij a try
 
user20683
@Ampt my impression is "A bunch of Ivy League wannabes in San Francisco are gonna be cut down to size"
 
@WorldEngineer Exactly. Raise your hand if you feel bad.
 
user20683
@Ampt I was born in Palo Alto
 
where's this pronouncement?
 
@WorldEngineer have you recently tried selling your start up for an app that translates your dogs barking into english?
(And by start up, you mean company name and web domain. The actual app dev hasn't started yet. But you know a linguist who said he had an idea after 6 or 17 drinks)
 
user20683
 
I find that ironic since my perception of Cuban is that he's a bubble baby who's done very little himself.
 
I kind of get a similar vibe
 
user20683
@Telastyn he's Donald Trump with a better hair stylist.
 
I wouldn't say "very little himself", but just comparable to your run of the mill smart guy
he's no idiot
but what separates him from ho-hum middle class life and ultra-wealth I think was mostly luck
 
yeah, he's done a good job with the Mavericks, balancing being involved and staying hands off. he's good on TV and social media
but the only reason we know he exists is because of his poo-poo'd angel investors.
I wonder if he considers kickstarters angel investors in his stats.
 
8:16 PM
TIL I'm an angel investor...
Please, please, hold the applause
 
TIL?
 
user20683
Today I learned
 
mmm.
 
8:32 PM
Hi programmers!
 
I think this is better suited for programmers.stackexchange.com — caveman 1 min ago
 
@Christoph Hi!
 
I have written an interface that uses a piece of hardware (a peripheral) like a singleton. And now the hardware has grown and has two peripherals of that kind, so I need to reinvent my interface.
 
imagine that, a singleton causes problems.
 
No no, he just needs TWO singletons now
 
8:36 PM
eh, sorry. my disdain for singletons knows few bounds.
 
@Christoph that sounds like an appropriate question for these parts!
 
as in you'll have two of the peripherials at the same time
or as in your have two different peripherals that you want to expose through the same interface?
 
sorry...
being distracted
 
@Telastyn knows no few bounds? how generous of you
 
8:53 PM
This question might be a good fit for security.stackexchange.com, or possibly programmers.stackexchange.com. I don't think it belongs here on Stack Overflow. — Benjamin Hodgson 1 min ago
 
OK back again, sorry. My existing code is written for a microcontroller with one SPI peripheral, and the new controller was two of those.
 
you implemented a singleton on a microcontroller?
 
@Telastyn ah cool, yeah I bridge middle and back and have done enough full stack in the past to know full well that frontend work is for the birds... Everytime I see some state machine or parser like work or data processing I leap at that stuff. That's where all the fun is. I've still never touched game programming; it intimidates me..
 
You're using OO on a microcontroller?
 
@Ampt don't forget OO is an abstraction, compilers need not output anything that even remotely relates the abstractions...
 
8:55 PM
OO does not mean code bloat. I write OO in any language, even asm when I have to
 
@durron597 not generous, lazy.
 
@JimmyHoffa no, they often don't. OO is for the programmer, but still... the functions that a microcontroller deals with are usually well known, timeable, and constant. These things are usually best done procedurally
You write objects in assembly... for what reason? Is Procedural that scary to you?
Can a computer not simply compute for no other reason than an object needing to do an action?
And, on top of it, you're feeling the problems of OO in an almost text book fashion: The singleton you used to get around the fact that everything has to be an object is now hindering your ability to have two SPIs
 
@Christoph code bloat, no, but instruction and memory bloat? If it's laid out at the hardware level as objects, that's basically guaranteed... generally however compilers try not to lay things out as such
 
If he's doing it in C/ASM the compiler may have no other option but to lay these things out...
Declare a block of memory for an object with a macro and it's almost guaranteed that the compiler/optimizer will let you have it
 
@JimmyHoffa gamedev isn't that bad, but it does tend to be weird because of timing restrictions and odd UI instigated usage patterns
it's hard to do alone though. too many disciplines to be good at.
 
user20683
9:03 PM
2D game dev isn't that bad
 
To get back to the point, my code manages a queue of transfer descriptors for the SPI, so that the application can queue up a transfer and come back later to see if it has finished. This is an OO description and I can probably rephrase it for Ampt to make it more procedural
 
user20683
3D is considerably harder
 
@Telastyn that's the part that creeps me out. I feel comfortable with a lot of disciplines but the two which are important and I have no experience in are graphics processing/algorithms/etc and general low-level stuff, though these days you don't really need the low-level so much. I can deal with all the state machine and predictive processing and multi-threading et al without trouble, it's really the heavy-mathy-graphics stuff or framefubber jiggering that I'm clueless at
 
yeh, it's been a while since I played with that stuff.
 
user20683
@JimmyHoffa It's mostly linear algebra
 
9:04 PM
@WorldEngineer exactly. Not saying it's super impossible or I couldn't figure it out, but I have zero experience with it.
 
At several points during the transfer, the SPI must be manipulated by the application. Until now, there was just "the SPI", and now I need to pass around information about "which SPI" to use.
 
user20683
@JimmyHoffa if you want to learn it, I've got like 5 or 6 good resources
 
user20683
and honestly, from what's I've seen, you'd pick all that up pretty fast anyway
 
And this is what I'm not sure about - I need to decide where and when to pass references to the SPI instance. Is this overall situation and problem a good one for programmers stackexchange?
 
I imagine there is already questions about it.
 
9:07 PM
what would I search for? "get rid of singleton"?
 
user20683
refactoring singletons
 
@Christoph Look, I'm not trying to be mean or rude. I love me some Object oriented programming. Practically everything I do on the computer/web is OO because it's AWESOME. That said, it's just not a magic bullet. There are strengths and weaknesses to everything, and microcontroller environments are just one of those cases where OO is weak. I did Microcontroller programming and I've seen the problems you're facing and it's really self punishment for using OO
You can code however you want :) I just think that it's valuable to know when you're using the right tool for the job
 
user20683
2
A: So Singletons are bad, then what?

CawasThen what? Since nobody said it: Toolbox. That is if you want global variables. Singleton abuse can be avoided by looking at the problem from a different angle. Suppose an application needs only one instance of a class and the application configures that class at startup: Why should the class...

 
@WorldEngineer I actually bumped into a "learn math on your own beginners to einstein" book list on amazon a while back with fully detailed instructional on where to start and stop with each book and what each piece was for etc, some day I may actually walk through it
plus my ma tutors all of that for a living, I just never bothered to learn it because I never had a use... I deal in business rules and data flow, not algorithmic prediction et al...
 
@Ampt no problem, you didn't sound rude at all, and I know what you want to point out
I can also look at it from a totally different angle and try to come up with a totally new interface - I still wouldn't be sure about where exactly to pass information about which SPI to use
 
9:20 PM
@Christoph don't be confused, he's the manners of a drunken sailor with a compulsion for belligerent displays of offensiveness.
 
hic
 
user55340
Btw, I know it's a bit late and not Friday, but we should remember Lenord Nimoy for his musical contributions too.
 
lol
 
9:25 PM
where to pass information - wherever it is needed.
 
and a few places where it's not
just to be safe
 
user55340
@Ampt hipaa would like a word with you.
 
Sticks and stones may break my bones, but hipaa compliance regulations will someday jail me
 
user55340
@Ampt sticks and stones may break my bones, but by hipaa, you'll never know stuff.
 
Well I guess I'll just ask on the site then
 
9:33 PM
@Christoph please do! I think it would be a good question
 
user20683
I'd like to see some good questions today
 
it's been a slow, crappy day.
 
user20683
@Telastyn agreed
 
user20683
aside from @AshleyNunn having successful surgery so that her brain doesn't implode.
 
9:34 PM
I think I won't have it ready today, it's going to take a while.
good night!
 
user20683
@Christoph good night
 
looks like I missed the embedded OO hardware discussion
I missed another golden opportunity to be a SOLID hater
 
user55340
Exploding head syndrome (EHS) is a form of hypnagogic auditory hallucination and is a rare and relatively undocumented parasomnia event in which the subject experiences a loud bang in their head similar to a bomb exploding, a gun going off, a clash of cymbals, ringing, an earthquake, or any other form of loud, indecipherable noise that seems to originate from inside the head. This noise usually happens at the onset of sleep or within an hour or two of falling asleep, but is not necessarily the result of a dream. An episode can last from a few seconds to a couple of minutes. Most episodes occur...
 
@Ampt Sticks and stones may break your bones, but hipaa compliance regulations aren't followed enough to stop the media from knowing you had broken bones...
 
@Snowman Thanks for the reference.
 
9:41 PM
@MichaelT sleep hallucinations, hypnagroggy
 
user20683
@JimmyHoffa project managers zombie philosophically, shamble and moan through agile methodology.
 
@WorldEngineer ...and collect a huge check.
They're zombies, no wonder they charge so much-> Black market human brains aren't cheap.
 
user20683
A philosophical zombie or p-zombie in the philosophy of mind and perception is a hypothetical being that is indistinguishable from a normal human being except in that it lacks conscious experience, qualia, or sentience. For example, a philosophical zombie could be poked with a sharp object, and not feel any pain sensation, but yet, behave exactly as if it does feel pain (it may say "ouch" and recoil from the stimulus, or tell us that it is in intense pain). The notion of a philosophical zombie is used mainly in thought experiments intended to support arguments (often called "zombie arguments")...
 
user20683
@JimmyHoffa I was a phil major once upon a time, the fact that I don't have a degree in that discipline should tell ya something
 
9:55 PM
@WorldEngineer when confronted with the truth you decided being a Zombie was best done ignorant of one's condition?
 
user20683
@JimmyHoffa I got tired of petty distinctions for no purpose
 
> Philosophy is a disorder that causes people to ponder pondering, rather than go out and get a job.
@WorldEngineer in other words, you wanted a job.
 
all the Philo majors I knew in college were giant porn hounds.
 
How do you get rid of the Philosophy Major on your doorstep? Pay him for the pizza.
 
user20683
@JimmyHoffa I wanted a meaningful job
 
user20683
9:57 PM
@Telastyn all the ones I know are lushes
 
@WorldEngineer sounds like you're still keeping one foot in the philo door with distinctions like that one...
 
What does a giant porn hound look like? Does it have fur on its palms? Does it wear thick glasses?
 
@WorldEngineer you can afford a case of buds a week, what more meaning is there to life?
 
user20683
@JimmyHoffa I do have a degree in what is effectively history
 
user20683
@JimmyHoffa any other alcohol
 
user20683
9:58 PM
even Coors
 
user20683
or PBR
 
my (original) college had something like a 97% "drank in the last month" rate, so "lush" was not noticeable.
@RobertHarvey pretty much.
 
user55340
I was two classes from a philos degree. Backup for not getting through the math of numerical methods.
 
Meaning n. def: A slight tingle one experiences upon enough inebriation that they realize they know everything they'll ever need to, usually pre-emptory to a fight.
 
user20683
@JimmyHoffa Meaning n. def: The process of finding an average whilst angry at the world.
 
user20683
10:15 PM
Hey, it's my modeversary :D
 
@deceze ...see above ^^^ Recommended reading: What goes on Programmers.SE? A guide for Stack Overflowgnat 15 secs ago
 
user20683
2 years you guys have been stuck with me
 
-1
Q: what are some great resources about code-reviewing?

Alexander MeestersAt work, its common practice to do code-reviews, every ticket has to go through it and we all agree that code-review is a critical step in our delivery pipeline. However, our views on what a code review should cover differ from team-member to team-member on to the point of escalation. Now, i kn...

^^^ some SO folks are really crazy, just look at comments over there. They seriously suggest CR and Programmers for this garbage. Oh my
 
user20683
@gnat it's like how Americans in our huge country know jack all about the rest of the world
 
10:20 PM
@WorldEngineer bad, bad Americans! :)
 
user20683
@gnat I know a great deal more than most, I chalk it up to time spent in Germany as a child whilst my dad contracted for Bosch
 
@WorldEngineer so, in Stack Exchange terms you're like Robert Harvey who happens to know a great deal more about Programmers than average SO lemmings
 
user20683
@gnat maybe?
 
user20683
trying to wrangle a hold on web development at the moment
 
@WorldEngineer time to ask about great resources for web dev? ...at Stack Overflow!!!
 
user20683
10:27 PM
@gnat you're funny
 
@WorldEngineer it would be really funny if you did so. Programmers moderator asking for resource recommendations at SO, just think of it
sounds tempting?
 
user20683
@gnat I've got vastly better jokes and ways of trolling people
 
@WorldEngineer okay, guess then I would try it then. :) Time to find out how it really is to get into question block at SO
 
user20683
@gnat the trick is to make it not look like a resource request. Imply the request.
 
@WorldEngineer oh... but what you suggest sounds like a recipe for a good question (Atwood transform made before asking). Would be too hard to get into q-block that way
 
psr
10:55 PM
@Duga Excuse me, I need to go inappropriately post some forum-like questions to my toilet bowl.
 
@psr don't forget the dancing hamster signatures
 
00:00 - 23:0023:00 - 00:00

« first day (1644 days earlier)      last day (3338 days later) »