|
This is less a programming question and more of a question about how to manage programming. I'm the senior developer in my group and up until now we've been 9 people, most of whom are project managers or "technologists" (folks with a grasp of new tech but not necessarily developers.) We're getting a lot more work now and as such we're bringing on new developers. Previously, development practices have been done cowboy coding style. My question is, what are the best way to begin implementing development best practices in this environment? I've already started the push towards implementing a system of shared git repos rather than individual ones and a local->staging->production development and deployment cycle, but my biggest concern is that some of the "technologists" have enough experience writing code that they're a danger to the process, especially since they're more senior than I am. Has anyone run into this before? Does anyone have any suggestions for handling this issue from a development and an organizational perspective?
|
# ¿ Nov 3, 2012 16:22 |
|
|
# ¿ May 3, 2024 20:53 |
|
So, here's a question. Is there any kind of implementation of XDebug that doesn't suck? I spent hours trying to get it to work with Netbeans and still couldn't get it. I've got it working with PhpStorm but the actual IDE is kind of awful. All I want is to be able to set breakpoints and stop execution so I can check variable status. Shouldn't be too hard, right?
|
# ¿ Nov 14, 2012 21:14 |
|
rt4 posted:Have you configured Apache and PHP to work with Xdebug yet? Does it work at all? Netbeans itself probably isn't the issue. Yes, I have. Like I said, I've been able to get it to work with PhpStorm, just not NetBeans. Either way, the larger question still stands. Is there anything better out there than Xdebug?
|
# ¿ Nov 14, 2012 21:36 |
|
This feels like a really stupid question but I'm not sure how to do this within the bounds of the platform. I'm working in WordPress and I'm trying to develop a global calculation "counter". The counter needs to persist across all users and be running at all times, but be dynamically counting when a user is viewing the site. Normally I'd have a cron run a script every second or so to update a database then use AJAX to display the counter updating on the page, but WP doesn't seem like it offers something like this within its various APIs. Any thoughts?
|
# ¿ Feb 14, 2013 16:11 |
|
I've got a process question that I need help with. How do you guys go from higher level, general requirements like "we need this type of component" to discreet, low level tasks?
|
# ¿ Feb 28, 2013 15:47 |
|
the talent deficit posted:I'm playing around with Vagrant and it's beginning to drive me crazy. Trying to use the chef_solo provisioner none of my `chef.add_recipe "foo"` declarations get added to the `run_list` in `dna.json` (in fact, there is no `run_list` key in `dna.json` at all). I feel like I'm missing something obvious. I've been working on a vagrant build for LAMP stack development so maybe my example will help. https://github.com/DBell-Feins/vagrant-php-master Let me know if you have any specific questions about how I'm doing something in particular.
|
# ¿ Apr 17, 2013 13:28 |
|
I'm trying to wrap my head around designing an abstract dashboard webapp that allows a user to interact with data and design their own charts and graphs in an easy to use interface but I can't seem to figure it out. Does anyone have any suggestions for how to think this through or suggested reading for this kind of application design?
|
# ¿ Nov 24, 2013 16:48 |
|
KoRMaK posted:Are you familiar with HighCharts? http://www.highcharts.com/ I am, but that's not what I was asking. My question has more to do with modeling the interaction between abstract data and visualizations. Ideally what I'd like to write is a rudimentary BI platform that allows users to investigate their data via charts, tables, etc. without having to write code. I was going to write it on either Django or Spring, although I'm leaning towards using Python so I can incorporate analytics options using Pandas.
|
# ¿ Nov 24, 2013 19:30 |
|
Pollyanna posted:It's not that I want to use any one framework, I'm just looking for a way to keep JSON in a database. (Unless that's not a good idea?) Let me preface this by saying that I think it's awesome that you're trying to learn how to program and that you've really thrown yourself into the task. That said, I think you need to step back for a second and evaluate the way you're learning. It seems to me, based on reading your posts across various threads, that your method of learning how to program is:
While this is probably the quickest way to solve a problem, an education it does not make. My suggestion is that instead of trying to figure out how to get Knockout to talk to your Flask app or how posting form data works, you should really figure out the technologies you're working with. For instance, you went into a project about storing data without thinking about how you would store it. I'm entirely unsurprised that you did that; it's certainly keeping in line with your "program the tutorial" process. But that's something you should think about whenever you start a new project. You have to know what you want to do at the most fundamental level and what technologies that will require before you think about how you want your app to look. So, take your job app that you're working on right now. Here's where you're getting tripped up:
There are a bunch more, but I'm going to give you those 3 to start. Those are specific to your app, but there are a couple of other things you should address generally. On a fundamental level, you don't seem to fully grasp the technologies that you're working with. JSON, for example, is primarily a transport format. It's a good way of dumping complex objects to a string while maintaining hierarchies. It's also schema-less. Another example of a transport format is XML, although it is schema-ed and should always have a strongly defined one at that. I hope I haven't been too harsh, but I've started to feel bad every time I see you post about a new issue you can't figure out. If you really want to learn this stuff you should learn it. Don't just go through a tutorial.
|
# ¿ Jan 28, 2014 14:22 |
|
surc posted:Is there a not-horifically painful way to read a hexdump? That goes in the Coding Horror thread.
|
# ¿ Feb 2, 2014 18:50 |
|
ufarn posted:I just thought there'd be a better way to construct a URL conf with the number of keywords and arguments in it, and was wondering if there's a way to touch it up, now that it doesn't rely on query-based syntax. To be honest, if you're that concerned with the number of keywords in your URI you should be implementing a system similar to a RBAC where you assign users roles which have permissions on system resources. That way you can do away with spell-checkers/manage/16/ and implement it as a POST request where you specify an action (spell check) and check whether the current user can access that resource and do that action.
|
# ¿ Feb 23, 2014 14:43 |
|
I'm writing an API and also writing a frontend to consume it. In the future I'd like to write a mobile app that can work with the API as well. My question had to do with how to secure data. Is this a case where Basic Auth and ssl will be fine or should I look into api keys or should I go even further and implement OAuth2? If it's worth looking into OAuth2, what's the right way to think about it? I know OAuth2 has a bunch of different implementations and I'm still not 100% clear on how it works.
|
# ¿ Mar 3, 2014 16:34 |
|
sharktamer posted:Hopefully I can answer vagrant specific questions here. I'm trying to use vagrant on windows here to run yeoman. I have set up a share to my code folder on windows which syncs a folder within the vagrant guest. When I run yo webapp in the synced folder, it's constantly giving me issues, while running it in a non-synced folder within vagrant works fine. VirtualBox doesn't support symlinks in shared folders without admin privileges.
|
# ¿ Apr 30, 2014 20:24 |
|
sharktamer posted:Vagrant doesn't like that option, but it turns out it's default behaviour anyway. I'm pretty sure that even elevated applications can't elevate other applications. When Vagrant runs VirtualBox it's still running the VBoxService as non-privileged. Run VirtualBox as admin and minimize it. quote:I have no problems creating and accessing symlinks in the synced folder. Just linked a folder in the vagrant home with one in the share, no issues at all. Listen, I've been through issues with npm and installing npm_modules in my shared folder. It is 100% caused by VirtualBox not doing symlinks correctly in shared folders. See: https://www.virtualbox.org/ticket/10085 https://coderwall.com/p/qklo9w https://github.com/mitchellh/vagrant/issues/713 Note comment by laithshadeed near the bottom.
|
# ¿ Apr 30, 2014 22:26 |
|
pokeyman posted:All I can suggest without knowing the above is don't use XML. I was like you, once. Then I learned the pain that comes with trying to parse a data structure without a fixed schema. Until you surrender to XML you'll never know the joy of only having to write code to handle well structured data.
|
# ¿ Aug 6, 2014 11:23 |
|
I'm doing Python dev (web and scientific) and C# dev on the same rMPB. It's a great platform for pretty much any kind of development.
|
# ¿ Dec 13, 2014 16:42 |
|
ufarn posted:If I'm a Python/Django guy who wants to play around with another web-centred programming language that runs better than a Ruby/Python framework, Go would be the most obvious choice, right? C#
|
# ¿ Jan 10, 2015 22:46 |
|
Hughmoris posted:Since my work won't give me any sort of read-only access to any of our databases, You work for a hospital, right? If so... quote:I've thought about creating my own as a learning exercise. don't do it! HIPAA compliance is real and you will get yourself and your employer hosed very hard if you screw around.
|
# ¿ Mar 24, 2015 14:25 |
|
Is there a better solution for a generic questionnaire schema than a Questions table, an Answers table, a Questionnaire table, a Question_Choice table, etc.? I kind of hate how broad it is and how ridiculous it can get. this has to be a solved problem, right?
|
# ¿ May 9, 2015 16:28 |
|
nielsm posted:I think these are the main purposes: Is this for a government agency? If so, you should really have someone who's an expert in FISMA and related regs handle the auditing and communication with the agency's security team. If not, you really shouldn't have the kind of onerous security requirements you're assuming you have.
|
# ¿ Aug 3, 2015 18:51 |
|
I'm going to be the voice of reason and say "just dont' do it." Or, more specifically, make it extremely difficult for yourself to edit code on the server. Instead, you should be writing and testing all of your code locally and deploying to the server in one go.
|
# ¿ Aug 9, 2015 15:16 |
|
40k will net you a creative type that does programming in their spare time and might have an aptitude for learning.
|
# ¿ Oct 28, 2015 03:05 |
|
gmq posted:I have been editing some javascript code that's very efficient but hard to understand. Basically it takes a nested json and with recursion it transforms it into a matrix of objects and arrays to make it easier to transform into an html table. Start with a naive solution that you can get to work, then account for edge cases, then find places you can optimize.
|
# ¿ Nov 24, 2015 12:51 |
|
I like Jetbrains stuff so even though I've never used it, you could take a look at CLion.
|
# ¿ Dec 31, 2015 23:00 |
|
ufarn posted:This doesn’t seem to have done the trick - both the `sudo -H` trick and the chown one. For the latter, neither of the directories existed, so maybe something is wrong with the way pip is set up at the moment; `which pip` yields /usr/local/bin/pip, which should probably be pointing to my user dir? You probable forgot to source your virtualenv.
|
# ¿ Jan 26, 2016 13:36 |
|
crunk dork posted:Right on guys. I don't actually do HTML/CSS for work but instead used to do it as a hobby kind of. I do more IT network admin type stuff at my job and am trying to get into infosec and pentesting so that's why I'm trying to learn, if that has any bearing on suggestions. If you're looking at pentesting your best bets are python and ruby so you can write metasploit modules.
|
# ¿ Feb 9, 2016 03:46 |
|
Thermopyle posted:Source Code Pro This is the only correct answer. If on OS X use the powerline version.
|
# ¿ Feb 12, 2016 00:50 |
|
Munkeymon posted:I was thinking you could essentially print money if you could make a system that could learn to reliably transform business data. There's already tons of money in that space, so if you could undercut Data Transform Consultants Local Number 5032 by 10% with the kind of margins that you could get by spinning up instances on AWS/Azure on demand you'd probably be raking in billions in under five years. I kind of doubt it's possible to do with ML in its modern state, but I'm no expert. You're basically talking about every ETL platform plus maybe Drools.
|
# ¿ Mar 24, 2016 19:53 |
|
Mr. Crow posted:What (if any) conferences are worth going to these days? As a DevOps person? .NET? For DevOps you basically have to go to reInvent. Hashiconfs are optional as are DevOps Days and Monitorama.
|
# ¿ Aug 25, 2016 22:04 |
|
Steve French posted:I'd check out Elasticsearch/Logstash/Kibana. I've had it set up and running at work for a few years now if you've got any questions. Yeah the ELK stack is kind of the de facto solution for log transport, parsing, and visualization. If you don't want to handle running the ES infrastructure, AWS has an ElasticSearch service that works like RDS in that it abstracts most of the management and lets you focus on storing data.
|
# ¿ Aug 28, 2016 17:50 |
|
Pollyanna posted:This is a dumb question for me to ask so late into my career Jfc this is a dumb question. Slow the gently caress down and learn something instead of trying to check boxes. You're on your second job in the software industry. You have plenty of time.
|
# ¿ Oct 2, 2016 23:37 |
|
Whether data is "Big" or not is a function of its size, complexity, and/or speed of production/ingestion.
|
# ¿ Nov 13, 2016 06:27 |
|
UberJumper posted:Does anyone know if there is some sort of service/api that would allow my company to track issues relating to health/status of IoT devices? Can AWS IoT publish to CloudTrail? If so, you could use that and consume those logs (I can't remember how long CloudTrail persists logs but probably not long enough for what you want) and store them somewhere. If not, what about SNS or SQS?
|
# ¿ Dec 11, 2016 16:15 |
|
Thermopyle posted:I was going to start writing a dashboard for one of my web apps to track application statistics (not things like response time or status codes...I know about packages and apps for monitoring/graphing this stuff, but things internal to my app like 'widget-processing-time' or 'users-with-red-hair' or 'response-time-of-3rd-party-api') but I thought I'd ask about if there's any good 3rd party packages or sites for this. Is spitting this stuff into a log and analyzing it with ELK or one of the hosted solutions a good idea, or are there more purpose-built tools for this? That's basically why the ELK stack exists. I suppose you could also use whatever metric platform you're using and submit custom metrics then keep a rolling tally but you're shoehorning functionality when ELK does it for you.
|
# ¿ Feb 20, 2017 22:05 |
|
Hughlander posted:ELK isn't for dashboards despite what's said above. Try Grafana if you want to host yourself or Datadog if you want it hosted in the cloud. I mean, that's basically what Kibana is but I agree with you. We use Datadog and they're great. I'd recommend them to anyone.
|
# ¿ Feb 21, 2017 01:37 |
|
Paul MaudDib posted:(Java here) You should be using a three pronged solution. First, to enforce local sanity, use an Editorconfig file and .gitattributes file. To enforce team consistency you should be using the Maven checkstyle plugin or Gradle equivalent to enforce style on builds. All modern Java IDEs will do checkstyle-based linting while you're writing code so you shouldn't need to do anything else.
|
# ¿ Mar 8, 2017 14:11 |
|
LP0 ON FIRE posted:bash scp: Unless you have your ssh config (~/.ssh/config) set to always use your key you'll need to run ssh with the -i flag and specify the key.
|
# ¿ Apr 22, 2017 15:47 |
|
Suspicious Dish posted:Unfortunately, we don't produce "code for a 6th grade reading level" like we do for books, so there's no definitive answer to this question. I can certainly give examples of code I found particularly easy to work on (my first codebase I found super easy to read and work on was an early version of notify-osd). I suggest something that's small in scope and fairly early on in development before feature or scope creep have happened. Ugh don't use bitwise operators to coerce to a boolean. It's stupidly opaque and your language probably has a better way to do it.
|
# ¿ Oct 23, 2017 22:44 |
|
How long is the request going to take? If it's on the order of seconds > 5 I'd suggest returning a 202 while the external request is outstanding is probably the preferred method. Once data is returned, persist it and make the response available with a 200 the next time the same resource is requested. Blinkz0rz fucked around with this message at 18:03 on Jan 23, 2018 |
# ¿ Jan 23, 2018 18:01 |
|
|
# ¿ May 3, 2024 20:53 |
|
Mega Comrade posted:DevOps mostly. A lot of monorepo proponents don't mention versioning, build pipelines or how they handle things like git history rewriting. Glad this was what you were looking for. Monorepos are terrible for automating targeted actions unless you have some really deep and dark CI magic that identifies the programmatic subunit of the repo where the most recent changeset occured. This means that anything you run against the repo in your CI environment will take longer and will exercise code that hasn't changed. That may be fine early on, but it can be frustrating for developers when they can't get a passing check in order to merge their PR because it's queued up behind 3 other checks and a build from an hour before. That's probably fine if you have per-sprint, per-month, or per-quarter releases but not so great if you do continuous delivery. Basically you should be asking yourself the following: 1. What are you attempting to accomplish by putting the microservices together versus keeping them apart? 2. How mature and well developed is your CI pipeline? 3. How frequent are your releases?
|
# ¿ Sep 20, 2018 12:26 |