前端和后端开发人员比例_前端开发人员vs后端开发人员–实践中的定义和含义

前端和后端开发人员比例

Websites and applications are complex! Buttons and images are just the tip of the iceberg. With this kind of complexity, you need people to manage it, but which parts are the front end developers and back end developers responsible for?

网站和应用程序很复杂! 按钮和图像只是冰山一角。 有了这种复杂性,您需要人来管理它,但是前端开发人员和后端开发人员负责哪些部分?

多层次的发展 (The many layers of development)

Whether you’re working on a website or a native iOS app, all development environments share a common theme — there’s a front end to an application and a back end.

无论您是在网站上工作还是在本机iOS应用程序上工作,所有开发环境都具有一个共同的主题-应用程序的前端和后端。

This line can get blurry, especially given the rise of javascript and the serverless world. With the tooling somewhat merging together, we might sometimes wonder if we’re a full stack developer.

这条线可能会变得模糊,特别是考虑到javascript和无服务器世界的兴起。 随着工具的融合,我们有时可能会怀疑我们是否是一名全栈开发人员

但是我们还不是全部 (But we’re not all full stack)

As much as we might all want to be, we’re not all full stack developers. Personally, I find myself able to be productive in the back end of an application, but it’s not my strength and I much prefer to be heads down building UIs.

尽管我们所有人都想成为 ,但我们并不是全栈开发人员。 就个人而言,我发现自己能够在应用程序的后端高效工作,但这不是我的强项,我更喜欢低头构建UI。

And some people are the opposite, where they are strongest dealing with building APIs in the back end of an application and while they can build out a UI, it might be more of a prototype-like experience than a fleshed out application.

与某些人相反,他们最擅长在应用程序后端构建API,尽管他们可以构建UI,但与充实的应用程序相比,它更像是一种原型体验。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
前端可以通过后端返回的 HTTP 状态码以及返回的错误信息来获得后端抛出的异常。在 Spring MVC/Boot ,可以通过统一异常处理来捕获和处理后端的异常。 最佳实践是,定义一个全局异常处理器,通过 @ControllerAdvice 和 @ExceptionHandler 注解来统一处理异常。在全局异常处理器,可以捕获所有的异常,并根据不同的异常类型进行不同的处理,例如返回不同的 HTTP 状态码和错误信息。 下面是一个简单的示例代码: ```java @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandler(Exception.class) @ResponseBody public ResponseEntity<Object> handleException(Exception ex) { HttpStatus status = getStatus(ex); ErrorResponse errorResponse = new ErrorResponse(status.value(), ex.getMessage()); return new ResponseEntity<>(errorResponse, status); } private HttpStatus getStatus(Exception ex) { if (ex instanceof BadRequestException) { return HttpStatus.BAD_REQUEST; } else if (ex instanceof NotFoundException) { return HttpStatus.NOT_FOUND; } else { return HttpStatus.INTERNAL_SERVER_ERROR; } } } ``` 在上面的代码,handleException 方法可以捕获所有的异常,并根据异常类型返回不同的 HTTP 状态码和错误信息。例如,如果是 BadRequestException 异常,就返回 400 Bad Request 状态码;如果是 NotFoundException 异常,就返回 404 Not Found 状态码;否则返回 500 Internal Server Error 状态码。同时,也可以在异常处理器记录日志等信息,以便后续排查问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值