Open Side Menu Go to the Top

05-01-2015 , 12:47 PM
If anyone's in Vegas next week shoot me a PM if you want to meet for a drink, would be great to chat to some of you IRL
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
05-01-2015 , 01:14 PM
Quote:
Originally Posted by adios
I agree with you. Overwhelming majority of posters on this forum want to offer help and realize that they were noobs once. Keep posting here, the advice is good.
Thanks, most people here are indeed pretty awesome and have offered terrific advice.

Some have offered advice that they should internalize rather than direct outwards.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-01-2015 , 01:18 PM
wow @ this story and comments on HN. Hey lets go on the internet with our company blog and admit to several felonies. Great idea.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 07:00 AM
using threads in swing, even ones that are supposed to be safe like javax.swing.Timer, is a huge PITA.

I swear I managed to find a way to get it to deadlock, but that's not supposed to be possible.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 11:43 AM
I haven't worked with swing in ages, but aren't you supposed to only update the UI using the designated UI thread? (I think swing.Timer, swing.SwingWorker etc all run within that single UI thread.) How could you possibly deadlock using one thread o_O
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 12:20 PM
Quote:
Originally Posted by Grue
wow @ this story and comments on HN. Hey lets go on the internet with our company blog and admit to several felonies. Great idea.
Wow that guy is delusional.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:07 PM
Swingtimer updates within the EDT so it is fine to update the UI with it

However if you code drunk like i do sometimes and also suck at coding under the best of circumstances you can apparently simulate a deadlock by making too many calls to a method within the timer that changes a static variable while simultaneously using that static variable to determine the components' state.. Im not exactly sure what happened but the end result was all my components on a certain window getting completely frozen

I can't really explain what happened and my code's too embarassing to post so suffice it to say I know swing timers dont deadlock but my ****ty drunk spaghetti code froze up a whole window using a Swing timer

Last edited by jmakin; 05-02-2015 at 01:19 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:19 PM
You should ask your teacher why you're not learning punch cards as well as Swing, since both are equally likely to be applied in the real world.

Then fart in his face and run out the door.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:20 PM
Quote:
Originally Posted by candybar
This seems a little paranoid.
That sounds like something a freemason would say. Are you in on this with them?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:20 PM
However I fixed it and all the tables in my lobby now flash prettily when they are in a certain state. Go me

Suzzer iirc javafx hasnt completely replaced swing yet no? But we're not "learning" swing, i'm just using it to hastily write this project because i've used it before and it needs to be done in a hurry
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:24 PM
Quick survey: does anyone here actively program in Swing or any other Java client interfaces?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:25 PM
-_- i'm not saying you're wrong, i'm aware it isn't popular anymore
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:29 PM
I just don't think there are that many jobs right now in client-server, or PC/Mac client apps period. Any of the PC-based internal or say auto-repair shop software is going to use VB/C#.net whatever they're calling it.

Maybe some of my Mac programs are written in Java and I just don't realize it.

Anyway learn iOS or web-client stuff as soon as you can.

I guess Android apps are probably the most popular Java client platform out there. It's nothing like Swing though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:31 PM
Quote:
Originally Posted by suzzer99
You should ask your teacher why you're not learning punch cards as well as Swing, since both are equally likely to be applied in the real world.

Then fart in his face and run out the door.
This is fairly difficult to pull off even with trusted friends. Few people will let you leave your butt that close to their face for any length of time, and farting on demand can be tricky, even messy if executed poorly.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:35 PM
Quote:
Originally Posted by suzzer99
I just don't think there are that many jobs right now in client-server, or PC/Mac client apps period. Any of the PC-based internal or say auto-repair shop software is going to use VB/C#.net whatever they're calling it.

Maybe some of my Mac programs are written in Java and I just don't realize it.

Anyway learn iOS or web-client stuff as soon as you can.

I guess Android apps are probably the most popular Java client platform out there. It's nothing like Swing though.
most students in my software class went the c# route. I've ****ed around on the android sdk and it's confusing.

but say you're rammed into a corner and you have to program a small application singlehandedly in 3 weeks, do you try to learn an entirely new framework really quickly or use an older, reliable one you're familiar with that you know can do what you need it to do?

I think I'm still learning something if that matters at all at this point which I think it does as a sophomore/junior level CS student
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 01:46 PM
05-02-2015 , 01:48 PM
Quote:
Originally Posted by Anais
This is fairly difficult to pull off even with trusted friends. Few people will let you leave your butt that close to their face for any length of time, and farting on demand can be tricky, even messy if executed poorly.
Farting in the general direction of the face is good enough.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 02:00 PM
Quote:
Originally Posted by suzzer99
Quick survey: does anyone here actively program in Swing or any other Java client interfaces?
Yup, developing in SWT/JFace.

Quote:
Originally Posted by jmakin
However if you code drunk like i do sometimes and also suck at coding under the best of circumstances you can apparently simulate a deadlock by making too many calls to a method within the timer that changes a static variable while simultaneously using that static variable to determine the components' state.. Im not exactly sure what happened but the end result was all my components on a certain window getting completely frozen

I can't really explain what happened and my code's too embarassing to post so suffice it to say I know swing timers dont deadlock but my ****ty drunk spaghetti code froze up a whole window using a Swing timer
Ahh, that makes a lot more sense then. Still interesting though, what's that static object you are using from multiple threads?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 02:17 PM
plexiq I was going to ask what kind of app you worked on, then I thought it might be interesting to make a thread to see what the forum in general works on: http://forumserver.twoplustwo.com/19...you-do-1529429

Last edited by suzzer99; 05-02-2015 at 02:29 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 02:26 PM
I'd been thinking about doing something like that, maybe asking how many years studying or in the industry as well
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 03:25 PM
Quote:
Originally Posted by plexiq
Yup, developing in SWT/JFace.



Ahh, that makes a lot more sense then. Still interesting though, what's that static object you are using from multiple threads?
A string I've been using to track the state of a group of objects
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-02-2015 , 04:44 PM
FYI - last beating of the dead horse. In addition to candybar and some of the other devs here, I ran my X assignment by a guy who used to consult for us and is now the "node guy" at Heroku. He also has tons of angular and general JS experience. He was a little easier on me than candybar with his initial assessment of my app. I think we have very similar KISS approaches.

But he did make one really interesting point after reading X's feedback on the assignment.

Quote:
Based on the feedback, and the spec, I think you made the right call there. I'm not impressed with their critique of your solution because of this:

"More broadly, we're looking for evidence that someone has worked with large-scale apps and a code base shared by many developers who may (by necessity) be ignorant of each other's work." (review)

vs.

"We’re trying to assess your architecture expertise, not the framework author’s. Libraries like jQuery or Underscore will help you with busywork, but frameworks like Ember or Angular will rob you of opportunities to show off your chops." (spec)

These two statements simply aren't compatible. The premise of multiple teams working on a large-scale app together is *based* on the idea that they have a shared understanding of an underlying framework - this is why companies like google and facebook build and use systems like angular and react! What do you think would happen if one of facebook's 1000 engineers came in and decided to totally reinvent everything the rest of the company uses for his next project?

As far as I see it, this conflict leads to three possible scenarios:

1. You build what a good developer should: a small, pragmatic solution that meets the spec while being open-ended enough to grow later as the team and spec grows. Following their spec, you don't use a frontend framework, but you also don't invent your own home-grown framework because that's a terrible idea and a huge waste of time.

2. You ignore their spec and build the sort of thing that you really would in production - build and test systems along with a front-end SPA framework like angular, react, ember, knockout, etc. Of course, if you did this, they'd have a valid reason to fail you since you broke one of the requirements listed in the spec.

3. You build your own crappy version of angular, ember, react, etc, and use it to implement a massively over-architected solution that's much larger and more complicated than solution #1. This appears to be what they're looking for.

Worse, they were very unclear about what they actually wanted (I'd have guessed #1). I hate working for customers who can't communicate their actual business needs.

The irony is, you have a lot of very valuable experience you could bring to their team. When checking out that spec I was thinking, "****, this would be like round 3 for suzzer on this kind of app."
I hadn't thought about that massive disparity between the review comments and project.

Part of the problem might have been the manager over the device team department was out. So the director of the entire UI department (the guy who originally found me on linkedin) was filling in facilitating the assignment with the engineer. I get the feeling the director is not technical at all. It could possibly have gone differently if the device team manager had been around.

I'm glad it didn't though. Even if the job was going great - I would have been depressed for a year+ uprooting and moving to a new place where I didn't know anyone. I've done it before, comes with the territory. And if the job sucked on top of that it would have been horrible.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2015 , 09:37 AM
Quote:
Originally Posted by jmakin
most students in my software class went the c# route. I've ****ed around on the android sdk and it's confusing.

but say you're rammed into a corner and you have to program a small application singlehandedly in 3 weeks, do you try to learn an entirely new framework really quickly or use an older, reliable one you're familiar with that you know can do what you need it to do?

I think I'm still learning something if that matters at all at this point which I think it does as a sophomore/junior level CS student
I agree with you. C# is basically Microsoft's version of Java but has differences. After that you are confronted with a decision of which libraries/APIs to use. Utilizing C# automatically means using .NET with it's variety of ways to implement a GUI which has a learning curve to overcome even for a more experienced developer that hasn't used .NET and Visual Studio. The risk level goes way up too. A little much given the time frame you indicated. You made the right decision in my view, kudos.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2015 , 10:22 AM
Quote:
Originally Posted by jmakin
most students in my software class went the c# route. I've ****ed around on the android sdk and it's confusing.

but say you're rammed into a corner and you have to program a small application singlehandedly in 3 weeks, do you try to learn an entirely new framework really quickly or use an older, reliable one you're familiar with that you know can do what you need it to do?

I think I'm still learning something if that matters at all at this point which I think it does as a sophomore/junior level CS student
Conflating C#/Android SDK seems pretty weird.

I haven't followed your thread on what you're doing at all. .NET framework is generally good for small applications and maybe should have been your choice. This goes back to a big soapbox of mine though, which is that computer science needs to decide if it's an academic or applied discipline. My view is that it is almost always an applied discipline. If they're asking you to write a small application, that's applied and they should have taught you the right tools to go about it. If they're teaching you academic CS, then asking for a small app is an inappropriate way to test knowledge. In reality it's usually taught in a schizophrenic way where they teach you C++ and Common Lisp and then expect you to know how to write a modern web application.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2015 , 02:13 PM
Quote:
Originally Posted by suzzer99
Quick survey: does anyone here actively program in Swing or any other Java client interfaces?
I don't think people use Swing much anymore and it is sort of hard to tell what people have used, unless they publicly tell.

Javafx is supposedly what people use now for interface building.

IntelliJ IDEs and Charles are two that are written in java. Not sure what they used for the interface but probably not Swing.

I don't believe Java is dead in the sense that people think it is better to just go with c# for Windows and objective-c or swift for OS X. Can just do it all in java and have it work for Windows, OS X and Linux. Yet that can also be accomplished with C++ using Qt.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m