|
Lumpy posted:It's no VIM, but it's not bad for a non-VIM thing. I have to google an escape route every time some git command unexpectedly traps me in that thing.
|
# ? Jan 12, 2017 17:43 |
|
|
# ? Jun 10, 2024 13:11 |
|
Kekekela posted:I have to google an escape route every time some git command unexpectedly traps me in that thing. Just write "In Case Of Emergency: ESC : ! q " on your monitor.
|
# ? Jan 12, 2017 17:56 |
VSCode is great, I have no idea how they managed to take Electron and actually make it feel responsive and good. It even boots up faster than Atom.
|
|
# ? Jan 12, 2017 18:07 |
|
Kekekela posted:I have to google an escape route every time some git command unexpectedly traps me in that thing. git config --global core.editor <your editor> is your friend
|
# ? Jan 12, 2017 18:47 |
|
Lumpy posted:Just write "In Case Of Emergency: ESC : ! q " on your monitor. porksmash posted:git config --global core.editor <your editor> is your friend
|
# ? Jan 12, 2017 19:06 |
|
I'm using atom with the git-plus plugin, and couldn't be happier. Ctrl-Shift-H $gitCommand
|
# ? Jan 12, 2017 20:37 |
|
Plavski posted:There's a minor war going on in my department. The cool, smart and driven JavaScript developer - me - is trying to instruct the old, C# wielding dinosaurs that Visual Studio isn't the panacea they think it is. Writing TypeScript in VS is pretty grim when you try and do anything out of the ordinary. VSCode just eats that stuff up. The team actively tries to build their code around the limitations rather than embrace the new. Oh for a job where I was swimming with the current instead of against it! VS is really good though. But if you're just doing JS development, there's no sense in using VS over VS Code. Most full stack developers that I know use both.
|
# ? Jan 13, 2017 14:17 |
|
Maybe this isn't the right thread, but what's the job market like in Amsterdam these days? I'm having this urge to skip on work here in Lisbon, at the cost of losing out on a possible incoming tech bubble, for some different city, just because.
|
# ? Jan 13, 2017 14:31 |
|
Helicity posted:VS is really good though. But if you're just doing JS development, there's no sense in using VS over VS Code. Most full stack developers that I know use both. For sure, it just can't keep up with modern JavaScript. My development team would rather ignore advanced language functionality for the sake of staying with Visual Studio as we mix both C# and TS in our application. Our tech lead hates change - not a particularly awful thing for an architect - but he'd rather not use useful functionality of TypeScript 2+ (we're still on 1.8, and even that came after a massive drive by me to go up from 1.4) and VSCode for the sake of the simple life on Visual Studio. It kinda limits what we can do and we end up having to build around the functionality instead of using it. As an example, because Visual Studio doesn't have decent native support for NPM, we can't use it; it's NuGet or nuthing. All our TypeScript config is handled at the .csproj level and not in a tsconfig, which means you're arbitrarily limited to what you can do with TS - if it's not in the interface, VS won't accept it. Our TypeScript is also being left in static files with no decent loader and nothing but the barest of import/export usage. Cross file dependency is non-existent in our codebase because VS isn't robust enough to handle it, at least not 2013. I'd feel better if we at least pushed up to 2015, but I've used 2015 extensively in a parallel project and it still isn't as tight or as useful as VSCode for TypeScript work. There's a "if it ain't broke, don't fix it" approach in our team that works for C#, but with an evolving language like TypeScript/ES6+, you end up constrained by a monolithic tool like Visual Studio. You can adapt and advance easier and better with VSCode. Thems my thoughts from working with this for a couple years anyway.
|
# ? Jan 13, 2017 14:40 |
|
Helicity posted:Most full stack developers that I know use both. VVV quote:https://conemu.github.io/ Kekekela fucked around with this message at 20:07 on Jan 13, 2017 |
# ? Jan 13, 2017 14:50 |
|
Kekekela posted:That's my situation. WebAPI project in C# using VS, then the javascript client using Sublime/Powershell (soon-to-be VSCode). On windows I always use https://conemu.github.io/ instead of powershell, which you can also configure in on conEmu but whateves Honest Thief fucked around with this message at 15:29 on Jan 13, 2017 |
# ? Jan 13, 2017 15:05 |
|
I don't know if this is the correct place or if I need to be in the other web dev thread but anyways here goes. So I'm a super beginner at modern web application (last time I coded for web I did HTML in a notepad with a tiny bit of javascript), I have a class on java and our teacher tasked us with developing a simple modern web app. For this he said we can basically use anything we want but he provided a very simple basis for using Java with Spring MVC, Maven and Bootstrap. As I said I don't know most of this stuff, I mainly do embedded computing with C/C++ and I'm not used being so high level with thousands of frameworks in every direction I look. Anyway, he provided a simple hello web app which basically prints whatever you put in the URI, so it's very simple. He asked us to make a simple todo list web application, where you can create up to 4 todo list, then add/remove tasks from them. Now I've been reading a lot of stuff on internet and I've been wrestling with making the interaction between the controller and the view working. I started simple by just having a form with a single text area and submit button, in my controller I implemented the methods to handle post and get requests. The get seem to work (i.e. my form display and I can enter stuff however when I click submit I get an error saying the client answer was not properly formatted or something.) Now I don't really want you guys to hold my hand through this but what would be a good source of documentation to understand this? Because honestly there is such an astonishing amount of crap on the web that I spent several hours trying to rummage through blog posts. Also something I'm not sure I understand is how to structure my stuff, like can I use a single mapping to do this? Could the GET allow me to display the form to add a new list and modify the already existing ones while also displaying the created list with their content. I'm sorry if this is a lot of words to basically say I suck at this but maybe someone could point me in the correct direction? Thanks guys.
|
# ? Jan 13, 2017 15:55 |
|
WebStorm is pretty great too. It's got its pluses and minuses vs VS Code, but check it out if you're looking around for a new IDE. Anyway, what I really came in here to post was this thing that I can't decide if it's great or horrible. I want to say great, if only because I couldn't tell if it was a joke for a little while, but maybe it's horrible? https://github.com/sylvainpolletvillard/postcss-grid-kiss quote:This is a PostCSS plugin aiming to replace the 24 new properties brought by CSS Grids with a single one that you immediately understand when you see it. This is how you design a grid with it:
|
# ? Jan 13, 2017 16:29 |
|
Thermopyle posted:Anyway, what I really came in here to post was this thing that I can't decide if it's great or horrible. I want to say great, if only because I couldn't tell if it was a joke for a little while, but maybe it's horrible? I'm going with horrible.
|
# ? Jan 13, 2017 16:46 |
|
Thermopyle posted:WebStorm is pretty great too. It's got its pluses and minuses vs VS Code, but check it out if you're looking around for a new IDE.
|
# ? Jan 13, 2017 16:54 |
|
Thermopyle posted:WebStorm is pretty great too. It's got its pluses and minuses vs VS Code, but check it out if you're looking around for a new IDE. I looked over it and that's actually pretty interesting. I wonder how functional it actually is in practice, I mean drawing little ascii boxes is strange, but it could work.
|
# ? Jan 13, 2017 17:10 |
|
Le0 posted:<snip> Ideally you'd follow the recommendations here with regard to which verbs you use for which operations, so you'd have a controller method mapped to each of them. I've never used Spring before but this looks pretty straightforward and a lot like other MVC-ish web frameworks (I've never actually used Spring itself). To use a different verb from a simple web form, you just set the method attribute on the form element like <form id="just" method="POST"> and the framework will route that form data to the appropriate handler on the controller. You can do this with plain HTML if you just have a whole bunch of purpose-built forms that just do one thing like adding an item to the list or deleting a line: you can have as many as you want on a page and that's just fine! HTML code:
Munkeymon fucked around with this message at 17:26 on Jan 13, 2017 |
# ? Jan 13, 2017 17:24 |
|
ModeSix posted:I looked over it and that's actually pretty interesting. I wonder how functional it actually is in practice, I mean drawing little ascii boxes is strange, but it could work. I'd rather draw ascii dicks. Whoever thought of that was probably looking at old BBSes from the 80s.
|
# ? Jan 13, 2017 19:56 |
|
Had my first "node on windows" issue in quite a while today. Trying to set NODE_ENV in an npm script but webpack wasn't picking it up. Found a bunch of different suggestions but nothing was working. Finally this little package saved the day: cross-env
|
# ? Jan 13, 2017 23:55 |
|
I read this post about React "Aha!" moments this morning and I thought I'd share it since I remember when I figured these things out it really helped me understand how to write React. The moments he highlights (see the post for explanations):
|
# ? Jan 17, 2017 17:42 |
|
Honest Thief posted:Maybe this isn't the right thread, but what's the job market like in Amsterdam these days? I'm having this urge to skip on work here in Lisbon, at the cost of losing out on a possible incoming tech bubble, for some different city, just because. Plenty of jobs, but the housing market is completely hosed up, and most jobs don't pay enough to afford the rent of a house. Expect salaries after tax somewhere between 2000 and 3500 euros (and at the top end you are pretty much a senior software architect or managing a department or so), and rent easily being €1200 a month for a small apartment of say 40m2 if you want to live anywhere near the center. Also, you are expected to earn 3-5 times the rent before taxes, so expect to need a salary of at least €4000 before taxes, which is possible but not easy, depending on your experience level. Roommates to split rent with won't help because most corporations that rent places expect each person to be able to afford the rent on their own unless you are married or so. But you should probably expect to not be able to find a place in Amsterdam, but in one of the cities surrounding it. Housing prices in Amsterdam have gone up 20% last year and people are now buying houses without even seeing the place. It's that insane.
|
# ? Jan 18, 2017 13:06 |
|
9-Volt Assault posted:Plenty of jobs, but the housing market is completely hosed up, and most jobs don't pay enough to afford the rent of a house. Expect salaries after tax somewhere between 2000 and 3500 euros (and at the top end you are pretty much a senior software architect or managing a department or so), and rent easily being €1200 a month for a small apartment of say 40m2 if you want to live anywhere near the center. Also, you are expected to earn 3-5 times the rent before taxes, so expect to need a salary of at least €4000 before taxes, which is possible but not easy, depending on your experience level. Roommates to split rent with won't help because most corporations that rent places expect each person to be able to afford the rent on their own unless you are married or so.
|
# ? Jan 18, 2017 13:25 |
|
What's the best way to handle date input? The designers don't like how HTML5 date elements look different across browsers/platforms, and React automatically updates when manually typing in a date such that trying to use minimum and maximum years causes the app to poo poo itself since typing in "1990" makes it think you're inputting year 1, then 9, then 9, then 0, which is frustrating as poo poo. We're of half a mind to tell design to go gently caress itself and favor native datepickers, but I'm still running into the weird React min/max problem.
|
# ? Jan 18, 2017 18:23 |
|
Pollyanna posted:What's the best way to handle date input? The designers don't like how HTML5 date elements look different across browsers/platforms, and React automatically updates when manually typing in a date such that trying to use minimum and maximum years causes the app to poo poo itself since typing in "1990" makes it think you're inputting year 1, then 9, then 9, then 0, which is frustrating as poo poo. Surely, React has some way to debounce your input such that you aren't evaluating on every keypress.
|
# ? Jan 18, 2017 18:27 |
|
Skandranon posted:Surely, React has some way to debounce your input such that you aren't evaluating on every keypress. Yeah, I think I had just hosed up something somewhere - it works fine now. Design's still gonna complain about it, though.
|
# ? Jan 18, 2017 18:32 |
|
Pollyanna posted:What's the best way to handle date input? The designers don't like how HTML5 date elements look different across browsers/platforms, and React automatically updates when manually typing in a date such that trying to use minimum and maximum years causes the app to poo poo itself since typing in "1990" makes it think you're inputting year 1, then 9, then 9, then 0, which is frustrating as poo poo. React only "automatically updates" on input if the input element is a controlled component. If you want to do stuff with the input you have to inject your stuff somewhere in the component lifecycle.
|
# ? Jan 18, 2017 18:34 |
|
Skandranon posted:Surely, React has some way to debounce your input such that you aren't evaluating on every keypress. React doesn't really address it. I use this guy: component/debounce
|
# ? Jan 18, 2017 18:46 |
|
Yeah, I'm definitely wrong on how React works in this case. I think I was barking up the wrong tree for that. I've still got a problem, though. We want to support users on older browsers like IE and Edge and Firefox (we do retirement and life insurance stuff) which means we can't really rely on the date HTML element. However, design wants to implement a natural-language form that depends on the user typing in their information, as you can see here. So, I'm thinking that if we want to implement this, we can't rely on the datepicker element in Chrome/HTML5 and would have to implement something custom ourselves, thereby basically copying what they have. I'm wondering if it's worth pushing back on this, or if I should ditch the HTML5 approach and just go with their preference. Obviously, I can't decide this on my own, so I'll be floating this by the rest of the team, but I wanted to get some opinions on how something like this is best implemented.
|
# ? Jan 18, 2017 18:58 |
|
The laziest way I can think of is making the month, day and year individual inputs and style them so they look like one with built-in slashes.
|
# ? Jan 18, 2017 19:29 |
|
Anyone know why my SASS colors are compiling to different values now? It usued to be what shows on http://www.sassmeister.com/ but now colors using mix() are slightly different. I notice the website shows 3.4.21, the most recent version is 3.4.22 but somehow I have 3.4.23??
|
# ? Jan 18, 2017 20:01 |
|
Couldn't you validate the date after the control loses focus using the onBlur event?
|
# ? Jan 19, 2017 00:30 |
|
Pollyanna posted:Yeah, I'm definitely wrong on how React works in this case. I think I was barking up the wrong tree for that. Use one of the many available date picker components? https://react.rocks/tag/DatePicker Or a masked input component? https://github.com/insin/react-maskedinput https://github.com/sanniassin/react-input-mask
|
# ? Jan 19, 2017 16:21 |
|
I'm using the Angular smart-table module right now to display tabular data. It's good for getting started, but I was hoping to have something that will let me mess with the columns. I'm only showing a subset of my columns, and I'd like to give the user local capability to mess with them. Specifically: 1. Add a new columns from prescribed types associated with my model. 2. Remove existing columns. 3. Drag around to rearrange columns. On top of that, I was hoping to retain the global search that the smart-table module already has. I'm assuming I will have to just implement this myself some day--perhaps based on some snippets online, but still by myself. I'm not in any hurry to do that. Is there an alternate Angular table implementation I should consider to get all this in one go by default? I saw a few with various degrees of column manipulation, but then the search was a text box per column. I guess in the long term I also have to deal with pagination. It looks like smart-table has me covered there, and anything I use instead would have to support that as well.
|
# ? Jan 19, 2017 23:35 |
|
Kekekela posted:Had my first "node on windows" issue in quite a while today. Trying to set NODE_ENV in an npm script but webpack wasn't picking it up. Found a bunch of different suggestions but nothing was working. Finally this little package saved the day: cross-env cross-env is great, and goes well with https://www.npmjs.com/package/npm-run-all if you have scripts that need to do things in parallel across OSes.
|
# ? Jan 20, 2017 04:53 |
|
So I managed to advance my list and make it work, thanks! However I have a weird problem I'd like to ask you about. I have a TodoList class which extends the arraylist like so: code:
This works properly. Now I also added that listName attribute and I'd like to simple display this name before the tasks. To do this, I simply modified my jsp code to print the list.listName attribute before all the asks like so: code:
code:
I get: [ch.heigvd.poo.todolist.TodoItem@1e39ce1d, ch.heigvd.poo.todolist.TodoItem@72e3b472, ch.heigvd.poo.todolist.TodoItem@45fa30f9] Which looks like a TodoItem list but my listName attribute should be in there also?? I'm kinda lost here.
|
# ? Jan 20, 2017 11:04 |
|
Rocko Bonaparte posted:I'm using the Angular smart-table module right now to display tabular data. It's good for getting started, but I was hoping to have something that will let me mess with the columns. I'm only showing a subset of my columns, and I'd like to give the user local capability to mess with them. Specifically: ui-grid will do all of that. It's nice and easy to implement, since I just did it. http://ui-grid.info is the website. If you hit the tutorial section, I am pretty sure it will show you each of the behaviors you described. That being said - the rest of the docs aren't super great - so be prepared to do some digging.
|
# ? Jan 20, 2017 13:51 |
|
Some pretty interesting "state of the javascript" survey results here: https://risingstars2016.js.org/ I'm surprised Vue is so popular. I've messed around with it a little a couple times over the past year just because of the hype, but I find I vastly prefer React's approach. Any of you goons using it?
|
# ? Jan 20, 2017 14:16 |
|
Le0 posted:I don't understand why the hell it's trying to parse the listName as an int?? And also why my listName attribute seems to be missing. When I print ${list} Can you post the .jsp with the form that has the listName input? The listName is likely not making it into the DB and Java is trying to coerce null/undefined into a number for some reason.
|
# ? Jan 20, 2017 15:44 |
|
Kekekela posted:Some pretty interesting "state of the javascript" survey results here: https://risingstars2016.js.org/ I'm always sceptical of those surveys. Here's one from late last year where Vue barely registers at all: http://stateofjs.com/2016/frontend/
|
# ? Jan 20, 2017 15:50 |
|
|
# ? Jun 10, 2024 13:11 |
|
Dogcow posted:Can you post the .jsp with the form that has the listName input? The listName is likely not making it into the DB and Java is trying to coerce null/undefined into a number for some reason. Of course, thanks for taking a look at it. I managed to make it work in the ugliest way possible, making another array list with just the names of the lists, hopefully you can help me find the proper way to do this. In the first div is the form, then the second div is the display of all the lists and tasks. code:
|
# ? Jan 20, 2017 16:04 |