thoughtworks

ThoughtWorks面试小记

时间秒杀一切 提交于 2020-12-06 08:28:49
首先是电话面,很轻松,主要是讲讲过去的项目经历,用了什么技术呀,感觉比较看重你空闲时候的经历,在下班之后做了些什么,看了什么书,都可以加分。最后会有一次简短的英语交流··这个被囧到了,都没准备,感觉表现很差,但是还是受到笔试的通知了 笔试是两套题,一套逻辑测试,一套压力测试题;逻辑测试总共11题,题都很简单,两个小时的时间也很充足,比较重要的英文单词都有一张单子可以查。之后是压力测试,12分钟45个题。刚好做完,然后顺利的进入了homework,,悲剧就此开始。 还是那三个题目,网上都有,我选了其中一个Mars Rover的题目。实现起来都很简单,但是要充分的OO才行,所以设计模式什么的是必不可少的,测试类也必须有。。那几天比较忙,赶着在5天的最后一天下午加晚上写了答案,用上了命令模式,策略模式等。时间不够,没有写测试类,异常什么的也只做了简单的处理,提交上去以后忐忑的等了3天,,果然没过,不过也没挂,,让我再修改修改,,那时周四下午了,就约了周一之前提交,,周五成都降温,穿少了,晚上还和哥们出去喝了点,,周六直接重感冒了,,周末感冒更加严重,顶着晕乎乎的脑袋改了两个小时,加上几个测试类,整理了下结构,实在想不出来怎么弄,交上去之后果然悲剧了。 总结了一下,大约就是不应该为了OO而OO,设计模式带入不够自然,有点生套的味道。说来还是自己技术不够好,被拒了也是应该的,努力吧

ThoughtWorks中国 招聘信息

爷,独闯天下 提交于 2020-01-31 10:21:00
ThoughtWorks中国 招聘信息(敏捷实践者的天堂) 详细信息请登录: http://www.thoughtworks.com/work-for-us/work-for-us.html 如果您感兴趣,请将简历发送到 tjiang@thoughtworks.com Join our team as a ThoughtWorker. A passion for technology. Imagine a work environment that values technological innovation, integrity and enthusiasm. Where you get a chance to do great work, alongside some of the brightest people you have ever met, without the typical frustrations of big company politics. A place where your talents in open source, for example, are celebrated. Do you want to make a difference while doing the kind of work you love? At

Xstream xml与bean转换工具类

情到浓时终转凉″ 提交于 2020-01-09 11:36:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.naming.NameCoder; import com.thoughtworks.xstream.io.xml.Xpp3DomDriver; import com.thoughtworks.xstream.mapper.CannotResolveClassException; import com.thoughtworks.xstream.mapper.Mapper; import com.thoughtworks.xstream.mapper.MapperWrapper; /** * xstream工具封装 * 用以处理xml与bean的转换 */ public class XstreamUtils { /** * 在xml中多余的节点生成bean时会抛出异常 * 通过该mapperWrapper跳过不存在的属性 * * @param mapper * @return MapperWrapper [返回类型说明] * @throws throws [异常类型] [异常说明] * @see [类、类#方法、类#成员] */ private static

结对编程遇到猪队友,“你用的才是中华田园敏捷!”

百般思念 提交于 2019-12-13 22:01:31
现在我们有一个大坑,缺少软件设计、质量保障,项目leader常常盲目强调快速迭代,项目最终会陷入到质量腐化、Bug百出、交付失控的悲惨境地。 对这种空谈快速响应变化的“敏捷”,我更喜欢叫他“中华田园敏捷”。 你真的知道敏捷开发的根本原理吗: 缺少可重构性的软件,不可能快速响应变化。 没有高覆盖率、快速运行的单元测试,重构就不可能落地。 测试驱动开发是获得高质量单元测试集的唯一有效方法。 建立在充分覆盖且运行快速的自动化测试基础上的持续集成是迭代式开发的必要条件。 我们发现:极限编程是唯一将开发技术实践提到核心地位、构建完整软件交付流程的敏捷方法论。 刻意训练、实践极限编程,是提高开发效率、实践敏捷开发的必要环节。 如何避开猪队友,抛弃田园敏捷开发,实践真正的TDD? 有没有想过一个场景,和一线开发者结对编程,在【教练】带领下用半天时间,完成敏捷开发核心项目,输出优质代码。 12月21日,周六下午1点30分,「极客练功房」欢迎你免费参加。 参与人数:免费 每场限30人 首期主题:TDD敏捷开发实践 面向人群: 具备初级开发基础,无论从事前端还是后端均可,没有语言限制; 追求卓越技术,希望实践极限编程的一线开发者; 经验不限,想突破技术瓶颈,跳槽一线大厂的进阶程序员; 技术leader,想整体提高团队效率,完成质的飞跃。 什么是「极客练功房」? 「极客练功房」是工作坊、是训练营

spring batch exception Cannot construct java.util.Map$Entry

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are facing following exception while executing spring batch job from command line. Spring Batch Version - 3.0.2.RELEASE Spring Version - 4.0.0.RELEASE xStream version - 1.4.7 Data Base - mysql (I am connecting to new DB schema.) While executing a job using following command, I am getting below exception... java %JAVA_OPTS% org.springframework.batch.core.launch.support.CommandLineJobRunner config/spring-config.xml partitionJdbcJob Exception ---------- INFO: Loaded JDBC driver: com.mysql.jdbc.Driver Feb 20, 2015 3:22:28 PM org

Testing Spring controllers using Powermock

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a class which tests specific controller and it works fine @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:config/test-applicationContext-config.xml") @TestExecutionListeners({ WebContextTestExecutionListener.class, DependencyInjectionTestExecutionListener.class, DirtiesContextTestExecutionListener.class }) public class TestAdminController { //..... } I have used there Google's Mockito library from mockito.org to mock my underlying beans. Now my question is the following: I have some classes which

Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: [INFO] [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor cause-exception : com.thoughtworks

com.thoughtworks.xstream.converters.ConversionException

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: [EDITED] The project i'm working on is a 3 folder project in Java J2EE with servlets and Hibernate for the persistance. The structure is as follow: - Admin -> the main program with the beans and HTML/CSS - Jar -> with the jars, Hibernate tools and classes - War -> with the Servlets Between them, I use Xstream to share the classes and important info. I'm using Eclipse and Tomcat 7. Hope that with this all of you get the global idea. This what the Xstream debugger said: Caused by: com.thoughtworks.xstream.converters.ConversionException:

Implementing a SolutionIO Interface for Benchmarking

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to implement a benchmark configuration in my project, and whatever I do, I seem to encounter some sort of error. After a few reads from the Documentation I discovered that I need to implement a SolutionIO interface to read the input and make it into a solution. This is my configuration without the solver: <benchmarkDirectory>local/data/nurserostering/folder</benchmarkDirectory> <inheritedSolverBenchmark> <problemBenchmarks> ----> <problemIOClass>org.optaplanner.examples.nurserostering.persistence.CustomBenchmarkIO</problemIOClass>

C# 生成二维码(QR Code)

匿名 (未验证) 提交于 2019-12-03 00:17:01
C#通过 ThoughtWorks.QRCode 生成二维码(QR Code) 通过 ThoughtWorks.QRCode ( ThoughtWorks.QRCode.dll )来实现 项目 -> 右键 -> 管理 Nuget 程序包 ,然后选择联机,在输入框中输入 ThoughtWorks.QRCode ,如下图所示: 1 QRCodeEncoder encoder = new QRCodeEncoder(); 2 encoder.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE;//编码方式(注意:BYTE能支持中文,ALPHA_NUMERIC扫描出来的都是数字) 3 encoder.QRCodeScale = 4;//大小(值越大生成的二维码图片像素越高) 4 encoder.QRCodeVersion = 0;//版本(注意:设置为0主要是防止编码的字符串太长时发生错误) 5 encoder.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.M;//错误效验、错误更正(有4个等级) 6 //encoder.QRCodeBackgroundColor = Color.Yellow; 7 //encoder.QRCodeForegroundColor = Color